Describe the role, pick tools and model, and get a valid .claude/agents/*.md file — correct frontmatter, scoped permissions, and a system prompt structured the way good subagents actually work.
Fill in a name and description (or load a preset) and your subagent file appears here.
100% client-side · save to .claude/agents/ (project) or ~/.claude/agents/ (personal)
A subagent is one markdown file: YAML frontmatter that controls routing and permissions, then the system prompt the subagent runs with.
Unique kebab-case identifier — it becomes how you invoke it (use the code-reviewer subagent) and the filename.
How Claude decides to delegate. Lead with the role, then the trigger: phrases like Use PROACTIVELY after code changes measurably increase automatic invocation.
Optional allowlist. Omit to inherit everything (including MCP tools); list the minimum set for safety and predictability.
Optional model (sonnet/opus/haiku/inherit) plus the body — the subagent's entire system prompt. It starts with zero context from your conversation, so the prompt must stand alone.
A 'code-reviewer' outperforms a 'code-helper'. Narrow scope means a sharper prompt, fewer tools, and more reliable automatic delegation.
Claude matches tasks against descriptions. 'Use PROACTIVELY when tests fail' fires; 'helps with testing' doesn't.
Subagents don't see your conversation. The prompt must say how to gather context itself — which files to read, which commands to run first.
Keep project subagents in .claude/agents/ and commit them. Your whole team gets the same specialists, and improvements ship like code.
/agents to see everything loaded.This generator gives you a great starting file. The ClaudeThings kits give you the full bench — 89 production-grade agents plus the skills and commands they pair with.
Battle-tested Claude skills & workflows for builders.
Turn Claude into your growth team.
Or grab all 89 agents, 103 skills & 181 commands in the Complete Bundle →