Topic 1 of 5 · 4 min read
Writing a task brief for an agent
Goal: Write an agent task brief with scope, inputs, allowed tools, acceptance criteria and a stop condition.
An agent brief is a work order: it names the goal, the inputs, the tools the agent may use, how you will judge "done", and when it must stop and ask. An agent such as Claude, ChatGPT agent mode, Copilot or Gemini does not work in one reply. It loops: it picks a tool, reads the result, picks the next step. Whatever the brief leaves open, the agent decides for itself.
Check yourself · 1 of 3
Which line is a stop condition in an agent brief?
Why it matters
A person you hand work to can walk over and ask a question. An agent usually cannot, or will not. It fills a gap with its best guess and keeps going, and it sounds sure while doing it. A loose brief therefore does not give a loose result. It gives a confident wrong one, produced fast and at scale. Anthropic's guide on agents says the same from the builder's side: clear stopping conditions and checkpoints are part of the design.
The six parts of a brief
- Goal and scope. One outcome, and what is out of scope. "Reconcile the March supplier invoices" is a goal. "Look into finance stuff" is not.
- Inputs. The exact files, folders, tickets or links to use. Say which source wins if two disagree.
- Allowed tools and access. What it may read, what it may change, what it must never touch. Give it the least access that does the job.
- Limits. A time or cost cap, a number of items, and which actions need a person first, such as sending, paying, deleting or publishing.
- Acceptance criteria. Checks you can run in two minutes: "every invoice has a match or a reason", "no more than 10 rows flagged".
- Stop condition. When to stop and ask: missing data, two sources that conflict, anything outside scope, or a step that cannot be undone.
Before and after
Before: Clean up our customer list and email the people who have not bought in a year.
This has no source, no definition of "clean", no limit on who gets mailed, and it lets the agent send email unchecked.
After: Goal: find customers with no order since 1 December 2025 in the file customers-nov.csv. Do not edit the file. Write a new sheet with name, email, last order date. Tools: read the file and write one new sheet; no email access. Done when: every row has a last order date and the count is shown. Stop and ask if a customer has no order date or appears twice.
What goes wrong
- Goal without a stop rule. The agent meets a gap, guesses, and carries on for 40 steps before anyone notices.
- Access wider than the task. An agent that can send mail will eventually send mail. OWASP calls this excessive agency.
- Acceptance by feel. "Make sure it is good" cannot be checked. A person reviewing later has to redo the work to know.
Keep the brief short enough to read in one minute. If it needs a page, the job is probably two jobs.
Examples
A loose brief and a tight brief for the same job
Loose: "Go through the support inbox and sort out the refund requests."
Tight: "Goal: list refund requests received 1-7 December 2026 in the Support inbox. Inputs: that inbox only. Tools: read mail and write one spreadsheet; you cannot reply or refund. Done when: each request has order number, amount and a one-line reason, and the total is shown. Stop and ask if an email has no order number or asks for more than 500 dollars."
The tight version can be checked by someone who did not write it.
Choosing the stop condition
For a research agent compiling competitor prices, "stop when two sources disagree by more than 10 percent" is a stop condition. "Stop when finished" is not, because the agent decides alone what finished means. Tie the stop to a fact you can see in the log.
Key points
- A brief has six parts: goal and scope, inputs, allowed tools, limits, acceptance criteria and a stop condition.
- An agent fills every gap in the brief with a guess and rarely asks, so gaps become confident mistakes.
- Give the agent the least access that does the job, and name the actions that need a person first.
- Acceptance criteria should be checks you can run in minutes, not words like "good" or "thorough".
- A stop condition says when the agent must pause and ask instead of guessing.
Common mistakes
- Writing only the goal and trusting the agent to work out inputs, limits and what done means.
- Granting broad access "in case it needs it", which turns any wrong guess into a real action.
- Using acceptance criteria no one can check, such as "high quality" or "complete".
- Leaving out the stop condition, so the agent guesses past a conflict instead of asking.
Check yourself · 2 of 3
You ask an agent to "tidy the shared drive". Which change to the brief best limits the damage if it guesses wrong?
Check yourself · 3 of 3
A brief says: "Summarise last quarter's customer complaints. Done when it is good." What is the main flaw?
Practice items, not counted towards your mastery.
Start here
- Practices for governing agentic AI systems (OpenAI) (opens in a new tab)PaperFree
Lists practices such as constraining the action space, making agent activity legible and assigning accountability across the people involved.
- Building effective agents (Anthropic) (opens in a new tab)ArticleFree
Explains how agents loop over tool calls and why clear tools, checkpoints and stopping conditions matter.
- AI Risk Management Framework (NIST) (opens in a new tab)StandardFree
A free US framework with Govern, Map, Measure and Manage functions for assigning roles and monitoring AI systems.
More for this topic
- OWASP Top 10 for LLM Applications (opens in a new tab)StandardFree
Names "excessive agency" as a risk: agents given more tools, permissions or autonomy than their task needs.
Where to go in your country
- Article 14: Human oversight (EU AI Act) (opens in a new tab)StandardFreeEU
Plain text of the EU rule on human oversight, including the duty to be able to interpret output and to stop a system.