AI Agentic Handbook

Roadmap Agentic AI Engineer

Agentic AI Engineer Roadmap 2026

Five months on the part of agent building that demos skip: what the model may touch, when it stops, and what happens when a tool call fails halfway.

In brief

To become an agentic AI engineer, first master tool calling and structured output, then learn to build fixed workflows before open-ended agents. Add memory and MCP, then durability and human approval, and finish with agent security and trajectory evals. At 12–15 hours a week it takes about five months.

The first agent most people build works beautifully for about a week. It reads a support ticket, looks up the order, drafts a reply and sends it, and its author shows it round the team with some pride. Then the email service is slow one afternoon, the send tool times out, the model concludes the message probably didn't go, and one unlucky customer receives the same apology three times. Nothing in the demo was wrong. It had simply never met a slow network.

That gap is the job. An agentic AI engineer builds systems in which a model chooses the next action, and spends most of the working week on what surrounds that choice: which tools the model can see and how they describe themselves, when the loop must stop, what survives a crash, which actions wait for a person, and how you would show, a month later, that the agent took a sensible path rather than a lucky one. The reasoning gets the attention. The plumbing decides whether anyone lets it near production.

The chapters follow the order in which the risks appear. You start with a single tool call written by hand, because frameworks hide that round trip and so many later bugs live in it. Next come the fixed workflows that solve most problems more cheaply than any agent. Memory and MCP arrive once the loop is sound, durability and approvals once it touches things that matter, and security and path-level evals last, because they only make sense against an agent capable of doing damage.

Every chapter ends with a small system you build and then break on purpose: kill the process, feed it a poisoned document, retry a payment. Record what happened in the README. If a chapter's skip test describes something you have already shipped, move on.

How long
About 5 months at 12–15 hours a week
Where to start from
You can write Python and have called an LLM API at least once.
What you'll work with
Tool calling, Structured output, Workflows, Agent loop, MCP, Memory, LangGraph or similar, Durable execution, Guardrails, Trajectory evals
What's inside
6 chapters, 39 steps (roughly 33 h of reading and practice) and 6 projects to build

Work through the chapters in order. Tick each step when you've done it; your progress stays in this browser. Use the filters to see only articles, concepts or interview practice, and skip any chapter you already know.

Chapter 1 Weeks 1–3

One tool call, written by hand

Every agent, however elaborate, is one exchange repeated. The model asks for a tool by name with some arguments, your code decides whether to run it, and the result goes back tagged with the id of the request. Frameworks wrap that exchange so thoroughly that plenty of people ship agents without ever having looked at it. Then the model asks for two tools in a single turn, and a loop that assumed one call at a time hands the wrong result to the wrong request.

So write it yourself first, against a raw API. The usual mistake in this chapter is treating a tool failure as an exception. A lookup that found nothing is information the model can act on; send it back as a result and let it try again. Save the crashes for your own bugs.

By the end of this chapter You can explain and hand-code the full tool-call round trip, including parallel calls and errors returned to the model.

Already there? You've written a tool-call loop against a raw model API, without a framework.

The reading list

6 steps · about 6.5 h · 0 done
  1. 01Concept · 5 min

    Large Language Model (LLM)

    If “guesses what comes next” still sounds like a slogan, settle it here. An agent is that same trick, run in a loop with consequences.

  2. 02Concept · 5 min

    Structured output / decoding

    Tool arguments are JSON the model writes. This is what keeps them valid, and it promises nothing about whether they are sensible.

  3. 03Concept · 5 min

    Tool use & function calling

    Hold on to one idea from this page: the model only asks. Your code decides, and that gap is where every safeguard you build will sit.

  4. 04Interview question · 10 min

    Walk me through how tool calling works end to end.

    Answer it aloud before opening the model answer. Note the point that tool definitions are tokens, paid for again on every turn.

  5. 05Article · 5 min

    What is an AI agent, really?

    The dentist-booking example makes the loop concrete, and its three closing questions are a quick test for anything sold to you as an agent.

  6. 06Official docs · about 6 h

    Run several tool calls at once with asyncio ↗

    When the model asks for two lookups in one turn, they should run together. Learn timeouts alongside, since one hung tool stalls the entire run.

    Concurrent calls, timeouts and cancellation; agents spend most of their time waiting on tools.

