AI Engineer Roadmap: What to Learn and in What Order
I am an AI Engineer professionally. Here’s what this means and how you can become one.
My AI engineer roadmap: learn to program, call a model from your own code, then learn tokens, context windows, context management, prompt caching, compaction, tool calling, live retrieval, guardrails, multi-agent systems and evals, then put all of it together in 1 application. That’s the order I’d teach it in. It’s also the order this post goes in.
I’m an AI Engineer at IBM, where we build OpenRAG, an open source retrieval platform that very large companies run against their private data. Back in 2024 I stood on stage at JSHeroes and told a room full of JavaScript developers that they were already AI engineers. I still think that!! The models are 1 request away from any language you already write. What’s between you and the job title is a list of things to learn in a sensible order. This is that list.
This roadmap is about building applications on top of models that already exist. Training a model is a different road (lots of math, lots of data, lots of GPUs) and it isn’t this post. You can start with JavaScript, Python or whatever you already use. Everything here works the same against Claude, OpenAI or a model running on your own laptop through Ollama.
My worked example throughout is Daiku Chat, an agent I’ve built around Claude Haiku 5.5 that drives a person’s browser for them. I’ll borrow a few of its decisions (its actual numbers) to show what each step looks like in practice, without turning this into a tutorial for rebuilding Daiku. For example, Haiku 5.5’s prices rise 5× once a request passes 100,000 input tokens so Daiku Chat compacts its context at 75K (step 7).
1. Learn to program
Learn variables, functions, arrays, objects, asynchronous work and error handling. Then learn how to send a request over the internet and read its response. The MDN learning curriculum is a place to start with web development.
You should be able to explain what a short function takes in, what it returns and what happens when it fails. If you can already do that, skip to the next step. I wouldn’t make an experienced developer learn another language before making a model call. And if you’re still at this step, you’re not late: I wrote my first HTML at 8 years old and didn’t touch a language model until about 20 years later.
2. Learn to call a model through an API
An application programming interface (API) lets your software talk to another service. Learn to send a model some instructions and a question, then read the response. Anthropic’s quickstart shows the request for Claude. OpenAI’s and Gemini’s look almost identical: a key, some instructions, a message, a response. That’s the entire job of a model call and it’s less scary than it sounds.
Learn where the secret key belongs (on your server, never in the browser), how authentication works and how to handle timeouts and usage limits. Try changing an instruction and comparing the answers. Also learn structured output, where you request fields your application can process, and streaming, where the answer arrives gradually.
Before continuing, make a successful request and handle a failed one. Read the usage information that comes back too. You’ll use those numbers in the next step.
3. Learn about tokens
Models process text as tokens, which can be words, pieces of words or punctuation. Token counts depend on the model’s tokenizer so a character count is only an estimate. You pay per token so this is the step where AI engineering turns into accounting (I mean that as a compliment).
Learn to distinguish input tokens from output tokens and read the provider’s usage report. Input includes the material you send; output includes what the model generates. Reasoning can also consume billed tokens, depending on the model.
Use a token-counting tool to compare questions with page readings and conversation history. You should be able to estimate a request’s cost from its token counts and the relevant rates before choosing a model for your application.
4. Learn about context windows
A context window is the amount of information a model can work with in a request, including space for its response. Instructions, tool definitions (descriptions of functions the model may request), messages and returned page content all take space. Cached input counts too.
In a conversation, your application sends the history the model needs for its next answer. A long transcript in your database doesn’t help unless relevant information reaches the model. Its training data is separate from this request’s context.
Learn the chosen model’s limits and leave room for output and incoming tool results. Being allowed to send a huge request doesn’t mean the model will use every detail well. You should be able to explain what the model can see on the next turn and what it can’t.
5. Learn context management
Context management means choosing what information goes into the next request and what stays outside it. This includes writing clear instructions, selecting relevant evidence, removing stale results and keeping the task’s current state.
Anthropic’s context-engineering guide describes retrieving information when needed and keeping the context that still matters over long tasks. Start with a simple question: what does the model need to make its next decision?
In Daiku Chat, a page reading matters for a few steps and then it’s just dead weight that costs tokens on every turn. The request clears older tool results at 40,000 input tokens while retaining 6 recent tool uses. That’s a different decision from summarizing the entire conversation, which is step 7.
Practice identifying which facts must survive: the user’s request, decisions already made, permissions, unresolved work and sources you may need to read again. Check whether removing information changes the answer before assuming a smaller context is better.
6. Learn how prompt caching works
Prompt caching lets the provider reuse processing for an unchanged beginning of your request, called its prefix. The model still generates an answer. You aren’t looking up an old response.
Put stable instructions and tool definitions before information that changes. A follow-up can reuse the matching beginning while processing the new material after it. If you change something near the beginning, the material after that change can’t reuse the old prefix entry. Claude asks you to mark the cache point yourself; OpenAI caches automatically once a prompt passes 1,024 tokens. Either way the rule is the same: stable stuff first.
Same beginning, new work
Request 1 · write the prefix
Process and store for reuse
Process new input
Request 2 · read the matching prefix
Reuse the stored processing
Process new input
For Haiku 5.5, a 5-minute cache write costs 1.25× ordinary input, a 1-hour write costs 2× and a cache read costs 0.1×. Reuse has to repay that write premium. Cacheable input must also meet the model’s minimum length (currently 512 tokens for Haiku 5.5).
Cache entries expire. Claude’s default is 5 minutes; a successful reuse refreshes the lifetime. The lifetime starts when the request starts so a long-running response or tool can use up much of it. Rules and rates differ between models and providers.
Daiku Chat gives its fixed instructions and tool prefix a 1-hour cache lifetime. Personal context follows the fixed block so it doesn’t change that beginning. Learn to inspect cache reads and writes in usage reports and compare total cost over a conversation. A lower token price won’t help if most requests keep paying for a new write.
7. Learn context compaction
Context compaction replaces older conversation with a shorter summary so work can continue with less active context. A summary can lose details. Learn to preserve decisions and unfinished work and keep original evidence available to retrieve again.
Replace older history with a summary
Before
Original request → many page readings and tool results → recent turns
↓ summarize the older work
Shorter summary
Goal, decisions, sources, unfinished work
Recent turns
If retained by your policy
Why Haiku’s 100K-token pricing changes the decision
As of November 12, 2026, Haiku 5.5’s standard Claude API rates rise 5× when a request exceeds 100,000 input tokens. That includes cached input. The higher rates apply across that request’s input and output. Earlier requests keep their original prices.
| Tokens | Prompt ≤100K | Prompt >100K |
|---|---|---|
| Input | $0.10 | $0.50 |
| Output | $0.50 | $2.50 |
Waiting until the context window is full would miss this price boundary!! Compacting around 90K can leave a buffer, but a large tool result could still push the next request past 100K. Count the whole next request and choose the buffer for your workload.
Daiku Chat requests provider compaction at 75K. Separately, when the application’s estimate of the next prompt exceeds 90K, it starts fresh context with the original request, recent assistant notes and the browser workspace identifier. Old page text can be read again. The estimate can be wrong when new material is larger than expected.
Claude’s threshold compaction defaults to 150K when enabled so set the threshold explicitly for this policy. Summarizing also costs tokens and can require writing a new conversation cache. A separate cache boundary after stable system instructions can preserve that cached prefix. Compare the complete run’s cost and whether the agent still remembers what it needs.
8. Learn tool calling and the agent loop
A model can request a function, such as reading a page or checking an order. Tool calling describes how your application supplies available functions, receives a structured request, checks it, runs the function and returns its result.
Learn this round trip with a read-only function first. Then learn the loop: the model reads a result and decides whether to request another tool or answer. An agent can choose its next steps through that loop rather than following a completely predetermined sequence.
Once you can wire up 1 tool by hand, learn the Model Context Protocol (MCP). It’s a client-server protocol, similar to HTTP, where your client is an AI agent and the server is an MCP server that offers it tools. That’s how an agent gets tools you didn’t write, like a database or a browser, without you gluing each one in. I gave a talk on where MCP fits at How to Web 2025 if you’d rather watch than read.
For choosing how another application connects to those tools, I explain MCP vs API and when OpenAPI is enough.
In Daiku Chat, the model requests browser tools and my application routes them through the person’s permission checks. The model doesn’t receive unrestricted control simply because it produced a valid tool call. Before continuing, follow a tool request from the model to its result and explain how failure reaches the next turn.
9. Learn to retrieve up-to-date information
A model’s training doesn’t tell it what changed on a website this morning. Learn to give it tools that retrieve relevant current information from pages, files or databases when the task needs it. Agentic retrieval means the agent can choose what to look up and follow useful leads.
Daiku can read the live page in the person’s signed-in browser. That suits information such as the current contents of a page or an account-specific record. For a large document collection, retrieval-augmented generation (RAG) can search for relevant passages before generating an answer. I’ve built a RAG app on stage in under 20 minutes and OpenRAG, the thing I work on at IBM, is the same idea at the size where very large companies run it against their private data. Start with ordinary search before deciding whether similarity search or embeddings are needed.
Check the source, date and actual supporting passage. A fresh page can still be wrong. Page text is also untrusted input: an instruction planted in a search result must not gain the authority of the person who asked the question. You should be able to show where an answer came from and recognize when the available evidence doesn’t support it.
10. Learn to enforce guardrails
Guardrails are controls over what an agent may do and how long it may keep trying. Learn permission checks before tool execution, including an approval step for actions your policy requires someone to confirm, such as deleting a file.
Writing “ask before deleting” in a prompt doesn’t enforce that rule. The application needs to hold the operation until approval exists. Daiku applies its person’s rules through a gate before browser actions run; the person’s settings determine which actions are held or refused.
Learn to limit turns, output tokens, total token usage, retries, elapsed time and spending. A maximum output size for 1 response isn’t a budget for an entire agent run. Agent-loop controls illustrate the difference between a turn limit and a spending limit. Decide what the user receives when either runs out.
Daiku Chat caps a main task at 80 model steps and checks spending before model calls. Practice a refused action, exhausted budget and failed tool. The agent should report what remains unfinished instead of claiming success.
11. Learn when to use multi-agent systems
A multi-agent system coordinates several model-driven workers, often with separate contexts. Learn delegation, handoffs and shared-state problems after you can follow 1 agent’s loop. This multi-agent guide explains where separation helps and where it adds unnecessary coordination. My WhatTheStack talk is about using them for your own productivity.
Independent research tasks may run in parallel. Tightly coupled edits may need a single owner. Decide what context a worker receives, what it must return and how the parent checks its result. More agents also mean more calls to pay for and more ways to lose a detail.
Daiku Chat has a focused-task tool that starts a subtask with fresh context and returns a short result. Those subtasks execute sequentially. Learn to make the choice for the work rather than making multiple agents a requirement for calling yourself an AI engineer.
12. Learn agent evaluations
An evaluation, usually shortened to eval, checks an agent against tasks and expected outcomes. Keep simple checks from your first model call; now bring them together so changes can be compared. Agent-evaluation guidance distinguishes the steps an agent took from the state it actually left behind. I ran a workshop on exactly this at the AI Engineer World’s Fair 2026.
Did the message get sent once to the intended person? Did the agent avoid the deletion it wasn’t allowed to perform? A fluent “done” doesn’t answer those questions. Read the action history and check the resulting state.
Daiku’s evaluation suite uses controlled sites and runs Chat through its actual permission gate. A test puts a malicious instruction beside a product price and checks that the agent answers the price without performing the planted action. Another checks that an intended chat message was sent exactly once.
Learn repeatable tasks, isolated starting state, repeated trials and grading with code or human judgment. A model can help judge less clear-cut answers after you check its judgments against people. Compare success, permission violations, cost and response time together. My evaluation guide goes deeper into model-based grading.
13. Put it together in a harness
Now bring the model calls, context management, tools, permissions, budgets and evaluations together. That’s what I mean by an agent harness. You can write this application code yourself (I build a coding agent harness from an empty loop step by step) or use a framework after you understand what it needs to do.
In Daiku Chat, I’ve combined these decisions around Haiku 5.5: cache the stable prefix, remove old tool results, compact before the expensive context tier, fetch live information, check actions and stop within a budget. Choose thresholds for your own model and workload.
Learn deployment too: protect secrets, separate users’ data, record enough to investigate failures and handle unavailable services. Check the complete system after a model, tool or instruction changes. You should be able to explain its behavior and demonstrate that it completes useful work within the permissions and resources you’ve given it.
Congratulations, you’re doing AI engineering!! From here you can keep going into search, speech, images, small models that run on your own hardware or model training, whichever your work calls for.
If your team wants to learn these skills together, I teach them in my AI workshops.
Questions
What should I learn to become an AI engineer?
My AI engineer roadmap starts with programming and calling a model through an application programming interface. Then I would learn tokens, context windows, context management, prompt caching, compaction, tool calling, live retrieval, guardrails, multi-agent systems and agent evaluation before bringing them together in an application.
Do I need Python or model training to become an AI engineer?
I would start with a programming language you can use, such as JavaScript or Python. This roadmap is about building applications with existing models; training models is a separate specialization with deeper mathematics and data requirements.
How does prompt caching work?
Prompt caching reuses the model's processing of an unchanged beginning of a request. I keep stable instructions and tool definitions before changing information so later requests can reuse that prefix. The model still generates a response and the cached input still occupies context.
When should I compact an agent's context?
I would choose a threshold based on the model's pricing, context limits and the size of upcoming tool results. Haiku 5.5 charges 5Ă— higher token rates for prompts over 100,000 input tokens, including cached input. Daiku Chat requests compaction at 75,000 and has a separate application guard at an estimated 90,000.
What is the difference between prompt caching and context compaction?
Caching reuses processing for an unchanged prompt prefix; compaction replaces older conversation with a shorter summary. I use both because they address different costs. Compaction can lose details and changes the conversation prefix so its effect on answer quality and cache reuse needs checking.
Do I need multiple agents to build an AI application?
I would learn a single agent's tool loop before adding agents. Separate agents can help with independent work or focused context, but coordination adds cost and failure cases. Learning multi-agent systems includes deciding when a single agent is enough.
What is an agent harness?
I use agent harness to mean the application code around a model that manages its loop, context, tools, permissions, budgets and continuation. Daiku Chat combines these around Haiku 5.5. A model call becomes a useful application through those surrounding decisions.
Written by me, Tejas Kumar, an AI Engineer at IBM based in Berlin. Read everything else I have written, or go to Fluent React, my O'Reilly book on how React works inside, the talks I give at conferences, and ConTejas Code, my podcast.