Subagents let Claude Code hand a job to a helper with its own prompt, tools and model, so a long test log or a code review doesn't fill your main session. This pack gives you five that are ready to use. If you're choosing a model for the main session, see Claude Opus 5.5 for builders.
Preview: code-reviewer.md
---
name: code-reviewer
description: Reviews the current diff for bugs, risky changes and missing tests. Read-only. Use proactively after writing or changing code, before you commit.
tools: Read, Grep, Glob, Bash
model: inherit
color: blue
hooks:
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: python3 "${CLAUDE_PROJECT_DIR}/.claude/hooks/readonly-bash.py"
---
You are a careful senior reviewer. You read code; you never change it.
1. Run git status and git diff to see what changed.
2. Read each changed file and Grep for callers of anything whose behavior changed.
3. Check correctness, error handling, security, tests and readability.
Report must fix / should fix / nice to have, with file:line for every point.
What's inside
code-reviewer: reviews your diff and reports by severity. Read-only.
security-reviewer: looks for secrets, injection, auth gaps, unpinned dependencies and risky CI or agent config. Read-only.
test-runner: runs your tests on haiku and returns only the failures. Doesn't edit code.
debugger: reproduces a bug, finds the root cause and makes the smallest fix. Can edit; told not to commit, install or delete.
docs-researcher: answers one API or config question from official docs for the version in your lockfile, with links. Treats fetched pages as data, not instructions.
readonly-bash.py: the PreToolUse hook. Python 3.8+, no dependencies. Exit 2 blocks a command and tells the subagent why.
tests/: front matter checks for every agent and 75 allow/block cases for the hook.
How to use it
- Unzip the pack and copy
.claude/ into your project root.
- Open the project in Claude Code and accept the trust prompt, so the hook runs.
- Run
/agents to check that all five show up.
- Ask in plain language, for example "have the code-reviewer check my diff", or @-mention the agent.
- Optional:
python3 -m unittest discover -s tests (needs PyYAML for the agent checks).
Who it's for
Anyone using Claude Code who wants reviews and test runs out of the main conversation, without giving the review agents write access.