Skip to content

Agents checklist

Copy this into your PR or ticket. Use Part A for subagents, Part B for SDK agents, and Part C for both.

  • Job written in one sentence
  • Input the parent must pass is defined
  • Output shape and max length defined
  • Stop condition defined
  • 3–5 real tasks collected
  • Specific isolation benefit named (context, parallelism, permissions, model, or independence)
  • Not better served by a skill or rule
  • Least privilege: read-only unless editing is the job
  • Claude Code: tools: allowlist or disallowedTools: set (or both deliberately omitted)
  • Cursor: readonly: set appropriately
  • Model chosen (start with inherit; switch per role once you’ve measured)
  • States when to use it; includes “use proactively” if automatic delegation is wanted
  • No overlap with sibling agents
  • Role, first actions, prioritised checklist, constraints, output template, and stop condition
  • Self-sufficient: makes sense without the parent’s chat
  • Created from a template (downloaded from the templates page) or assembled with the Subagent builder
  • Correct location (.claude/agents/ for both hosts, .cursor/agents/ for Cursor only)
  • File name matches name
  • Listed in the @ typeahead (Claude Code) or the Subagents section (Cursor)
  • Explicit (@agent-<name> / /name), implicit, negative, and sibling-confusion delegation tests pass
  • Seeded-defect / golden tasks pass
  • Output matches the template and length
  • Constraints held (for example git status clean for a read-only agent)
  • Eval sheet saved
  • Committed or packaged
  • README entry with example invocations
  • Logged in DECISIONS.md
  • Trigger, inputs, output destination, and budget documented
  • SDK choice (Claude / Cursor / headless CLI) and reason logged
  • Credentials in environment variables or CI secrets only; never committed
  • Project is an ES module (npm pkg set type=module) or the script uses .mts
  • “Hello” run succeeds
  • Created from a template (downloaded from the templates page) or assembled with the SDK agent builder
  • Minimal agent produces the output
  • Tools restricted with the tools option or disallowedTools, or allowedTools + permissionMode: "dontAsk" (allowedTools alone only auto-approves)
  • Permission mode is least permissive (dontAsk for unattended runs, not acceptEdits)
  • Runs in a sandbox or ephemeral runner with scoped tokens
  • Out-of-scope request is refused or blocked
  • MCP servers / custom tools configured deliberately, and MCP tools allowed (for example mcp__notes__*)
  • Setting sources chosen deliberately: omitted loads user, project, and local settings; settingSources: [] for reproducible CI
  • Structured output validated in code
  • maxTurns, timeout, and cost ceiling set (Claude Agent SDK: abortController and maxBudgetUsd)
  • Startup failures and run failures handled separately, with distinct exit codes
  • Cursor SDK: any run status other than finished exits non-zero
  • Retries only when the error is retryable, with backoff
  • Cursor SDK: resources disposed (await using in TypeScript, with in Python)
  • Golden task suite passes and runs in CI
  • Each failure mode forced and handled
  • Trigger wired (CI / cron / webhook / cloud)
  • Logs include prompt version, model, run ID, turns, cost, and outcome
  • Owner, monitoring, and failure alert in place
  • At least one hard guardrail on anything that changes state outside the repo
  • Human checkpoint before irreversible actions
  • Prompt-injection risk considered for any untrusted input
  • Static checks on agent files pass
  • Versioned, with a changelog entry