Context engineering
What goes into the context window, and why: retrieval, memory, compaction and token budgets.
Senior AI Engineer · Team Lead · Munich
I’m Sayed. 6 years of backend work (queues, data pipelines, APIs) taught me how systems fail. Now I build AI agents and lead a team doing it. On the blog I write about what really happens when agents meet production: what holds, what breaks, and the numbers behind both.
The topics shaping GenAI engineering right now, written from hands-on work: what worked, what broke, and how I measured it.
What goes into the context window, and why: retrieval, memory, compaction and token budgets.
Test sets, LLM judges checked against people, and evals that run in CI like any other test.
Connecting agents to tools and to each other, and securing those connections with scopes and audit logs.
When extra agents earn their complexity: orchestration, handoffs, and a single-agent baseline to beat.
Prompt injection, tool abuse and data leaks, with defenses that live outside the model.
Long-running work that survives crashes: workflow state, retries, human approval and long-term memory.
Hybrid search, reranking and citations, measured against a keyword baseline before anything fancy.
Tracing every step, cost and latency budgets, model routing, and cloud versus local models.
Harnesses, skills, sandboxes and review gates that make coding agents safe to rely on.
Model APIs and agent frameworks I use day to day, on top of years of backend work: queues, data pipelines and event-driven services.
Agents are backend systems too.
Lessons I keep coming back to, at work and in what I write.
Every tool call should report what it did and how long it took. The failure you can’t observe is the one you ship.
Compare models on the same inputs before choosing one. Latency and cost are part of the product, not a report at the end.
An agent that quietly drops commitments when infrastructure fails is worse than one that never accepted them.
Building things live, in front of an audience, and explaining the trade-offs out loud.
Guest on Ahmed Elemam · Tech Podcast بالعربي
A live build from an empty folder: an MCP server that gives an AI the context it needs, debugged step by step, then a LangGraph agent that discovers its tools through an MCP client and uses them in a real chat, with logs for every step.
Team Lead · Senior Software Engineer · GenAI
Senior Software Engineer
Digital Roots GTC, Cloudvests, Freelance