AI & Harness Engineering Roadmap
This roadmap takes you from zero background to shaping the field. Each level lists topics to learn, a practice task for each section, and a capstone project that ties the level together.
From Level 1 to Level 5 the work splits into two tracks:
- Track A: AI Engineering. Models, APIs, retrieval, evals, serving and fine-tuning.
- Track B: Harness Engineering. The “body” around the model: tools, the agent loop, context, skills, hooks, sandboxes and feedback loops.
Contents
| Level | Who it’s for | Time |
|---|---|---|
| Level 0: Child | Absolute beginner, zero background | ~4–6 weeks |
| Level 1: Beginner | First builder | ~6–8 weeks |
| Level 2: Intermediate | Production-ready builder | ~10–12 weeks |
| Level 3: Advanced | Systems engineer | ~12–16 weeks |
| Level 4: Expert | Production platform architect | ~4–6 months |
| Level 5: Master | Principal / Staff-Plus | ~6 months |
| Level 6: God Level | Field-shaping practitioner | Ongoing |
Level 0: Child
Absolute beginner, zero background · ~4–6 weeks
0.1 What Is AI?
- 0.1.1 AI vs ML vs Deep Learning vs Generative AI
- 0.1.2 What a “model”, “token”, “prompt” and “context window” are
- 0.1.3 Chatbot vs agent: “talks” vs “does things”
- 0.1.4 What an AI harness is, in plain words (the “body” around the “brain”)
- Practice: Use ChatGPT, Claude and Gemini on the same 10 questions and compare the answers
- Practice: Count tokens for 5 texts with a tokenizer playground
0.2 Computer & Programming Foundations
- 0.2.1 Files, folders, terminal/shell basics
- 0.2.2 Python fundamentals (variables, functions, lists/dicts, loops)
- 0.2.3 TypeScript basics (second language for the agent ecosystem)
- 0.2.4 Git and GitHub (commit, branch, PR)
- 0.2.5 JSON, YAML, Markdown
- 0.2.6 HTTP, REST APIs, API keys, environment variables
- Practice: 30 small Python katas; call one public REST API
- Practice: Create a repo, branch, PR and merge
0.3 Math & Data Intuition (Just Enough)
- 0.3.1 Vectors, dot product, cosine similarity
- 0.3.2 Probability, sampling, temperature
- 0.3.3 Basic statistics: mean, variance, confidence intervals
- Practice: Compute cosine similarity between 3 sentences using toy vectors
0.4 Safe & Responsible Use
- 0.4.1 Hallucinations, bias, privacy, never pasting secrets
- 0.4.2 AI literacy duty (EU AI Act, Article 4)
- Practice: Catch 5 hallucinations and verify each against a source
Capstone 0: A CLI “Ask-AI” script in Python that calls one LLM API, with the key stored in
.env, the code in Git, and a README.
Level 1: Beginner
First builder · ~6–8 weeks
Track A: AI Engineering
1.1 How LLMs Work (Conceptual)
- 1.1.1 Transformers, attention, next-token prediction
- 1.1.2 Pre-training vs post-training (SFT, RLHF/RLVR overview)
- 1.1.3 Reasoning models and test-time compute (thinking budgets, effort levels)
- 1.1.4 Model families 2026: frontier closed vs open-weight (Gemma 4, Qwen 3.x)
- 1.1.5 Context windows, KV cache, latency vs cost intuition
- Practice: Run the same task at low, medium and high reasoning effort; log quality, tokens and latency
1.2 LLM APIs
- 1.2.1 Messages/Responses-style APIs, roles, streaming
- 1.2.2 Parameters: temperature, max tokens, reasoning effort
- 1.2.3 Multimodal inputs: images, PDFs, audio
- 1.2.4 Prompt caching basics
- 1.2.5 Rate limits, retries, exponential backoff
- Practice: A streaming chat CLI with retry and caching; measure the cache-hit savings
1.3 Prompting → Context Engineering (Foundations)
- 1.3.1 Clear instructions, examples (few-shot), delimiters/XML tags
- 1.3.2 System prompts at the “right altitude”
- 1.3.3 Why “prompt hacks” faded and context engineering replaced them
- Practice: Rewrite 5 bad prompts; A/B test them on 20 inputs
1.4 Structured Outputs
- 1.4.1 JSON Schema, Pydantic / Zod
- 1.4.2 Constrained decoding vs validate-and-retry
- Practice: An invoice extractor with schema validation and a test suite
1.5 Tool Calling (Function Calling)
- 1.5.1 Tool definitions, arguments, tool results
- 1.5.2 Parallel tool calls
- Practice: A weather + calculator assistant with 3 tools
Track B: Harness Engineering
1.6 Using Coding Agents as a Power User
- 1.6.1 The harness landscape: Claude Code, OpenAI Codex (CLI/app/cloud), Cursor, Gemini CLI, GitHub Copilot agent mode, OpenCode
- 1.6.2 Plan mode vs execute mode; reviewing diffs; permissions/approval modes
- 1.6.3
AGENTS.md/CLAUDE.md: repo instructions as “feedforward guides” - Practice: Ship a small feature end-to-end with Claude Code or Codex; write the project’s first
AGENTS.md
1.7 The Agent Loop (Mental Model)
- 1.7.1 Model + tools + loop + stop condition = agent
- 1.7.2 Workflows vs agents (Anthropic “Building effective agents” patterns)
- Practice: Draw the loop of your coding agent from its transcript
Capstone 1: A “Docs Q&A + Actions” assistant with streaming, structured outputs, 3 tools, an
AGENTS.md, and 20 hand-written test cases.
Level 2: Intermediate
Production-ready builder · ~10–12 weeks
Track A: AI Engineering
2.1 Embeddings & Retrieval
- 2.1.1 Embedding models, chunking strategies, metadata
- 2.1.2 Vector stores (default: Postgres + pgvector); hybrid search (BM25 + vector)
- 2.1.3 Reranking
- 2.1.4 Contextual retrieval (chunk-level context prefixes)
- Practice: Build a RAG pipeline over 500 docs; measure recall@k before and after reranking
2.2 RAG Done Right
- 2.2.1 Classic RAG pipeline vs agentic search (just-in-time retrieval via tools: grep/glob/read)
- 2.2.2 Citations and grounding
- 2.2.3 Long context vs RAG trade-offs
- Practice: Compare classic RAG vs an agentic-search agent on the same 50 questions
2.3 Evals Foundations (Eval-Driven Development)
- 2.3.1 Tasks, trials, graders, transcripts, outcomes
- 2.3.2 Code-based vs model-based (LLM-as-judge) vs human graders
- 2.3.3 Building a golden dataset from real failures (start with 20–50 tasks)
- 2.3.4 Regression evals in CI
- 2.3.5 Tools: Braintrust or LangSmith (hosted), Langfuse (open-source)
- Practice: 50-case eval suite + a calibrated LLM judge vs your own labels; wire into GitHub Actions
2.4 Observability Basics
- 2.4.1 Traces, spans, token/cost/latency metrics
- 2.4.2 OpenTelemetry GenAI semantic conventions (
invoke_agent,chat,execute_tool) - Practice: Instrument Capstone 1 with OTel and view traces in Langfuse or Phoenix
2.5 Agent Frameworks (Pick One, Know Two)
- 2.5.1 Claude Agent SDK
- 2.5.2 OpenAI Agents SDK
- 2.5.3 LangGraph / Deep Agents (graph + middleware)
- 2.5.4 Vercel AI SDK (TypeScript)
- Practice: Rebuild the same agent in two SDKs; write a one-page trade-off memo
2.6 MCP Fundamentals
- 2.6.1 Hosts, clients, servers; tools, resources, prompts
- 2.6.2 Local (stdio) vs remote (Streamable HTTP) servers
- 2.6.3 Spec 2026-07-28: stateless core, server/discover, extensions (Tasks, MCP Apps)
- Practice: Build and publish an MCP server for an internal API; test it in Claude Code and Codex
Track B: Harness Engineering
2.7 Context Engineering for Agents
- 2.7.1 “Smallest set of high-signal tokens”
- 2.7.2 Just-in-time context vs pre-loading
- 2.7.3 Compaction, context editing, tool-result clearing
- 2.7.4 Structured note-taking (progress files) and git as memory
- 2.7.5 Tool-definition bloat; lazy tool loading / tool search
- Practice: Run a 3-hour agent task with and without compaction + progress file; compare outcomes
2.8 Tool / Agent-Computer Interface (ACI) Design
- 2.8.1 Few, non-overlapping, well-named tools
- 2.8.2 Token-efficient tool outputs, pagination, error messages as guidance
- 2.8.3 Edit-tool formats (diff/patch vs full rewrite)
- 2.8.4 Code execution / programmatic tool calling instead of many tool calls
- Practice: Cut an agent’s tool set by 50% and measure the success rate before and after
2.9 Agent Skills
- 2.9.1
SKILL.mdformat: frontmatter, progressive disclosure, scripts/assets - 2.9.2 Skills vs MCP vs sub-agents vs slash commands: when to use which
- 2.9.3 Portability across Claude Code, Codex, Gemini CLI, Copilot, Cursor
- Practice: Write 3 team skills (e.g., release notes, DB migration, code review) and version them in the repo
2.10 Hooks, Permissions & Sandboxing (Basics)
- 2.10.1 Pre/post-tool hooks, stop hooks
- 2.10.2 Allow/deny lists, approval modes
- 2.10.3 Containers/devcontainers, git worktrees for isolation
- Practice: A pre-commit hook that runs lint + tests and blocks agent commits on failure
Capstone 2: A production RAG + agent service with a remote MCP server, 3 Agent Skills, OTel traces, a 100-case eval suite gated in CI, and a cost/latency dashboard.
Level 3: Advanced
Systems engineer · ~12–16 weeks
Track A: AI Engineering
3.1 Multi-Agent Systems
- 3.1.1 Orchestrator–worker, planner–generator–evaluator
- 3.1.2 Sub-agents for context isolation and parallelism
- 3.1.3 When not to go multi-agent (token cost, coordination failures)
- 3.1.4 A2A v1.0: Agent Cards, tasks, artifacts, signed cards; A2A vs MCP
- Practice: A research agent with an orchestrator + 3 sub-agents; compare cost and quality vs a single agent
3.2 Memory Systems
- 3.2.1 Short-term (context), working (notes/files), long-term (semantic/episodic/procedural)
- 3.2.2 Patterns: vector-first (Mem0), temporal knowledge graph (Zep/Graphiti), agent-managed/file-based (Letta)
- 3.2.3 Memory write policies, decay, conflict resolution, poisoning risk
- Practice: Add cross-session memory to an assistant; evaluate it on LongMemEval-style questions
3.3 Advanced Retrieval: Agentic RAG & GraphRAG
- 3.3.1 Query planning, multi-hop retrieval, self-correction
- 3.3.2 GraphRAG / knowledge graphs: when relationships beat similarity
- 3.3.3 Retrieval evals (recall, faithfulness, citation accuracy)
- Practice: GraphRAG vs hybrid RAG on a multi-hop question set
3.4 Computer-Use & Browser Agents
- 3.4.1 Screenshot/GUI grounding vs DOM/accessibility-tree vs API-first
- 3.4.2 Playwright MCP / Chrome DevTools for verification
- 3.4.3 Benchmarks: OSWorld-Verified, OSWorld 2.0, WebArena
- Practice: A browser agent that completes a 10-step form workflow and verifies the final state
3.5 Multimodal & Realtime Voice Agents
- 3.5.1 Speech-to-speech (OpenAI Realtime gpt-realtime-2.1, Gemini Live) vs cascaded STT → LLM → TTS
- 3.5.2 Turn-taking, barge-in, latency budgets, telephony (SIP)
- 3.5.3 LiveKit Agents / Pipecat as orchestration layers
- Practice: A phone-support voice agent with tool calls, kept under 800 ms of voice-to-voice latency
3.6 Security for LLM & Agent Apps
- 3.6.1 OWASP Top 10 for LLM Applications 2025
- 3.6.2 OWASP Top 10 for Agentic Applications 2026 (ASI01–ASI10)
- 3.6.3 Direct and indirect prompt injection; the “lethal trifecta” (private data + untrusted content + exfiltration channel)
- 3.6.4 Least privilege, credential proxies, egress control, human-in-the-loop gates
- 3.6.5 Supply chain: MCP servers, skills, plugins (pinning, allowlists, signing)
- Practice: Red-team your Capstone 2 with 30 injection attacks; fix them and re-test
Track B: Harness Engineering
3.7 Building Your Own Harness from Scratch
- 3.7.1 Turn loop, tool dispatch, stop conditions, max-turn and doom-loop detection
- 3.7.2 Typed event stream; streaming UI
- 3.7.3 Context manager: micro-compaction, summarization, file restoration
- 3.7.4 Approval pipeline: policy check → guardian model → human prompt
- Practice: A 1,000-line “mini-Codex/Claude Code” in Python or TypeScript with read/grep/edit/bash tools
3.8 Feedback Loops: Guides & Sensors
- 3.8.1 Feedforward guides:
AGENTS.md, architecture docs, templates, skills - 3.8.2 Feedback sensors: linters, type checkers, structural/architecture tests, CI
- 3.8.3 Computational (deterministic) vs inferential (LLM-reviewer) checks
- 3.8.4 Self-verification loops; browser-verified evaluators
- Practice: Add architecture-fitness tests (dependency rules) that agents must pass
3.9 Long-Running Agents
- 3.9.1 Initializer agent + coding agent pattern (feature list, progress file, git checkpoints)
- 3.9.2 Planner–generator–evaluator harness; fresh-context evaluators
- 3.9.3 Goal/loop commands, stop hooks, Ralph-style loops
- 3.9.4 Cost of heavy harnesses vs solo runs
- Practice: An agent that builds a full-stack app over 6+ hours across many context windows
3.10 Agent-Legible Environments
- 3.10.1 Repo as system of record: docs, plans, decision logs in-repo
- 3.10.2 Observability exposed to agents (logs, metrics, traces as tools)
- 3.10.3 “Garbage collection”: background agents fixing drift
- Practice: Make a legacy service agent-legible (docs, scripts, test harness,
AGENTS.mdhierarchy)
Capstone 3: A multi-agent coding/ops system with a custom harness, sub-agents, memory, a sandbox, an approval pipeline, OWASP-Agentic threat model, browser verification, and a long-running (overnight) task demo.
Level 4: Expert
Production platform architect · ~4–6 months
Track A: AI Engineering
4.1 Inference & Serving
- 4.1.1 Prefill vs decode; batching; PagedAttention; RadixAttention / prefix caching
- 4.1.2 Engines: vLLM (default), SGLang (prefix-heavy/agentic), TensorRT-LLM
- 4.1.3 Disaggregated prefill/decode; llm-d on Kubernetes; NVIDIA Dynamo
- 4.1.4 Quantization (FP8, NVFP4, INT4/GGUF), speculative decoding, MoE serving
- 4.1.5 SLOs: TTFT, TPOT, goodput
- Practice: Serve an open model on vLLM and SGLang; benchmark TTFT/throughput; try P/D disaggregation
4.2 Small & Local Models
- 4.2.1 Gemma 4 (E2B/E4B/26B MoE/31B), Qwen 3.5 small models / Qwen 3.6
- 4.2.2 Runtimes: llama.cpp, Ollama (MLX on Apple silicon), LM Studio
- 4.2.3 Edge/on-device constraints; privacy-first architectures
- 4.2.4 Model routing: small model first, frontier fallback
- Practice: A local coding/RAG agent on a laptop; a router that cuts API cost by 60%+
4.3 Fine-Tuning & Post-Training
- 4.3.1 When to fine-tune vs context-engineer vs RAG
- 4.3.2 SFT, LoRA/QLoRA, distillation from frontier traces
- 4.3.3 Preference optimization (DPO and variants)
- 4.3.4 RLVR with GRPO-family algorithms (DAPO, GSPO); reward design and reward hacking
- 4.3.5 Tooling: TRL, Unsloth, verl, OpenRLHF
- Practice: LoRA SFT on a 4B model for a narrow task; then GRPO with a verifiable reward and compare
4.4 Cost & Latency Engineering
- 4.4.1 Token economics: caching, batch APIs, compaction, model tiering
- 4.4.2 Reasoning-effort tuning per step
- 4.4.3 Semantic caching; speculative tool prediction
- 4.4.4 Unit economics per task, per user, per agent run
- Practice: Cut a production agent’s cost per task by 50% while holding eval scores
4.5 LLMOps / AgentOps
- 4.5.1 Prompt/config/skill versioning; feature flags; canaries
- 4.5.2 Online evals, drift detection, feedback capture
- 4.5.3 AI gateway (routing, quotas, keys, fallbacks)
- 4.5.4 Incident response for agent failures
- Practice: A gateway + online eval loop + rollback playbook
Track B: Harness Engineering
4.6 Durable Execution for Agents
- 4.6.1 Event sourcing, deterministic replay, idempotent tool calls
- 4.6.2 Temporal (default; OpenAI Agents SDK and AI SDK integrations), Restate, DBOS, LangGraph checkpointers
- 4.6.3 Human-in-the-loop signals, durable timers, multi-day workflows
- Practice: Wrap an agent in Temporal; kill workers mid-run and prove it resumes without duplicate side effects
4.7 Brain / Hands / Session Architecture
- 4.7.1 Decoupling harness (brain), sandboxes/tools (hands), durable event log (session)
- 4.7.2 Stateless harnesses, “cattle not pets” sandboxes
- 4.7.3 Credential-injecting proxies (the model never sees secrets)
- 4.7.4 Hosted runtimes (Claude Managed Agents, OpenAI Agents API on the Codex harness) vs self-hosted
- Practice: Refactor Capstone 3 into brain/hands/session services
4.8 Sandboxing & Isolation at Scale
- 4.8.1 Containers vs gVisor vs microVMs (Firecracker); Kubernetes Agent Sandbox
- 4.8.2 Network egress policy, filesystem scoping, secrets isolation
- 4.8.3 Parallel agents with isolated worktrees
- Practice: Run 50 parallel agent sandboxes with an egress allowlist and per-run teardown
4.9 Agent Observability at Depth
- 4.9.1 OTel GenAI agent/tool/MCP spans; trace-tree debugging
- 4.9.2 Trace-driven harness improvement (failure clustering)
- 4.9.3 Redaction and PII handling in traces
- Practice: Cluster 1,000 failed trajectories; fix the top 3 harness failure modes
4.10 Advanced Agent Evals
- 4.10.1 pass@k vs pass^k; capability vs regression suites
- 4.10.2 Outcome grading over path grading; partial credit; isolated trials
- 4.10.3 Harbor + Terminal-Bench 2.0, SWE-bench Pro, τ-bench, OSWorld; Inspect (UK AISI)
- 4.10.4 Infrastructure noise, eval awareness, contamination
- 4.10.5 Harness-only ablations (hold the model constant, vary the harness)
- Practice: Run your harness on Terminal-Bench via Harbor; improve the score through harness changes only
Capstone 4: An enterprise agent platform with a gateway, durable execution, brain/hands/session separation, sandbox fleet, MCP registry, skill catalog, OTel pipeline, online + offline evals, model routing (local + frontier), and SLOs.
Level 5: Master
Principal / Staff-Plus · ~6 months
Track A: AI Engineering
5.1 AI System Design at Scale
- 5.1.1 Reference architectures: assistant, copilot, autonomous back-office agent, agentic data pipeline
- 5.1.2 Multi-tenant isolation, quotas, noisy-neighbor control
- 5.1.3 Consistency, idempotency, sagas/compensation for agent actions
- 5.1.4 Capacity planning: GPU fleet vs API spend; build vs buy
- 5.1.5 Vendor-neutral design: protocol-first (MCP, A2A, Skills, OTel)
- Practice: Write 5 design docs with explicit trade-off tables; get them peer-reviewed
5.2 RL Environments & Agentic Post-Training
- 5.2.1 Building verifiable environments (containers, tasks, graders)
- 5.2.2 Rollout infrastructure, async RL, long-horizon credit assignment
- 5.2.3 Training harness-native agents (the harness as a fixed part of the policy interface)
- Practice: Build an RL environment for your domain and train a small model with GRPO on it
5.3 Security Architecture & Red Teaming
- 5.3.1 Agent identity, delegated authorization, OAuth for MCP, scoped tokens
- 5.3.2 Inter-agent trust (signed Agent Cards), rogue-agent containment, kill switches
- 5.3.3 Continuous automated red teaming; MITRE ATLAS
- Practice: A full threat model + red-team report mapped to ASI01–ASI10
5.4 Governance, Risk & Regulation
- 5.4.1 EU AI Act timeline after the Digital Omnibus: GPAI obligations (Aug 2025), Article 50 transparency (Aug 2026, with the Article 50(2) marking of AI-generated content due 2 Dec 2026), Annex III stand-alone high-risk (2 Dec 2027) and Annex I product-embedded high-risk (2 Aug 2028), per the Council of the EU agreement of 7 May 2026
- 5.4.2 NIST AI RMF, ISO/IEC 42001 AI management system
- 5.4.3 Model/agent inventories, AI-BOM, audit logs, human oversight design
- Practice: An ISO 42001-style control set + EU AI Act risk classification for your platform
Track B: Harness Engineering
5.5 Harness Engineering as an Organizational Discipline
- 5.5.1 “Humans steer, agents execute”: redesigning team workflows
- 5.5.2 Golden principles, quality grades, automated cleanup PRs
- 5.5.3 Harnessing legacy codebases (where it’s hardest and most needed)
- 5.5.4 Measuring agent throughput, review load, defect escape rate
- Practice: Roll out a harness program to one team; report before/after metrics
5.6 Automated Harness Optimization
- 5.6.1 Meta-harness search; prompt/skill/tool evolution (e.g., GEPA-style)
- 5.6.2 Self-improving agents from their own traces
- 5.6.3 Guardrails against harness overfitting to benchmarks
- Practice: An automated loop that proposes harness changes, evals them and merges only verified gains
5.7 Large-Scale Parallel & Autonomous Agent Fleets
- 5.7.1 Hundreds of agents on one codebase: coordination, merge conflicts, ownership
- 5.7.2 Scheduling, budgets, preemption, backpressure
- 5.7.3 Cross-framework orchestration with durable execution
- Practice: Run a 100-agent migration (e.g., framework upgrade) with zero manual coding
Capstone 5: An “agent-first engineering org in a box”: a platform, harness, eval suite, security and governance controls that let a 3–5-person team ship a real product with agent-written code. Publish the architecture and metrics.
Level 6: God Level
Field-shaping practitioner · Ongoing
6.1 Frontier Research Literacy
- 6.1.1 Read 2 papers/week (arXiv: harnesses, RL for agents, serving, evals)
- 6.1.2 Reproduce 1 result/month
- Practice: Reproduce a harness paper result and publish the delta
6.2 Standards & Open Source Leadership
- 6.2.1 Contribute to MCP / A2A / Agent Skills (AAIF), OTel GenAI semconv, vLLM/SGLang
- 6.2.2 Write SEPs/RFCs; maintain a widely used MCP server, skill pack or harness
- Practice: Land 3 merged PRs in a top agent-infrastructure project
6.3 Original Contributions
- 6.3.1 New benchmark or RL environment for an unsolved domain
- 6.3.2 Novel harness pattern with public ablations
- 6.3.3 Teach: course, talk (AI Engineer World’s Fair, AGNTCon + MCPCon), book
- Practice: Publish a paper/tech report + open-source artifact
6.4 Judgment & Taste
- 6.4.1 Knowing when the model will absorb your harness (simplify as models improve)
- 6.4.2 Bitter-lesson-aware architecture: build for replaceable models
- 6.4.3 Safety-first autonomy decisions
- Practice: Write an annual “what to delete from our harness” review