The brief is the product
When an agent writes the code, the thing you actually ship is the task brief. Here is the shape mine have settled into, and why each section exists.
Most of the code I’m responsible for now is written by agents. That sentence used to make people ask which model I use. The better question is what I hand the model, because that is where nearly all of the quality comes from.
A good agent with a vague task produces confident, plausible, wrong code. A decent agent with a sharp brief produces something I can merge. After writing a lot of these, my briefs have converged on the same handful of sections. None of them are decoration. Each one exists because I watched an agent fail without it.
Objective, in one sentence
The first line says what changes for a user or a system, in plain words. Not “build the export service,” but “let a workspace owner schedule a nightly CSV export that only they and their admins can download.” If I can’t write that sentence, the task isn’t ready, and no amount of prompting downstream will fix it.
Depends on, and parallel-safe with
Agents run in parallel now. A brief has to say what must land before it, and which sibling tasks it can safely run alongside. This is the part humans used to keep in their heads during standup. Written down, it lets me fan out four agents on one story without them stepping on the same files.
Files to read first
This is the highest-leverage section in the whole brief. I list three to six files, and for each one I say why it matters:
- the contract the new code reads from
- the controller whose pattern to mirror
- the one class that looks like the right example but isn’t
That last kind of entry matters more than the others. An agent exploring a large codebase will find a plausible precedent and copy it. My job is to point at the right precedent before it finds the wrong one. Line hints help too (“three call sites, around lines 88, 141 and 207”) because “update the logic” invites updating one site and declaring victory.
Files to create or modify
An explicit list, with a verb on each: create, modify, or “DI registration only.” The “only” carries weight. It tells the agent that a sprawling diff to a startup file is a sign it has gone off course.
Implementation notes, including the trap
Every non-trivial task has one way it is most likely to ship wrong. I name it directly:
Writing that paragraph takes me two minutes. It has saved me from more bad merges than every linter I run combined. If you only add one thing to your briefs, add this.
The notes are also where I say which of two similar-looking services is the one being deleted. “If you injected the one with the identical method name, you picked the wrong service” is the kind of sentence no amount of codebase search will produce for you.
Open questions, resolved at execution time
I don’t pretend to know everything when I write the brief. Some questions are better answered by the agent once it has read the code: whether exports should ride the existing job queue or get their own, how long a download link should stay valid. I list those explicitly and say what a good answer looks like (“match the strongest existing pattern”). That turns a guess into a decision the agent has to report back.
Test scenarios and verification
Happy path, edge cases, error handling, written as behavior rather than test names. Then the exact commands that prove the task is done:
dotnet build
dotnet test --filter "FullyQualifiedName~WorkspaceExport"
An agent that can run its own verification loop will. An agent that has to guess what “done” means will stop at “it compiles.”
What this costs
A brief like this takes a fraction of the time the implementation would have taken me by hand, and the review is fast because I already know where to look. The time didn’t disappear. It moved from typing to thinking, which is where it should have been all along.
The uncomfortable conclusion is that the skill that matters most in agentic engineering is the one most engineers practiced least: writing down exactly what you want, including what you are afraid of.