The agent stack
Building an agent raises the same questions in roughly the same order. Each layer below covers one question: what it means, the ideas to learn first, and the tools people reach for.
- 01
Agent orchestration
How do I control what an agent does next?
An agent is a loop: a model picks an action (usually a tool call), your code runs it, and the result goes back to the model. Orchestration frameworks give that loop structure — explicit steps, branches, retries, shared state and pauses for human approval — so behaviour is predictable and debuggable instead of living in one giant prompt. Most model the flow as a graph or state machine.
- 02
Agent SDKs & frameworks
What's the fastest way to build an agent that uses tools?
Higher-level kits that bundle the agent loop, tool definitions, structured outputs, hand-offs between agents and tracing. Many come from the model labs (OpenAI, Anthropic, Google, Microsoft) and are tuned for their own models, though most can call others. Start here before reaching for a lower-level orchestration library.
- 03
TypeScript agent development
How do I build agents inside a web or Node.js product?
Agent tooling for the JavaScript ecosystem: streaming model output into UIs, typed tool schemas (usually with Zod) and deployment on serverless platforms. The right layer when the agent lives inside a web product rather than a Python data stack.
- 04
Multi-agent collaboration
How do several specialised agents work together on one task?
Instead of one agent doing everything, the work is split among agents with distinct roles, tools and instructions — a researcher, a writer, a reviewer — coordinated by a manager agent or a fixed process. It can sharpen focus on complex tasks, at the cost of more model calls, more latency and harder debugging.
- 05
Durable & distributed execution
What happens when an agent run takes hours and a server dies halfway?
Durable execution engines record each step of a workflow so it resumes exactly where it stopped after a crash, deploy or timeout — without redoing finished work or paying again for finished LLM calls. Long-running agents, approvals that take days and retries of flaky APIs are why agent teams adopt them. "Distributed execution" and "durable agent runtime" both live in this layer.
- 06
Agent communication & protocols
How do agents talk to tools, to each other and to users?
Open standards that let pieces built by different teams work together. MCP connects an agent to tools and data; A2A lets independent agents discover and delegate to each other; AG-UI streams an agent's progress into a user interface. High-leverage to learn, because frameworks are converging on them.
- 07
Observability & evals
How do I see what my agent did — and know whether it's getting better?
Agents are non-deterministic, so you need traces of every model call, tool call and decision, plus evaluations (test datasets, scoring, LLM-as-judge) to catch regressions before users do. These platforms collect traces, track cost and latency, manage prompts and run evals.
- 08
Memory & state
How does an agent remember across conversations?
Models are stateless: anything an agent "remembers" has to be stored and put back into its context window. Memory systems decide what to keep (facts, preferences, past episodes), where to store it and how to bring it back, so an agent can improve over time without overflowing its context.
- 09
Retrieval & knowledge (RAG)
How do I ground an agent in my own documents and data?
Retrieval-augmented generation (RAG) fetches relevant pieces of your data — by embeddings, keyword search or structured queries — and hands them to the model when it answers. Frameworks here handle loading, parsing, chunking, indexing and querying, and increasingly let the agent decide when and how to retrieve ("agentic RAG").
- 10
Prompt programming & optimization
Can I stop hand-tuning prompts?
Instead of writing prompts by hand, you declare what each step should take in and give back, then let an optimizer search for the instructions and examples that score best on your metric. Worth it once you have a working pipeline and an evaluation set.
- 11
Workflow automation (low-code)
Can I build agent workflows without writing much code?
Visual builders that connect apps, APIs and AI steps as nodes on a canvas. Fast for internal automations and prototypes; teams often move to code frameworks as the logic grows.