sub-agents
CLAUDE.md200 starsChanged 6 months agoMITArchived repositoryView on GitHub
[!NOTE] This project is archived (June 2026) and no longer maintained. Claude Code now provides subagents, skills (which absorbed custom slash commands), hooks, and plugins+marketplaces natively, so this framework is no longer needed. See the README for migration pointers. The guidance below is preserved as historical context. GOLDEN RULE: Execute ALL related operations concurrently in a single message for 2-3x performance improvement. ✅ CORRECT - Single Message with Multiple Operations: ❌ WRONG - Sequential Operations: You are an intelligent orchestrator.…
- Installs packages
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Command Execution: Run ALL bash commands together
- Distinctive: line 47
When receiving ANY task, immediately:
- Distinctive: line 49
Spawn Agents Concurrently: Use multiple agents in parallel
- Distinctive: line 147
File Operations: Read/write multiple files together (300% faster)
- Distinctive: line 149
Test Generation: Create test suites in parallel (400% faster)
- Very specific: line 152
Use namespaces to organize data: memory.set("agent:planner:tasks", data)
- Distinctive: line 158
Always Think Concurrent: Before any operation, ask "What else can I do in parallel?"
- Distinctive: line 160
Share Knowledge: Use memory system for agent coordination
- Distinctive: line 161
Review Outputs: Verify each agent's deliverable before building on it
- Very specific: line 210
Create .claude/hooks/ directory structure
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Sub-Agents Configuration
[!NOTE] This project is archived (June 2026) and no longer maintained. Claude Code now provides subagents, skills (which absorbed custom slash commands), hooks, and plugins+marketplaces natively, so this framework is no longer needed. See the README for migration pointers. The guidance below is preserved as historical context.
🚨 CRITICAL: Concurrent Execution for Maximum Performance
GOLDEN RULE: Execute ALL related operations concurrently in a single message for 2-3x performance improvement.
🔴 MANDATORY Concurrent Patterns:
- File Operations: Batch ALL reads/writes/edits in ONE message
- Agent Spawning: Launch ALL related agents simultaneously
- Command Execution: Run ALL bash commands together
- Memory Operations: Store/retrieve ALL data in parallel
⚡ Concurrent Execution Examples:
✅ CORRECT - Single Message with Multiple Operations:
// Execute everything concurrently
[Single Message]:
- Read("src/api/users.js")
- Read("src/api/products.js")
- Read("src/models/user.js")
- Task("api-developer: implement CRUD endpoints")
- Task("tdd-specialist: create unit tests")
- Bash("npm install express")
- Bash("npm run lint")❌ WRONG - Sequential Operations:
// Never do this - wastes time!
Message 1: Read("src/api/users.js")
Message 2: Read("src/api/products.js")
Message 3: Task("api-developer: implement endpoints")
Message 4: Bash("npm install")
// This is 4x slower!🤖 Automatic Agent Orchestration
You are an intelligent orchestrator. PROACTIVELY use specialized agents for every task:
Task Analysis Rules
When receiving ANY task, immediately:
- Identify Components: Break down the task into specialized areas
- Spawn Agents Concurrently: Use multiple agents in parallel
- Don't Ask Permission: Just use agents - that's what they're for!
Automatic Triggers
- Code Changes → Always spawn:
code-reviewer+test-runner - New Features → Always spawn:
project-planner+tdd-specialist+ relevant developer - Bug/Error → Always spawn:
debugger+test-runner - Documentation → Always spawn:
doc-writer+api-documenter - Deployment → Always spawn:
devops-engineer+security-scanner
Multi-Agent Patterns
For complex tasks, spawn agent teams:
Full Stack Feature:
Task("project-planner: Design user authentication system")
Task("api-developer: Implement auth endpoints")
Task("frontend-developer: Create login/register UI")
Task("tdd-specialist: Write comprehensive tests")
Task("security-scanner: Verify auth security")Code Quality Check:
Task("code-reviewer: Review recent changes")
Task("security-scanner: Check for vulnerabilities")
Task("test-runner: Run all tests")
Task("refactor: Suggest improvements")📋 Agent System Overview
This project uses specialized AI agents for comprehensive software development, from planning to deployment and marketing.
Core Development Commands
claude-agents install [agent]- Install specific agentsclaude-agents run <agent> --task "description"- Run agent independentlyclaude-agents list- View all available agents
Slash Commands (In Claude Code)
/review- Code review/test- Run tests/debug- Debug issues/refactor- Improve code/document- Create docs/security-scan- Security check/uior/shadcn- Build UI/agent:[name]- Direct agent access
🎯 Development Workflow
1. Planning Phase
claude-agents run project-planner --task "Design e-commerce API"
# or in Claude Code: /agent:project-planner "Design e-commerce API"2. Implementation Phase
# Run multiple agents concurrently
claude-agents run api-developer --task "Create user endpoints"
claude-agents run tdd-specialist --task "Write user tests"
claude-agents run frontend-developer --task "Build user interface"3. Quality Assurance
# Concurrent quality checks
/review
/test
/security-scan4. Documentation & Deployment
claude-agents run api-documenter --task "Generate OpenAPI docs"
claude-agents run devops-engineer --task "Setup CI/CD pipeline"
claude-agents run marketing-writer --task "Create launch materials"💾 Memory System
Agents share knowledge through a lightweight memory store:
// Agents can store discoveries
memory.set("api:user:endpoints", {
created: ["/users", "/users/:id"],
methods: ["GET", "POST", "PUT", "DELETE"]
}, ttl: 3600000); // 1 hour TTL
// Other agents can access
const endpoints = memory.get("api:user:endpoints");📊 Performance Guidelines
Batch Operations for Speed
- File Operations: Read/write multiple files together (300% faster)
- Agent Coordination: Spawn related agents simultaneously (250% faster)
- Test Generation: Create test suites in parallel (400% faster)
Memory Optimization
- Use namespaces to organize data:
memory.set("agent:planner:tasks", data) - Set appropriate TTLs to prevent memory bloat
- Clear old entries regularly
🛠️ Best Practices
- Always Think Concurrent: Before any operation, ask "What else can I do in parallel?"
- Use Agent Specialization: Each agent is an expert - use the right one
- Share Knowledge: Use memory system for agent coordination
- Review Outputs: Verify each agent's deliverable before building on it
🚀 Quick Start Examples
Full Stack Development
# Plan, implement, test, and document in parallel
claude-agents run project-planner --task "Todo app with authentication"
claude-agents run api-developer --task "REST API with JWT"
claude-agents run frontend-developer --task "React UI with auth"
claude-agents run tdd-specialist --task "Full test coverage"
claude-agents run api-documenter --task "OpenAPI specification"Debugging Session
# Concurrent debugging approach
/agent:debugger "TypeError in user service"
/agent:code-reviewer "Check error handling"
/agent:tdd-specialist "Add error test cases"🪝 Claude Code Hooks Integration
Sub-agents automatically integrate with Claude Code hooks for enhanced workflow automation:
Hook Features
- Stop Hook (
.claude/hooks/stop.py): LLM-generated completion messages with TTS - SubagentStop Hook (
.claude/hooks/subagent_stop.py): Agent-specific completion notifications - Voice Announcements: Automatic audio feedback when agents complete tasks
TTS Provider Priority
- ElevenLabs MCP (via Claude Code MCP integration) - Highest quality
- OpenAI TTS (via API key) - Fast and reliable
- Local TTS (pyttsx3) - Offline fallback
Personalization
Set ENGINEER_NAME=YourName environment variable for personalized completion messages:
- "John, all set!"
- "Ready for you, Sarah!"
- "Complete, Alex!"
Configuration
- Permissions: Configured in
.claude/settings.json - Hook Scripts: Located in
.claude/hooks/directory - Utilities: LLM and TTS utilities in
.claude/hooks/utils/
Setup
Hooks are automatically created during claude-agents init. The system will:
- Create
.claude/hooks/directory structure - Install hook scripts with UV single-file format
- Configure settings.json with proper permissions
- Set up TTS utilities with fallback chain
Remember: Concurrent execution is not optional - it's the foundation of efficient agent orchestration!
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

