AGENTS.md
src/agents/AGENTS.mdAGENTS.md
Quality
66/100
Scores the file, not the repository.Length
1,222 words
20 headings · 8 code blocksRepository
38k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1<!-- Parent: ../AGENTS.md -->2<!-- Generated: 2026-01-28 | Updated: 2026-02-24 -->34# agents5618 specialized AI agent definitions with 3-tier model routing for optimal cost and performance.78## Purpose910This directory defines all agents available in oh-my-claudecode:1112- **18 base agents** with default model assignments13- **Tiered variants** (LOW/MEDIUM/HIGH) for smart routing14- Prompts loaded dynamically from `/agents/*.md` files15- Tools assigned based on agent specialization1617## Key Files1819| File | Description |20|------|-------------|21| `definitions.ts` | **Main registry** - `getAgentDefinitions()`, `omcSystemPrompt` |22| `architect.ts` | Architecture & debugging expert (Opus) |23| `executor.ts` | Focused task implementation (Sonnet) |24| `explore.ts` | Fast codebase search (Haiku) |25| `designer.ts` | UI/UX specialist (Sonnet) |26| `document-specialist.ts` | Documentation & reference lookup (Sonnet) |27| `writer.ts` | Technical documentation (Haiku) |28| `vision.ts` | Visual/image analysis (Sonnet) |29| `critic.ts` | Critical plan review (Opus) |30| `analyst.ts` | Pre-planning analysis (Opus) |31| `planner.ts` | Strategic planning (Opus) |32| `qa-tester.ts` | CLI/service testing with tmux (Sonnet) |33| `scientist.ts` | Data analysis & hypothesis testing (Sonnet) |34| `index.ts` | Exports all agents and utilities |3536## For AI Agents3738### Working In This Directory3940#### Understanding the Agent Registry4142The main registry is in `definitions.ts`:4344```typescript45// Get all 18 agents46const agents = getAgentDefinitions();4748// Each agent has:49{50 name: 'architect',51 description: 'Architecture & Debugging Advisor',52 prompt: '...', // Loaded from /agents/architect.md53 tools: ['Read', 'Glob', 'Grep', 'WebSearch', 'WebFetch'],54 model: 'opus',55 defaultModel: 'opus'56}57```5859#### Agent Selection Guide6061| Task Type | Best Agent | Model | Tools |62|-----------|------------|-------|-------|63| Complex debugging | `architect` | opus | Read, Glob, Grep, WebSearch, WebFetch |64| Quick code lookup | `architect-low` | haiku | Read, Glob, Grep |65| Standard analysis | `architect-medium` | sonnet | Read, Glob, Grep, WebSearch, WebFetch |66| Feature implementation | `executor` | sonnet | Read, Glob, Grep, Edit, Write, Bash, TodoWrite |67| Simple fixes | `executor-low` | haiku | Read, Glob, Grep, Edit, Write, Bash, TodoWrite |68| Complex refactoring | `executor-high` | opus | Read, Glob, Grep, Edit, Write, Bash, TodoWrite |69| Fast file search | `explore` | haiku | Read, Glob, Grep |70| Architectural discovery | `explore-high` | opus | Read, Glob, Grep |71| UI components | `designer` | sonnet | Read, Glob, Grep, Edit, Write, Bash |72| Simple styling | `designer-low` | haiku | Read, Glob, Grep, Edit, Write, Bash |73| Design systems | `designer-high` | opus | Read, Glob, Grep, Edit, Write, Bash |74| API documentation | `document-specialist` | sonnet | Read, Glob, Grep, WebSearch, WebFetch |75| README/docs | `writer` | haiku | Read, Glob, Grep, Edit, Write |76| Image analysis | `vision` | sonnet | Read, Glob, Grep |77| Plan review | `critic` | opus | Read, Glob, Grep |78| Requirements analysis | `analyst` | opus | Read, Glob, Grep, WebSearch |79| Strategic planning | `planner` | opus | Read, Glob, Grep, WebSearch |80| CLI testing | `qa-tester` | sonnet | Bash, Read, Grep, Glob, TodoWrite |81| Data analysis | `scientist` | sonnet | Read, Glob, Grep, Bash, python_repl |82| ML/hypothesis | `scientist-high` | opus | Read, Glob, Grep, Bash, python_repl |83| Security audit | `security-reviewer` | opus | Read, Grep, Glob, Bash |84| Quick security scan | `security-reviewer-low` | haiku | Read, Grep, Glob, Bash |85| Build errors | `debugger` | sonnet | Read, Grep, Glob, Edit, Write, Bash |86| TDD workflow | `test-engineer` | sonnet | Read, Grep, Glob, Edit, Write, Bash |87| Test suggestions | `test-engineer` (model=haiku) | haiku | Read, Grep, Glob, Bash |88| Code review | `code-reviewer` | opus | Read, Grep, Glob, Bash |8990#### Creating a New Agent91921. **Create agent file** (e.g., `new-agent.ts`):93```typescript94import type { AgentConfig } from '../shared/types.js';9596export const newAgent: AgentConfig = {97 name: 'new-agent',98 description: 'What this agent does',99 prompt: '', // Will be loaded from /agents/new-agent.md100 tools: ['Read', 'Glob', 'Grep'],101 model: 'sonnet',102 defaultModel: 'sonnet'103};104```1051062. **Create prompt template** at `/agents/new-agent.md`:107```markdown108---109name: new-agent110description: What this agent does111model: sonnet112tools: [Read, Glob, Grep]113---114115# Agent Instructions116117You are a specialized agent for...118```1191203. **Add to definitions.ts**:121```typescript122import { newAgent } from './new-agent.js';123124export function getAgentDefinitions() {125 return {126 // ... existing agents127 'new-agent': newAgent,128 };129}130```1311324. **Export from index.ts**:133```typescript134export { newAgent } from './new-agent.js';135```136137#### Creating Tiered Variants138139For model routing, create LOW/MEDIUM/HIGH variants in `definitions.ts`:140141```typescript142// Haiku variant for simple tasks143export const newAgentLow: AgentConfig = {144 name: 'new-agent-low',145 description: 'Quick new-agent tasks (Haiku)',146 prompt: loadAgentPrompt('new-agent-low'),147 tools: ['Read', 'Glob', 'Grep'],148 model: 'haiku',149 defaultModel: 'haiku'150};151152// Opus variant for complex tasks153export const newAgentHigh: AgentConfig = {154 name: 'new-agent-high',155 description: 'Complex new-agent tasks (Opus)',156 prompt: loadAgentPrompt('new-agent-high'),157 tools: ['Read', 'Glob', 'Grep', 'WebSearch'],158 model: 'opus',159 defaultModel: 'opus'160};161```162163### Modification Checklist164165#### When Adding a New Agent1661671. Create agent file (`src/agents/new-agent.ts`)1682. Create prompt template (`agents/new-agent.md`)1693. Add to `definitions.ts` (import + registry)1704. Export from `index.ts`1715. Update `docs/REFERENCE.md` (Agents section, count)1726. Update `docs/CLAUDE.md` (Agent Selection Guide)1737. Update root `/AGENTS.md` (Agent Summary if applicable)174175#### When Modifying an Agent1761771. Update agent file (`src/agents/*.ts`) if changing tools/model1782. Update prompt template (`agents/*.md`) if changing behavior1793. Update tiered variants (`-low`, `-medium`, `-high`) if applicable1804. Update `docs/REFERENCE.md` if changing agent description/capabilities1815. Update `docs/CLAUDE.md` (Agent Tool Matrix) if changing tool assignments182183#### When Removing an Agent1841851. Remove agent file from `src/agents/`1862. Remove prompt template from `agents/`1873. Remove from `definitions.ts` and `index.ts`1884. Update agent counts in all documentation1895. Check for skill/hook references to the removed agent190191### Testing Requirements192193Agents are tested via integration tests:194195```bash196npm test -- --grep "agent"197```198199### Common Patterns200201**Prompt loading:**202```typescript203function loadAgentPrompt(agentName: string): string {204 const agentPath = join(getPackageDir(), 'agents', `${agentName}.md`);205 const content = readFileSync(agentPath, 'utf-8');206 // Strip YAML frontmatter207 const match = content.match(/^---[\s\S]*?---\s*([\s\S]*)$/);208 return match ? match[1].trim() : content.trim();209}210```211212**Tool assignment patterns:**213- Read-only agents: `['Read', 'Glob', 'Grep']`214- Analysis agents: Add `['WebSearch', 'WebFetch']`215- Execution agents: Add `['Edit', 'Write', 'Bash', 'TodoWrite']`216- Data agents: Add `['python_repl']`217218## Dependencies219220### Internal221- Prompts from `/agents/*.md`222- Types from `../shared/types.ts`223224### External225None - pure TypeScript definitions.226227## Agent Categories228229| Category | Agents | Purpose |230|----------|--------|---------|231| Analysis | architect, architect-medium, architect-low | Debugging, architecture |232| Execution | executor, executor-low, executor-high | Code implementation |233| Search | explore, explore-high | Codebase exploration |234| Research | document-specialist | External documentation |235| Frontend | designer, designer-low, designer-high | UI/UX work |236| Documentation | writer | Technical writing |237| Visual | vision | Image/screenshot analysis |238| Planning | planner, analyst, critic | Strategic planning |239| Testing | qa-tester | Interactive testing |240| Security | security-reviewer, security-reviewer-low | Security audits |241| TDD | test-engineer | Test-driven development |242| Review | code-reviewer | Code quality + style + performance |243| Data | scientist, scientist-high | Data analysis |244245<!-- MANUAL:246- Legacy alias wording was removed from active prompts to keep agent naming consistent with current conventions.247- Consensus planning prompts (planner/architect/critic) now enforce RALPLAN-DR structured deliberation, including `--deliberate` high-risk checks.248-->249
Also in Yeachan-Heo/oh-my-claudecode
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Yeachan-Heo/oh-my-claudecode.github/CLAUDE.md · 38k | CLAUDE.md | setupbuildstylegit+2 | 79/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodeAGENTS.md · 38k | AGENTS.md | setuplint-formatstyletypes+4 | 45/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodeskills/AGENTS.md · 38k | AGENTS.md | teststylearchdependencies+1 | 66/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/AGENTS.md · 38k | AGENTS.md | buildteststylearch+2 | 77/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/features/AGENTS.md · 38k | AGENTS.md | teststylearchdependencies | 74/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/hooks/AGENTS.md · 38k | AGENTS.md | setupteststylearch+2 | 74/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/tools/AGENTS.md · 38k | AGENTS.md | setupteststylearch+1 | 86/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/tools/diagnostics/AGENTS.md · 38k | AGENTS.md | teststylearchtypes+2 | 77/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodesrc/tools/lsp/AGENTS.md · 38k | AGENTS.md | setupteststylearch+2 | 74/100 | 3 days ago | |
| Yeachan-Heo/oh-my-claudecodeCLAUDE.md · 38k | CLAUDE.md | setupbuildstylegit+1 | 65/100 | 3 days ago |
Diff against .github/CLAUDE.md Diff against AGENTS.md Diff against skills/AGENTS.md Diff against src/AGENTS.md Diff against src/features/AGENTS.md Diff against src/hooks/AGENTS.md Diff against src/tools/AGENTS.md Diff against src/tools/diagnostics/AGENTS.md Diff against src/tools/lsp/AGENTS.md Diff against CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago |
