Free subagent generator · Runs in your browser

Generate a Claude Code subagent in 60 seconds

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.

Tools
🤖

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)

Anatomy

What makes a valid subagent file

A subagent is one markdown file: YAML frontmatter that controls routing and permissions, then the system prompt the subagent runs with.

🔑

name

Unique kebab-case identifier — it becomes how you invoke it (use the code-reviewer subagent) and the filename.

🎯

description

How Claude decides to delegate. Lead with the role, then the trigger: phrases like Use PROACTIVELY after code changes measurably increase automatic invocation.

🧰

tools

Optional allowlist. Omit to inherit everything (including MCP tools); list the minimum set for safety and predictability.

🧠

model + prompt

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.

Design tips

Subagents that actually get used

One job per agent

A 'code-reviewer' outperforms a 'code-helper'. Narrow scope means a sharper prompt, fewer tools, and more reliable automatic delegation.

Write the trigger into the description

Claude matches tasks against descriptions. 'Use PROACTIVELY when tests fail' fires; 'helps with testing' doesn't.

Assume zero context

Subagents don't see your conversation. The prompt must say how to gather context itself — which files to read, which commands to run first.

Version them with the repo

Keep project subagents in .claude/agents/ and commit them. Your whole team gets the same specialists, and improvements ship like code.

FAQ

Subagent questions

How do I use a subagent once it's saved?+
Claude Code delegates automatically when a task matches the description, or you can invoke it explicitly: 'use the code-reviewer subagent to check my changes'. Run /agents to see everything loaded.
Project vs personal subagents?+
Project subagents (.claude/agents/ in the repo) are shared with your team and win on name conflicts. Personal ones (~/.claude/agents/) follow you across projects.
Why does my subagent never trigger automatically?+
Almost always the description: it describes what the agent is instead of when to use it. Rewrite it trigger-first ('Use PROACTIVELY after…', 'MUST BE USED when…') and it starts firing.
Do subagents share my conversation context?+
No — each invocation starts with a clean context window containing only the subagent's system prompt and the task Claude hands it. That isolation is the point: research and noisy tool output stay out of your main thread.
Can a subagent use MCP tools?+
Yes. If you omit the tools field it inherits all tools including MCP servers'. To scope it, list the specific MCP tool names alongside built-ins.
Go further

Want 89 subagents already engineered?

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.

🛠️
Most popular

Engineering Kit

Battle-tested Claude skills & workflows for builders.

  • 58 agents · 61 skills · 159 commands
  • Security, testing & code-review skills
  • Every skill formatted to spec
  • Lifetime updates
Get the Engineering Kit
📣
For founders

Marketing Kit

Turn Claude into your growth team.

  • 31 agents · 42 skills · 32 commands
  • Content, SEO & email-sequence skills
  • Landing-page & funnel templates
  • Lifetime updates
Get the Marketing Kit

Or grab all 89 agents, 103 skills & 181 commands in the Complete Bundle →