AI Agentic Handbook

Roadmap Software Engineer → AI Engineer

Software Engineer to AI Engineer: a 90-day roadmap

Ninety days for engineers who already ship: keep the testing, the deploys and the on-call rota, and learn what one unpredictable component changes about all three.

In brief

A software engineer can move into AI engineering in about 90 days. Keep your testing, API and deployment skills; add how models behave, structured output, retrieval, evals as your new tests, and tool-using agents. Ship a small AI feature every two weeks, ideally inside your current product, at 8–10 hours a week.

The first AI feature most software engineers write goes the way their other code does. A function calls a model, a test checks the result, the build goes green. The next morning the same test fails, and nobody has touched the code. Nothing is broken. The model chose different words, and an exact-match assertion was never the right kind of check.

That failed test is most of the switch, because almost everything else you already do. AI engineering is schemas, retries, deploys, logs and on-call, wrapped around one component that rarely returns the same thing twice, charges by the token and will follow instructions hidden in a document it was only asked to summarise. Day to day it looks like backend work with three new habits: you score quality across a set of examples instead of asserting one answer, you watch spend per request the way you watch a cloud bill, and you treat whatever the model returns as untrusted input.

The chapters follow the order in which a working engineer meets those problems. Two weeks on how models behave, ending with one call behind a flag in your real codebase. Then a feature that fails safely, retrieval over your team's own documents, and the eval suite that tells you whether any of it improved. Agents come late on purpose: giving a model write access to your services is the last thing you want to learn by accident. The final ten days turn the work into evidence an interviewer, or your own manager, can check.

Build inside your day job wherever you can. A small classifier that colleagues use, with a cost estimate and a measured accuracy, outweighs a weekend demo in every conversation that matters, including the one about changing teams. If work gets busy the 90 days will stretch, and that is fine; the order matters more than the pace. Each chapter has an "already there?" line, and if you have genuinely done what it describes, move on.