Build this

A tool loop with no framework

Put it in a public repository. It's finished when:

  • Calls two tools in parallel when it can
  • Returns tool errors to the model instead of crashing
  • Logs every model call and tool call with timing

0 of 3

Chapter 2 Weeks 4–5

The simplest pattern that works

Most tasks people hand to an agent have a shape you could write down in advance: read the email, find the account, check one rule, draft a reply. When the steps are known, a fixed sequence of model calls with ordinary code between them is cheaper, faster and far easier to debug. An agent earns its place only when the next step depends on what the last one turned up, over and over.

This chapter is short, and it changes how you read the rest. The common error is to see the patterns as a ladder that ends, properly, at a fully autonomous agent. Treat them as a menu instead. Plenty of sound production systems are a cheap router in front of a few fixed chains, with one bounded agent behind a single route.

By the end of this chapter You can pick the simplest pattern that works — chain, router, orchestrator–worker or a full agent — and say why.

Already there? You can name the five common workflow patterns and when each beats an agent.

The reading list

5 steps · about 1.5 h · 0 done
  1. 01Concept · 5 min

    Workflow vs agent

    The chapter turns on a single question: who owns the control flow, your code or the model? Ask it of every design that follows.

  2. 02Concept · 5 min

    Prompt chaining

    The underrated part of a chain is the code between steps, which can reject an empty extraction or stop early before more money is spent.

  3. 03Concept · 5 min

    Orchestrator–worker pattern

    For work whose pieces aren't known up front. Your code should still cap the plan the model writes and check each piece against an allow-list.

  4. 04Article · 10 min

    Workflows before agents: pick the simplest pattern that works

    Every pattern comes with a price. The agent row's cost spread is the argument; the closing section on climbing back down is the habit to keep.

  5. 05Official docs · about 1 h

    Read Anthropic's essay on building effective agents ↗

    The source the previous post builds on. Read it whole, because shorter summaries tend to drop parallelisation and the evaluator-optimizer pattern.

    The workflow-pattern taxonomy most teams now use, from Anthropic's engineering blog.

Build this

One task, solved twice

Put it in a public repository. It's finished when:

  • Same task built as a fixed workflow and as an agent
  • Both scored on the same 20 test cases
  • README states which you'd ship and why, with cost per run

0 of 3

Chapter 3 Weeks 6–8

A loop that always stops

Now build the real thing: a model that decides, acts, reads what happened and decides again. The loop itself is a dozen lines. The time goes into everything that makes it safe to leave running, and the two things that matter most are seldom the ones beginners work on.

The first is stopping. A run should end because the task is done or because it hit a cap on steps, time or spend, and either way it should record which. The second is the tools. When an agent picks the wrong one, or keeps calling one that fails, the instinct is to rewrite the prompt. More often the tool has a vague name, an error that says only “400”, or a search that pours four thousand rows into the context.

By the end of this chapter You can build an agent that plans, recovers from bad tool results and always stops.

Already there? Your agents have explicit stop conditions and tools designed for a model, not copied from your API.

The reading list

7 steps · 50 min · 0 done
  1. 01Concept · 5 min

    The agent loop (ReAct)

    Sketch one full pass with real message shapes: the request, the tool call, the result going back. You'll want that picture whenever a trace looks wrong.

  2. 02Concept · 5 min

    Stop conditions & step budgets

    Make every cap log the reason it fired. Without that, a run that ran out of budget and a run that finished look exactly alike.

  3. 03Concept · 5 min

    Tool design (agent–computer interface)

    The model reads your tools on every call and can't ask what you meant. Design them for that reader rather than mirroring your existing API.

  4. 04Article · 10 min

    Tool design for agents: the interface is the product

    The most practical read in the chapter. Keep its rule for errors: say what was wrong, what is allowed, and show a valid call.

  5. 05Concept · 5 min

    Planning

    A written plan helps when the agent revises it as results come in. One it never checks against reality is decoration that costs tokens.

  6. 06Concept · 5 min

    Reflection & self-critique

    Self-review works when there is something real to check against, such as a test or a validator. Without one, expect polish rather than correction.

  7. 07Article · 10 min

    Build your first tool-using agent (offline, in pure Python)

    Build this one carefully. It pairs results to calls by id, handles several calls per turn, and keeps your own bugs out of the model's error path.

Build this

A task agent that can't run away

Put it in a public repository. It's finished when:

  • Step, time and spend limits, each tested
  • Tools return short, model-readable errors
  • A trace you can replay for any run

0 of 3

Chapter 4 Weeks 9–12

Memory, context and shared tools

An agent re-sends its whole history on every turn, so each tool result it reads stays with it, and is paid for, until the run ends. Long tasks fail here in a recognisable way: the context fills with stale search results, the instructions drift out of focus, and the agent starts repeating itself. Deciding what goes in each turn, and what gets written down to be looked up later, is design work in its own right.

The second half is MCP, which lets a tool you write once be used by any application that speaks the protocol. Most people learn it from a tutorial and stop there. Read the specification too, because the split between tools, resources and prompts is about who decides to use each one, and that has consequences for cost and for security.

By the end of this chapter You can decide what goes into the context window each turn, persist what matters, and expose tools over MCP.

Already there? You've built an MCP server and an agent that keeps useful memory across sessions.

The reading list

7 steps · about 20 h · 0 done
  1. 01Concept · 5 min

    Context engineering

    The question behind every turn: of everything this agent could see, what earns its tokens right now? Long runs usually fail here first.

  2. 02Concept · 5 min

    Agent memory

    Keep the two kinds apart in your head: what sits in the context for this run, and what is stored to be searched in a later session.

  3. 03Concept · 5 min

    Agentic RAG

    Retrieval becomes a tool the model may call several times. It is among the most common production agent patterns, so expect to build one.

  4. 04Concept · 5 min

    MCP (Model Context Protocol)

    Note the three roles (host, client and server) before you build anything. The rest of the protocol hangs off that arrangement.

  5. 05Article · 5 min

    Build your first MCP server

    About thirty lines of Python. Try it in the MCP Inspector first, and read the section on tool poisoning before anyone else installs it.

  6. 06Official docs · about 4 h

    Read the Model Context Protocol specification ↗

    Tutorials cover tools and skip the rest. Resources and prompts solve problems you would otherwise solve badly with yet more tools.

    Servers, clients, tools, resources and prompts, from the spec rather than a tutorial.

  7. 07Official docs · about 15 h

    Rebuild your agent in a graph-based framework ↗

    Do it only after the hand-written loop, so you can see what the framework is doing for you. Checkpoints are the feature to understand properly.

    State, nodes, edges and checkpoints. LangGraph is the common choice; the ideas transfer.

Build this

An MCP server for a tool you use

Put it in a public repository. It's finished when:

  • Works from at least one MCP client
  • Agent remembers user preferences across sessions
  • Context stays under a fixed token budget on long tasks

0 of 3

Chapter 5 Weeks 13–16

Long runs, retries and human approval

A demo agent lives in one process for half a minute. A working one, say an expense-claims agent, checks the receipts, calls the payments system and then waits two days for a manager to sign off. Somewhere in those two days the process will be redeployed. What matters is whether the run starts again from the top, paying twice, or picks up at the step where it stopped.

Three habits decide that: save progress after every step, make every action safe to repeat, and treat waiting for a person as a stored state rather than a sleeping thread. This chapter also covers splitting a task across several agents, which people reach for too early. Each extra context multiplies the token bill, so split only when one agent genuinely can't hold the job.

By the end of this chapter You can run long tasks that survive crashes, pause for human approval and split work across agents only when it pays off.

