Build: a long-running research agent
You'll build an agent that researches a whole market and writes a sourced report, a job that means reading hundreds of pages and could never fit in one context window. It keeps its plan and findings in files, sends subagents out with fresh contexts, trims everything it reads, and can lose its context at any moment and carry on.
In this lesson you'll learn to
- Design a research agent's harness around files on disk (plan, notes, sources, progress) that outlive any context window.
- Build the agent loop with search and fetch tools whose results are trimmed, and notes saved as it goes.
- Keep the work going across many context windows with subagents, compaction and restarts from saved state.
- Evaluate the agent on finished reports, citation accuracy and cost per task, with clear stopping rules.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.