How long
About 3 months at 8–10 hours a week
Where to start from
You work as a software engineer today.
What you'll work with
Your current language, LLM APIs, Structured output, RAG, Evals, Tool calling, MCP, Tracing
What's inside
6 chapters, 31 steps (roughly 27 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 Days 1–14

A component that answers differently each time

Your instincts are tuned for functions that return the same output for the same input. A language model breaks that contract by design. It samples each token, it sees only what fits in its window, and when it doesn't know something it says so in exactly the tone it uses when it does. These two weeks are for retraining that instinct, not for building anything large.

The common mistake is to treat the chapter as theory and skim it. The proof is practical: one model call in your production codebase, behind a flag, with its output validated and its token cost logged. Getting that through code review at your company will teach you a good deal about how the switch will go there.

By the end of this chapter You understand why the same input gives different output, and what that changes about how you design and test.

Already there? You've shipped any feature that calls an LLM.

The reading list

6 steps · 35 min · 0 done
  1. 01Article · 5 min

    Breaking into AI engineering: a roadmap from zero

    It opens with a support bot promising a 60-day return policy that doesn't exist. Notice that every step of the fix is ordinary engineering.

  2. 02Concept · 5 min

    Large Language Model (LLM)

    The one-paragraph mental model. Everything a model does, including its mistakes, comes from predicting the next piece of text.

  3. 03Concept · 5 min

    Token

    Cost, latency and length limits are all counted in tokens. Check how many your own typical request uses before you estimate anything.

  4. 04Concept · 5 min

    Temperature & sampling

    Turning it down reduces variety, not error. A low setting makes a wrong answer repeatable, which is a different thing from making it right.

  5. 05Concept · 5 min

    Hallucination

    Confident and wrong sound identical. That is why model output gets validated like input from a stranger, never trusted like a return value.

  6. 06Article · 5 min

    Thinking models, explained without the hype

    Worth reading before anyone on your team swaps models: the hidden working is billed as output, and the worked example costs eleven times as much.

Build this

One model call in your real codebase

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

  • Behind a feature flag
  • Output validated before use
  • Token cost logged on every call

0 of 3

Chapter 2 Days 15–30

Shipping a feature that fails safely

The best first AI feature is narrow: summarise a ticket, classify an inbound email, pull five fields out of a PDF. Each has a right answer you can check, a shape your code can validate and a sensible fallback when the model gets it wrong. Pick one your product already needs, so the work counts twice.

Engineers from backend teams usually get the validation right and the economics wrong. They estimate cost from the visible prompt and answer, then learn from the first invoice that system prompts, retries and reasoning tokens were on the bill too. Write the estimate before launch, measure accuracy on thirty real examples, and decide what the user sees when the model times out.

By the end of this chapter You can ship a summarise, classify or extract feature that fails safely.

Already there? You've shipped an LLM feature to users.

The reading list

5 steps · 35 min · 0 done
  1. 01Article · 10 min

    Structured outputs that don't break

    Read it as a systems design piece: schema, provider mode, validation, targeted retries. Much of it will feel familiar, and that is the point.

  2. 02Concept · 5 min

    Structured output / decoding

    Valid JSON is not the same as correct JSON. Know exactly where the provider's guarantee stops and your own validation has to start.

  3. 03Article · 5 min

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

    An estimate of 2 cents an answer that invoiced at about 7. Run its five-term bill with your feature's numbers before someone asks for them.

  4. 04Concept · 5 min

    Model fallback & routing

    The model version of a failover you have probably built already. The catch: the backup must pass the same evals as the primary.

  5. 05Article · 5 min

    Prompt, retrieve or fine-tune? A decision guide

    Someone will suggest fine-tuning at your first planning meeting. This gives you the diagnosis to answer them, and the cost case where they might be right.

Build this

A classifier or extractor in production

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

  • Typed output with a fallback path
  • Cost estimate written before launch
  • Accuracy measured on 30 real examples

0 of 3

Chapter 3 Days 31–50

Answering questions from your own documents

Every company has a wiki nobody can search, which makes internal documents the right place to learn retrieval. You know the material, colleagues will tell you when an answer is wrong, and the stakes are low enough to ship early and often.

The trap for experienced engineers is that the first version works too well. Retrieval fails quietly: when the wrong passage comes back, the model writes a fluent answer from it anyway, and nobody notices until someone acts on it. Log what was retrieved for every question, not only what was answered. The last step maps the distance between your prototype and a production system, with a budget for each stage.

By the end of this chapter You can answer questions over internal documents, with citations.

Already there? You've built RAG with hybrid search.

The reading list

5 steps · 35 min · 0 done
  1. 01Article · 5 min

    RAG in plain English: letting the AI look it up

    Skip it if you can already explain RAG to a product manager. Otherwise it is the six-minute version you will end up repeating to one.

  2. 02Article · 10 min

    Your first RAG pipeline in pure Python

    Standard-library Python with pytest, so it reads like code you would review. Porting it to your team's language is a good way to make it stick.

  3. 03Concept · 5 min

    Hybrid search

    Internal docs are full of service names, ticket IDs and acronyms that meaning search handles badly. Keyword search catches them.

  4. 04Concept · 5 min

    Reranker

    A slower second pass over the top candidates. Compare answers with and without it on the same twenty questions and keep the numbers.

  5. 05Article · 5 min

    Anatomy of a production RAG system

    Four boxes become roughly fifteen, across two paths with their own budgets. Treat it as the design review your prototype hasn't had yet.

Build this

Q&A over your team's internal docs

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

  • Cites the source of every answer
  • Refuses when retrieval finds nothing relevant
  • Teammates can try it and flag bad answers

0 of 3

Chapter 4 Days 51–65

Evals are your new tests

Your background helps most in this chapter, and misleads you most. You already believe in fixtures, regression suites and a red build. What changes is the assertion. Instead of checking one exact output, you score properties across a fixed set of examples and compare the score with the last run, allowing for noise.

The usual mistake is waiting for a perfect set. Thirty to fifty real examples pulled from logs or support tickets will catch most regressions, and the set grows every time something breaks in production. The harder habit is reading failures one by one before reaching for a metric. By the end, the eval set should run in CI and block a merge the way a failing unit test does.

By the end of this chapter You can gate changes on an eval set the way you gate on unit tests today.

Already there? You already run evals in CI.

The reading list

5 steps · 35 min · 0 done
  1. 01Article · 10 min

    Your first eval set in an afternoon

    A practical recipe in plain Python. Pay attention to the Wilson interval: on fifty examples, a small improvement can easily be noise.

  2. 02Concept · 5 min

    Golden set

    Treat it like a fixture: versioned, reviewed in pull requests, updated when the product changes and never edited just to make a run pass.

  3. 03Concept · 5 min

    LLM-as-judge

    Grading at scale with a model. Check its marks against your own on a sample before you let it decide whether a build goes green.

  4. 04Concept · 5 min

    Eval gate (CI)

    The CI check this chapter builds towards. Mind the phrase 'beyond the noise': a gate that fails on every random wobble soon gets switched off.

  5. 05Article · 5 min

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

    Closer to triaging an incident queue than writing tests: read traces, group the failures, fix the commonest kind, then turn it into an eval.

Build this

An eval check in your CI

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

  • Runs on every pull request
  • Separate scores for retrieval and answers
  • One regression it caught, documented

0 of 3

Chapter 5 Days 66–80

Letting a model call your services

You probably own services with APIs a model could usefully call: look up an order, open a ticket, run a report. Handing those over is where AI work starts touching real systems, and where a bad prompt can turn into a bad write. That is why the chapter comes this late.

The usual error is building an agent when a fixed sequence of two calls would do. Read the workflows post before designing anything. When you do need a loop, start with read-only tools, cap the steps and the spend, and require confirmation for anything that writes. Assume that any text the model reads, including the body of a ticket or an email, may be trying to give it orders.

By the end of this chapter You can let a model call your existing APIs, safely and within limits.

Already there? You've built a tool-using agent with step and cost limits.

The reading list

5 steps · 40 min · 0 done
  1. 01Article · 10 min

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

    Built offline and tested with pytest, so the loop is just code. Watch how each tool call is matched to its result by id.

  2. 02Article · 10 min

    Workflows before agents: pick the simplest pattern that works

    Seven patterns, from one call to full autonomy, with their costs. Climb a rung only when you can name the failure that justifies it.

  3. 03Concept · 5 min

    MCP (Model Context Protocol)

    A shared protocol, so a tool you expose once works across many AI apps. This chapter's proof is built on it.

  4. 04Article · 5 min

    Build your first MCP server

    Thirty lines to a working server. Reread its security rules before you point it at anything that holds credentials.

  5. 05Concept · 5 min

    Prompt injection (indirect)

    There is no complete fix, which sits badly with most engineers. Design so a successful injection can only reach tools that read.

Build this

An MCP server for one of your services

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

  • Read-only tools first
  • Writes need explicit confirmation
  • Usable from an MCP client

0 of 3

Chapter 6 Days 81–90

Turning the work into a new role

Plenty of engineers make this move without changing companies. They ship one or two AI features, become the person colleagues ask, and move teams with the evidence already in hand. If you are looking outside, the same evidence is what an AI engineering loop wants to hear, told in a different order.

What people get wrong here is describing effort instead of outcomes. "Built a RAG system" tells an interviewer nothing. "Cut the time to find a runbook by a third, at under a cent a query, measured on 60 real questions" gets a follow-up. Spend these ten days writing sentences like that, then practise the design and coding rounds, where years of shipping software are a real advantage.

By the end of this chapter You can tell your AI work as clear stories and pass an AI engineering loop.

Already there? You've already interviewed for AI roles.

The reading list

5 steps · about 24 h · 0 done
  1. 01Article · 5 min

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

    Levels defined by the size of problem you are trusted with. Use it to judge where your current seniority carries over and where it doesn't yet.

  2. 02Article · 5 min

    What AI-engineering interviewers test at each level

    One design question answered at three levels, with scores. Note what the Staff answer questions that the Mid answer simply accepts.

  3. 03Concept · 5 min

    STAR method

    Your stories about incidents and migrations already fit this shape. Rewrite two around the AI work from this roadmap, numbers included.

  4. 04Practice · about 14 h

    Work through the seven-day interview plan

    Save it for the final week; it assumes you already have projects and numbers to talk about.

    A day-by-day schedule through the handbook's interview preparation.

  5. 05Practice · about 10 h

    Practise the AI coding round

    Your algorithms may be rusty, but your engineering isn't. The practical builds reward habits you already have, so start there.

    Python problems of the kind AI teams ask, from classic algorithms to multi-stage practical builds.

Build this

A one-page AI portfolio

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

  • Five projects with one number each
  • Two STAR stories about AI work
  • One system design you can whiteboard

0 of 3

Where people get stuck

  1. Throwing away what you know

    Testing, APIs, deployment and on-call are most of the job. You are adding one unusual component to skills you already have, so spend your hours on the new parts.

  2. Asserting exact output

    Model output varies between runs. Test properties and scores over a set of examples, and compare each run with the last rather than with a fixed string.

  3. Side projects only

    One AI feature inside your current product, with real users and a measured number, beats three weekend demos in any interview or internal transfer.

  4. Trusting what comes back

    Model output is untrusted input, even from your own prompt. Validate it against a schema before it reaches a database, and never pass it unchecked to a shell or an API that writes.

A last word

After ninety days you should have a model call running behind a flag, a feature with a cost estimate and a measured accuracy, a retrieval tool your colleagues have tried, an eval suite that can fail a build and an MCP server for one of your own services. That is a credible AI engineering record, and most of it lives in a codebase you already work in.

The roadmaps below go further: the full AI engineer path, agents in depth, and the platform work of running models at scale. Choose by the problem your team is most likely to hand you next.

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/software-engineer-to-ai-engineer/

Further reading

All 33 articles →

What happens when you ask an AI a question

From pressing enter to the last word: tokens, the desk the model reads from, one-token-at-a-time writing, thinking, web search, and where your words go.

The three dials: tokens, temperature and context

Two bugs show up in nearly every first LLM integration. Both trace back to the same three settings, and both are fixable in a few lines of code.

Tool design for agents: the interface is the product

Names, schemas, error messages the model can act on, pagination, idempotency keys and confirmation for side effects, with runnable examples of a bad tool, a good one and an idempotent write.

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.

Securing agents: assume the model will be fooled

Prompt injection has no reliable filter, so agent security is architecture: break the lethal trifecta, constrain what a fooled model can do, and test it like any other regression.

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

Can a software engineer become an AI engineer?

Yes. Software engineers are the most common source of AI engineers, because most of the work — APIs, testing, deployment, reliability — is the same. The new skills are model behaviour, retrieval, evals and agents.

How long does the switch take?

About 90 days at 8–10 hours a week. It's faster if you can build an AI feature inside your current job.

Do I need to learn machine learning maths?

Not to start. A working idea of embeddings, tokens and sampling is enough. Deeper maths helps later if you move toward model training.

Should I switch to Python?

Learn enough Python to read examples and run eval tools. You can build AI features in TypeScript, Java or Go; the SDKs exist for all of them.

What should my portfolio show?

Shipped features with numbers: accuracy on an eval set, cost per request, latency. Fewer projects, measured properly, beat many demos.

Other roadmaps

All roadmaps →
About 6 months

AI Engineer

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

About 5 months

Agentic AI Engineer

You want to build systems that take actions, not just answer questions.

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