Already there? You've run an agent that resumes after a restart and waits for approval before risky actions.

The reading list

7 steps · 50 min · 0 done
  1. 01Concept · 5 min

    Multi-agent systems

    Look hard at the cost line: roughly fifteen times the tokens of a chat. The pattern pays for broad, parallel research, much less for tightly linked work.

  2. 02Concept · 5 min

    Handoffs between agents

    When work passes to another agent or to a person, the briefing and the permissions both change. Decide what travels with the task before wiring it.

  3. 03Concept · 5 min

    Durable execution & checkpointing

    The property that lets a crash, a deploy or a two-day wait leave finished steps finished. The rest of this chapter rests on it.

  4. 04Article · 10 min

    Durable agents: checkpoints, idempotent tools and approvals that wait for days

    Run the example and watch claim 0043 crash between the payment and its checkpoint. That narrow gap is exactly where customers get charged twice.

  5. 05Concept · 5 min

    Idempotency

    The key belongs to the step, not the attempt. A fresh id on every retry looks careful and lets the second payment straight through.

  6. 06Concept · 5 min

    Human in the loop

    Put approvals before anything irreversible, and show the reviewer the exact action and its parameters, not the agent's summary of it.

  7. 07Interview question · 10 min

    How do you make agent tool calls reliable — retries, timeouts and idempotency?

    Expect it in interviews for this role. Have the arithmetic ready for why twenty calls at a 2% failure rate make retries necessary, and risky.

Build this

A long-running agent with an approval gate

Put it in a public repository. It's finished when:

  • Kill the process mid-run and it resumes
  • Risky tool calls wait for a human yes
  • Retried tool calls never double-charge or double-send

0 of 3

Chapter 6 Weeks 17–20

Security, cost and checking the path

A model that only talks can say something wrong. An agent that reads email and calls APIs turns wrong text into wrong actions, and any text it reads, whether a web page, a ticket or another tool's output, may carry instructions. No filter fully fixes this. The workable stance is to assume the model will sometimes be fooled and arrange things so that, when it is, very little happens: narrow permissions, a sandbox, and no single agent that holds private data, reads untrusted content and can send things out.

Evaluation changes for the same reason. An agent can reach the right answer by a route that deleted something along the way, or that cost ten times what it should. Grade the path as well as the result, and report cost per successful task beside accuracy.

By the end of this chapter You can defend an agent against prompt injection, cap its spend and grade both its answers and its path.

Already there? You've red-teamed an agent and run trajectory evals in CI.

The reading list

7 steps · about 3.5 h · 0 done
  1. 01Concept · 5 min

    Prompt injection (indirect)

    The defining security problem for agents. Give most of your attention to the indirect kind, where the instructions arrive inside something the agent fetched.

  2. 02Concept · 5 min

    Least privilege

    The cheapest control with the largest effect. A tool that can read one order cannot be talked into dropping a table.

  3. 03Concept · 5 min

    Code execution sandbox

    Any agent that runs code needs one: no production credentials, limits on CPU and memory, and no network unless an allow-list says so.

  4. 04Article · 10 min

    Securing agents: assume the model will be fooled

    The lethal trifecta of private data, untrusted content and a way out is the first test for any agent design. Practise naming which leg you would cut.

  5. 05Official docs · about 3 h

    Work through the OWASP Top 10 for LLM applications ↗

    Go through it item by item with your capstone open, and write down your answer to each. A real security review will ask much the same.

    The shared checklist security reviewers will hold you to.

  6. 06Concept · 5 min

    Trajectory evaluation

    A real model varies its route, so test properties of the path: lookups before writes, and no tool called twice with the same input.

  7. 07Concept · 5 min

    Agent cost & token budgets

    Cost climbs faster than the step count because each turn re-sends the history. Watch cost per successful task, not per run.

Build this

Capstone: a guarded agent with an eval suite

Put it in a public repository. It's finished when:

  • Survives a set of injection attempts hidden in tool results
  • Trajectory and outcome scored on 30+ tasks
  • Cost per successful task reported in the README

