Skip to content

Agent templates

Download: All agent templates (.zip). Each file below also has its own page with a copy button.

Template Type Works in
code-reviewer.md Subagent: read-only reviewer Claude Code + Cursor (put it in .claude/agents/)
codebase-researcher.md Subagent: read-only codebase researcher Claude Code + Cursor
cursor-verifier.md Subagent: sceptical verifier using Cursor fields Cursor (Claude Code ignores is_background)
claude-sdk-agent.ts SDK agent: CI PR summary Claude Agent SDK
cursor-sdk-agent.ts SDK agent: CI PR summary Cursor SDK
agent-eval-template.md Eval sheet Any

The subagent file name matches its name, so @agent-codebase-researcher (Claude Code) and /codebase-researcher (Cursor) both work. Keep them matched if you rename one.

To fill a first subagent without starting from TODOs, use the Subagent builder. It writes a .md file you can copy or download; save it so the file name matches the name field.

The subagent templates include both tools: (Claude Code) and readonly: (Cursor). Each host ignores the field it doesn’t support. They restrict different things, so least privilege isn’t equally strong in both:

  • In Cursor, readonly: true blocks file edits and state-changing shell commands.
  • In Claude Code, tools: limits which tools the agent has. codebase-researcher.md has no Bash, so it can’t change anything. code-reviewer.md needs Bash for git diff, and only its prompt stops it running other commands. For a hard limit, add a PreToolUse hook or a permission rule that allows only read-only git commands.

See the platform matrix.

Both SDK templates use top-level await, so run them in an ES module project (npm pkg set type=module) or rename them to .mts. In CI, fetch the base branch (git fetch origin main) before running, or git diff origin/main...HEAD has nothing to compare against. Each template documents its exit codes in its header.

To fill a first SDK agent without starting from TODOs, use the SDK agent builder. It writes one or two .ts files; keep API keys in the environment.