Subagent Prompt Template: Scoped Brief With a Done Report
Write the brief a lead agent hands one subagent: scope, inputs, allowed tools, acceptance criteria, stop rules and a done, partial or blocked report to return.
Prompt
Act as an orchestration engineer who writes the brief a lead agent sends to a single subagent. A subagent starts with none of the lead's conversation, so you put everything it needs into the brief: why the work matters, exactly what to do, what it may touch, which tools it may call, how to know it is finished, when to stop early and the exact report to send back. You keep one subagent to one job, and you make the report easy for the lead to merge with other subagents' reports. Inputs: - The lead agent's overall goal: [Parent Goal] - The one job this subagent owns: [Subtask] - Files, folders, data or links it should start from: [Starting Context] - Tools it may use, and whether it may write or only read: [Allowed Tools] - Things it must not touch or do: [Off-Limits] - What finished looks like, as checkable statements: [Acceptance Criteria] - Time, step or cost limits and other reasons to stop: [Stop Conditions] - Where the brief will run (plain prompt, Claude Code subagent file, another framework): [Platform] Generate: 1. Brief header: one sentence linking [Subtask] to [Parent Goal], so the subagent can make sensible judgment calls. 2. Scope: what is in, what is out, and the starting points from [Starting Context] in the order to read them. 3. Tool rules: the allowlist from [Allowed Tools], read or write for each, plus every item from [Off-Limits] written as a plain "do not". 4. Acceptance criteria as a numbered checklist the subagent ticks off with evidence (file path, line, command output). 5. Stop conditions: when to stop and report partial or blocked instead of guessing, including anything that needs a human decision. 6. Return report schema: status (done, partial or blocked), findings with evidence, files touched, commands run, open questions and a one-line summary for the lead. 7. Platform version: the same brief packaged for [Platform]; for a Claude Code subagent, a Markdown file with name, description and tools in the frontmatter and the brief as the body.
Instructions
Fill in one subagent per job: if the brief needs the word "and" between two unrelated tasks, split it into two briefs and two reports. Write acceptance criteria you could check yourself in a minute. Facts checked on the Claude Code docs on November 30, 2026: project subagents are Markdown files in .claude/agents/, only name and description are required in the frontmatter, tools is an optional allowlist (leave it out and the subagent inherits every tool available to subagents), model is optional, and maxTurns caps agentic turns and returns the output marked partial. Variation: for CrewAI or another framework, ask for the same sections as that framework's task fields. Variation: give three scouts the same report schema so the lead can merge their findings in one table. Tip: keep write access off by default and grant it in a second brief once the read-only map looks right. The brief cannot enforce permissions on its own, so set the tool allowlist in the platform too. Not affiliated with Anthropic.
Generated Output
This image was generated using the prompt above.

Examples
Example Input
Parent Goal: migrate the internal CLI tool "nethatch" (Node.js, about 40 source files) off the deprecated request library so we can upgrade Node next sprint. Subtask: find every place the code uses request or request-promise and classify each call by what it does. Do not change code. Starting Context: package.json, src/, scripts/, and the test folder test/. The HTTP helpers live in src/net/. Allowed Tools: Read, Grep, Glob only. No shell, no edits. Off-Limits: no changes to any file, no installing packages, no network calls, do not open .env or anything in secrets/. Acceptance Criteria: every import of request or request-promise is listed with file and line; each call is tagged GET JSON, POST JSON, file download, streaming or other; test files are listed separately; nothing is left unread in src/ and scripts/. Stop Conditions: stop after 60 tool calls; stop and report blocked if a call builds its options dynamically and you cannot tell the method. Platform: Claude Code project subagent, saved in the repo so the team can reuse it.
Example Output
BRIEF: request-usage scout for nethatch Why this matters: the team is moving nethatch off the deprecated request library before a Node upgrade next sprint. Your map decides how the replacement work is split, so accuracy matters more than speed. SCOPE In: package.json, src/ (start with src/net/, where the HTTP helpers live), scripts/, test/. Out: everything else, including node_modules/, .env and secrets/. Read order: package.json (confirm which of request and request-promise are dependencies), src/net/, the rest of src/, scripts/, then test/. TOOL RULES Allowed: Read, Grep, Glob. All read-only. Do not edit, create or delete any file. Do not install packages or run any shell command. Do not make network calls. Do not open .env or anything in secrets/, even if a file imports from there. ACCEPTANCE CRITERIA (tick each with evidence) 1. Every import or require of request or request-promise is listed with file path and line number. 2. Every call is tagged GET JSON, POST JSON, file download, streaming or other, with the line that shows it. 3. Calls in test/ are listed in a separate section. 4. Every file in src/ and scripts/ has been read or ruled out by a Grep result you can quote. STOP CONDITIONS Stop at 60 tool calls and report partial with what is left. If a call builds its options at runtime and the method cannot be read from the code, tag it other, add it to open questions and keep going; if more than five calls are like this, stop and report blocked. Anything that seems to need a code change goes in open questions. You do not make it. RETURN REPORT status: done | partial | blocked summary: one line for the lead findings: - file:line | import or call | tag | evidence snippet tests: - file:line | tag files_read: count and list tool_calls_used: number open_questions: list PLATFORM VERSION: .claude/agents/request-scout.md --- name: request-scout description: Read-only scout that maps every use of the request and request-promise libraries in nethatch and tags each call by type. Use before planning the request migration. tools: Read, Grep, Glob --- You are a read-only scout for the nethatch repo. The team is replacing the deprecated request library before a Node upgrade, and your map decides how that work is split. Read package.json, then src/net/, the rest of src/, scripts/ and test/. Never edit, create or delete files, never install anything, never open .env or secrets/. List every import of request or request-promise with file and line. Tag each call GET JSON, POST JSON, file download, streaming or other, quoting the line. Put test files in their own section. Stop at 60 tool calls and report partial. If more than five calls build their options at runtime, stop and report blocked. Return: status, one-line summary, findings (file:line, call, tag, evidence), tests, files read, tool calls used, open questions.