Skip to content
Tutorial

Prompting patterns for large codebase edits

Context selection, chunking and verification strategies for making an agent safe to point at a million-line repository.

Large repositories break naive agents: the context window is not the constraint people think it is. This tutorial covers retrieval strategy, how to scope an edit, and how to make the agent prove its own work before you accept a diff.

prompting
context
agents

Related

Writing your first MCP server

A step-by-step guide to building, testing and shipping a Model Context Protocol server that exposes your own tools to an agent.

Eval-driven development for coding agents

How to build an evaluation harness before you build the agent, so you can tell whether a change made things better or just different.