0 of 3

Where people get stuck

  1. Multi-agent by default

    Several agents talking to each other multiply cost and failure points. Start with one agent and split only when a single context can't hold the job.

  2. No stop conditions

    An agent without step, time and spend limits will eventually loop. Write the limits before the first tool, and log which one fired.

  3. Trusting tool output

    Anything a tool returns, whether a web page, an email or a file, can carry instructions. Treat it as data and scope each tool's permissions tightly.

  4. Grading only the final answer

    An agent can reach the right answer the wrong way, deleting things on the way. Score the path too, with checks on which tools ran and in what order.

A last word

By the end you will have five working projects and a capstone: a tool loop with no framework, a task solved two ways with costs compared, an agent with hard limits, a server other apps can call, a run that resumes after you kill it, and an eval suite that grades the path as well as the answer. More valuable than any of them is the reflex of asking what happens on the retry, the crash and the poisoned document before asking what the model can do.

The roadmaps below take that reflex elsewhere: back to the broader AI engineering foundations if you skipped them, out to client deployments, and down into the platform that keeps models running.

Take this roadmap with you

Copy every step as a Markdown checklist for Notion, GitHub Issues or your notes, or send someone the link.

aiagentichandbook.com/roadmaps/agentic-ai-engineer/

Further reading

All 33 articles →

Reading public AI incidents as postmortems

Two well-documented failures, the Air Canada chatbot ruling and the Replit agent that deleted a production database, rewritten as postmortems: timeline, detection, root cause, and the control that would have caught each one.

The real cost of an LLM feature: latency, tokens and the bill

Five terms make up the bill and two make up the wait. Reasoning tokens, cache writes, batch discounts and the self-host break-even, worked with stated assumptions.

Error analysis, step by step: from 100 traces to a failure taxonomy

Read real traces, write free-form notes, group them into categories, rank by frequency × impact, and turn the top categories into evals that gate releases.

Shipping LLM features safely

Eval gates on repeated runs with confidence intervals, versioned configs, canaries sized by arithmetic rather than habit, and a rollback you have rehearsed.

The AI engineering ladder: what each level's week looks like

Budding, Mid, Senior and Staff are not years of experience; they are the size of the problem you own and the evidence you leave behind. What a week looks like at each, what gets you promoted, and how to use this handbook's tracks to get there.

A reading list by level: the papers, posts and books worth your time

Twenty-eight primary sources, grouped from first steps to staff level, with one line on why each one still matters.

Questions people ask about this roadmap

What does an agentic AI engineer do?

An agentic AI engineer builds systems where a language model chooses and calls tools to complete multi-step tasks, and makes those systems bounded, recoverable, secure and measurable in production.

How is agentic AI different from generative AI?

Generative AI produces content in response to a prompt. Agentic AI uses a model in a loop that takes actions — searching, calling APIs, editing files — until a goal is met or a limit is hit.

Which framework should I learn: LangGraph, CrewAI or an SDK?

Hand-code one tool loop first so you understand what any framework does. Then pick one graph-based framework and learn it well; the concepts — state, checkpoints, tools, handoffs — carry over.

Do I need to learn RAG before agents?

Learn the basics of retrieval first. Most production agents use retrieval as one of their tools, and agentic RAG is one of the most common patterns.

How long does this roadmap take?

About five months at 12–15 hours a week, assuming you can already write Python. Each milestone has a skip test so you can move faster through what you know.

Is MCP worth learning?

Yes. MCP is the common protocol for connecting models to tools and data across clients, so an MCP server you build once works in many places.

Other roadmaps

All roadmaps →
About 6 months

AI Engineer

You want the broadest AI engineering job and aren't sure which specialism yet.

About 6 months

AI Forward Deployed Engineer

You like building and talking to customers in equal measure.

About 5 months

LLMOps & AI Platform Engineer

You come from DevOps, SRE or backend and want to own the AI platform.

More from the handbook

All free at aiagentichandbook.com