Module 5 of 7

Context engineering and agent orchestration

The idea

The bottleneck was never the code. It is context: what the agent knows, when it knows it, and what it should never see. Get that right with one agent, then let an orchestrator direct many, each with its own context window and the right model for the job.

Why this matters

The point

Learn to manage what your agent knows, then to direct several agents at once.

Why it matters for your product

The bottleneck is not the code, it is context. Too much makes an agent worse and too little makes it guess. With an orchestrator, each sub-agent gets its own context window and the right model for the job.

What you will have at the end

  • At least 10 commits in your repository.
  • One bug reported the right way.
  • A first try at orchestration.

Where to get help

Stuck? Field Notes and Lumina answer from the same articles as this course.

Save your progress

Sign up for free with your email to tick off what you read and to check your tasks.

Start for free

Try it: orchestration

Watch an orchestrator hand work to cheaper workers and check what comes back. It is the same explainer as on Workflows.

Step 0 of 9
  1. Rename files to the new conventionQueued
  2. Build the Library pageQueued
  3. Design the entitlement schemaQueued
  4. Audit a diffQueued
Orchestrator

Plans, routes, syncs state, audits. Reads summaries, not workings.

Orchestrator context12%
Current worker context0%
A worker can fill its window; it is thrown away after the audit.
  • Small modelSimple, mechanical worktoday: Haiku
  • Mid modelFront-end worktoday: Sonnet
  • Top modelComplex back-end worktoday: Opus

Four tasks are queued. In orchestrate mode each one is routed by complexity; in one long session the same agent does all of them.

Today: Haiku / Sonnet / Opus. The tiers are the idea; the model names change every few months. Illustrative percentages of one context window, to show the shape, not to measure a tool.

  1. Read

    The articles are the course. Read at least 2 of them. The others are more reading.

    Opening an article marks it as read. The quiz checks you understood it.

    1. Context is the Code: The Complete Three-Phase Process for Building with AI Agents

      Read on Substack (opens in a new tab)
    2. The Right Context, Not All of It

      Read on Substack (opens in a new tab)
    3. Two Worlds of Code: The Gap Between AI Agent Orchestration and Legacy Development

      Read on Substack (opens in a new tab)
  2. Install & do

    Get the tools, then do the small hands-on work. Free tools, open source where possible.

    6 steps

    Tools for this module

    Your hands-on steps

    1. Check your Phase One foundations from Module 4. Is there anything the agent would have to guess? Add it to the right file.

    2. Watch your context window. Most harnesses show how full it is. When it gets to about 80%, ask your agent for a handoff file and move to a new session (more in Module 6).

    3. Try orchestration. In Claude Code (desktop app) or Codex, set up one orchestrator, your "CTO". Give it your foundations and a plan, talk only to it, and watch it send worker agents to do the tasks.

    4. Route tasks to the right model. Ask your orchestrator to use a small model for simple work and a strong one for hard work.

    5. Report one bug the right way: a screenshot plus exactly what you clicked, what you expected and what happened.

    6. Optional: try the interactive workflows on talirezun.com/workflows (context window, memory, multi-harness work, orchestration).optional

  3. Prove

    Show what you did. The course checks it where it can, and tells you plainly when something is missing.

    1. At least 10 commits

      Commits in the repository

      Commit your work as you build. The course counts the commits on the default branch of your repository since you joined.

      At least 10 commits since you joined the course.

    2. One bug, reported the right way

      Written answer

      Report one bug to your agent the right way, and paste the report here: a screenshot link or description, plus what you clicked, what you expected and what happened.

  4. Quiz

    One question at a time, with the answer explained and the line it comes from. Pass at 80% and this module is done.

    Quiz: 8 questions. Get 6 right to complete this module.

    Sign up for free to take the quiz and save your result.