Chapter 1 of 7 · 40 min of your attention
Brief It Like a Colleague
When an agent gets a hard task wrong, the cause is usually upstream of the work: it was steering by a chat history full of half-made decisions instead of a clear brief. This chapter turns your task into a brief the agent can work from without you, and proves the brief works by handing it to a fresh session.
Context Is a Budget
An agent works from its context window: your messages, every file it reads, every command's output. It feels unlimited. It isn't. Anthropic's engineering team calls the effect context rot: as the context grows, the model gets worse at recalling and using what's in it (Anthropic, 2025). The Claude Code guide puts it plainly: performance degrades as the context fills (Claude Code docs).
Three habits follow, whichever agent you use:
- Point, don't paste. Give paths, folder names and links, and let the agent open what it needs when it needs it. A pasted export sits in the context for the whole session; a path costs one line.
- One task per session. Side questions and dead ends stay in the context and pull the agent off course. Start a fresh session between tasks.
- The brief is the source of truth, not the chat. A decision you make mid-session goes into the brief file, so a fresh session, or a colleague, starts from the same place.
Step 1: Pick the Task
Pick one task from your actual work that you'd normally block out an afternoon for. It needs three things:
- Inputs you can point at: files in a folder, an export, a repository. Not "what I know about the client".
- A result someone else could check: tests, totals, counts, a list with references. If the only check is "it reads well", pick a different task.
- Data you may use with this agent. If you're not sure, use a copy with names and account numbers removed, and ask before using the real thing.
Make a folder for the task and put the inputs in it, or open your agent in the repository.
This example depends on your kind of work. Which one will you bring?
Checkpoint
Step 2: Let It Interview You Into a Brief
Don't write the brief alone, and don't let the agent start the work yet. Ask it to interview you first, one question at a time, and to write the result to a file. Both Anthropic's Claude Code guide and OpenAI's Codex guide recommend this for bigger tasks: the agent asks about the edge cases you hadn't written down, and you answer once (Codex docs).
A useful brief has five parts:
- Goal: what changes, in a sentence or two.
- Inputs: the files, folders and links, by path.
- Constraints: what it must not touch or change, the conventions to follow, and the decisions it must stop and ask you about.
- Done when: checks that can pass or fail, not adjectives.
- Out of scope: what you're deliberately leaving for later.
Practise the prompt here, then run it for real in your task folder:
This example depends on your kind of work. Which one will you bring?
Answer its questions until it writes the file, then read BRIEF.md yourself. The section that matters most is Done when. If a check says "accurate" or "clean", rewrite it as something that can fail. Then make sure Constraints names the stops: the decisions the agent brings to you instead of making, such as changing a date an invoice shows, writing off a difference, or settling the categories. A stop that's only in the chat is gone in the next session.
Checkpoint
Step 3: Hand the Brief to a Fresh Session
Here's the test that the brief carries the context, not the chat history: start a fresh session and ask the agent to read only the brief. How you start fresh depends on your agent:
| What you want | OpenCode | Claude Code | Codex |
|---|---|---|---|
| Start a fresh session | /new |
/clear |
/new |
| Summarize and keep going | /compact |
/compact |
/compact |
| Standing instructions | AGENTS.md (/init drafts it) |
CLAUDE.md (/init), or AGENTS.md |
AGENTS.md (/init drafts it) |
| Personal skills folder | ~/.agents/skills |
~/.claude/skills |
~/.agents/skills |
In Claude Cowork, start a new task; standing instructions live in the folder's or project's instructions. Using another agent? Look for the same four things in its docs.
This example depends on your kind of work. Which one will you bring?
If the restatement is wrong, the brief is wrong. Fix the brief, not the session, and run the test again in another fresh session. Whatever it's guessing about goes into the brief too. When a fresh session gets it right, any session can pick up this task, and so could a colleague.
Checkpoint
What You Have Now
A real task, a folder with its inputs, and a brief that a fresh session understands. Next, the agent does the work in steps that each end with a check, and shows you the evidence.
English
Language
Remembered on this device with a cookie.