graph TD
A[用户输入任务] --> B[主 Agent 解析意图]
B --> C{"匹配 Subagent?"}
C -->|"命中"| D[加载 Agent 定义<br/>YAML 与系统提示]
C -->|"未命中"| E[主 Agent 直接处理]
D --> F[注入最小工具集]
F --> G[子代理独立上下文执行]
G --> H[回传结果摘要]
H --> I[主 Agent 汇总输出]
E --> I
The awesome collection of 161+ Claude Code subagents across 10 categories.
Awesome Claude Code Subagents
This repository serves as the definitive collection of Claude Code subagents, specialized AI assistants designed for specific development tasks.
A note on contributions: We don’t accept PRs whose primary purpose is to promote a product, company, or personal project. Subagents must be genuinely useful to Claude Code users and stay vendor-neutral in their content. If you’d like to get your project in front of this community, you can sponsor the repo instead — that’s the supported way to surface your work here.
Sponsors
Crawlbase is web data infrastructure trusted by 70,000+ developers. Its Crawling API, MCP server, and integrations give AI agents live access to any webpage — with JavaScript rendering, proxy rotation, and anti-bot protection.
SerpApi is a Web Search API for your AI apps. Available in Markdown and JSON for any integration.
Installation
As Claude Code Plugin (Recommended)
claude plugin marketplace add VoltAgent/awesome-claude-code-subagents
claude plugin install <plugin-name>
Examples:
claude plugin install voltagent-lang # Language specialists
claude plugin install voltagent-infra # Infrastructure & DevOps
Subagents are specialized AI assistants that enhance Claude Code’s capabilities by providing task-specific expertise. They act as dedicated helpers that Claude Code can call upon when encountering particular types of work.
What Makes Subagents Special?
Independent Context Windows
Every subagent operates within its own isolated context space, preventing cross-contamination between different tasks and maintaining clarity in the primary conversation thread.
Domain-Specific Intelligence
Subagents come equipped with carefully crafted instructions tailored to their area of expertise, resulting in superior performance on specialized tasks.
Shared Across Projects
After creating a subagent, you can utilize it throughout various projects and distribute it among team members to ensure consistent development practices.
Granular Tool Permissions
You can configure each subagent with specific tool access rights, enabling fine-grained control over which capabilities are available for different task types.
Core Advantages
Memory Efficiency: Isolated contexts prevent the main conversation from becoming cluttered with task-specific details
Enhanced Accuracy: Specialized prompts and configurations lead to better results in specific domains
Workflow Consistency: Team-wide subagent sharing ensures uniform approaches to common tasks
Security Control: Tool access can be restricted based on subagent type and purpose
Getting Started with Subagents
1. Access the Subagent Manager
/agents
2. Create Your Subagent
Choose between project-specific or global subagents
Let Claude generate an initial version, then refine it to your needs
Provide detailed descriptions of the subagent’s purpose and activation triggers
Configure tool access (leave empty to inherit all available tools)
Customize the system prompt using the built-in editor (press e)
3. Deploy and Utilize
Your subagent becomes immediately available. Claude Code will automatically engage it when suitable, or you can explicitly request its help:
> Have the code-reviewer subagent analyze my latest commits
Subagent Storage Locations
Type
Path
Availability
Precedence
Project Subagents
.claude/agents/
Current project only
Higher
Global Subagents
~/.claude/agents/
All projects
Lower
Note: When naming conflicts occur, project-specific subagents override global ones.
📖 Subagent Structure
Each subagent follows a standardized template:
---
name: subagent-name
description: When this agent should be invoked
tools: Read, Write, Edit, Bash, Glob, Grep
model: sonnet
---
You are a [role description and expertise areas]...
[Agent-specific checklists, patterns, and guidelines]...
## Communication Protocol
Inter-agent communication specifications...
## Development Workflow
Structured implementation phases...
Tool Assignment Philosophy
Smart Model Routing
Each subagent includes a model field that automatically routes it to the right Claude model — balancing quality and cost:
Model
When It’s Used
Examples
opus
Deep reasoning — architecture reviews, security audits, financial logic
You can override any agent’s model by editing the model field in its frontmatter. Set model: inherit to use whatever model your main conversation is using.
Tool Assignment Philosophy
Each subagent’s tools field specifies Claude Code built-in tools, optimized for their role:
Claude Code skill for browsing and fetching subagents from this catalog.
Command
Description
/subagent-catalog:search <query>
Find agents by name, description, or category
/subagent-catalog:fetch <name>
Get full agent definition
/subagent-catalog:list
Browse all categories
/subagent-catalog:invalidate
Refresh cache
Installation:
cp -r tools/subagent-catalog ~/.claude/commands/
AI Design + Build Ecosystem Tools
You ship products with AI, but every launch still dies quietly because nobody posts about it. EveryFeed plugs your AI assistant into a social workspace that drafts, schedules, and publishes across 35+ channels — no agency, no marketing hire.
🤝 Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
This repository is a curated collection of subagent definitions contributed by both the maintainers and the community. All subagents are provided “as is” without warranty. We do not audit or guarantee the security or correctness of any subagent. Review before use, the maintainers accept no liability for any issues arising from their use.
If you find an issue with a listed subagent or want your contribution removed, please open an issue and we’ll address it promptly.
评论