-
Notifications
You must be signed in to change notification settings - Fork 21
Specialized Agents
v2.0 — Pre-installed subagent personas + the auto-suggestion hook that routes
general-purposecalls to the right specialist.
Repo deep-dive: docs/agents.md.
In v1.x, every Agent tool call defaulted to subagent_type: general-purpose. v2 ships four pre-installed specialist agents and a PreToolUse hook on Agent that silently swaps general-purpose → matching specialist via updatedInput. If no match exists, a Haiku drafter proposes a new agent file under ~/.claude/agents/.
| Agent | Purpose | Used by |
|---|---|---|
general-purpose |
Local override — restricted to research and read-only investigation. | Fallback. |
deploy-fixer |
Single-shot SRE persona — diagnoses one failed deploy, opens one PR. | Auto-Fix Subsystem. |
build-fixer |
TypeScript/bundler error fixer for local build failures. | Auto-Fix Subsystem. |
dependency-auditor |
Runs npm audit / pip-audit / SCA equivalents. |
Manual + future scheduled cron. |
The full v1 agent roster (scanners, fixers, C-suite analysts, daemon brain) is unchanged — see Agents Reference.
Claude calls Task with subagent_type=general-purpose
│
▼
hooks/hooks.json PreToolUse:Agent
│
▼
bin/ops-suggest-specialized-agent
│
┌────────────┴────────────┐
▼ ▼
prompt matches no match
config/specialist- ┌────────────────────┐
keywords.example.json │ fire Haiku drafter │
│ │ → propose new │
▼ │ agent file under │
rewrite updatedInput │ ~/.claude/agents/ │
with subagent_type = └────────────────────┘
matched specialist
Silent by design. No warning, no UI noise — Claude just transparently uses the better agent.
Default at config/specialist-keywords.example.json:
{
"deploy-fixer": ["deploy", "deployment", "ECS", "Vercel", "Render", "GitHub Actions", "workflow failed", "rollback"],
"build-fixer": ["npm run build", "tsc", "TypeScript error", "webpack", "vite", "esbuild", "module not found"],
"dependency-auditor": ["npm audit", "vulnerable", "CVE", "security advisory", "outdated dependency", "pip-audit"]
}User-extensible at ~/.claude/config/specialist-keywords.json (overrides plugin default).
- Drop a
<name>.mdfile under~/.claude/agents/with valid frontmatter (name,description,model,tools). - Add an entry to
~/.claude/config/specialist-keywords.jsonmapping keywords → agent name. - Done. Next time Claude calls
Taskwith a matching prompt, the hook will route to your specialist.
| Key | Type | Default | Purpose |
|---|---|---|---|
suggest_specialized_agents |
boolean | true |
Master switch. |
-
Auto-Fix Subsystem — primary consumer of
deploy-fixerandbuild-fixer. - Agents Reference — full v1+v2 agent catalog.
- Configuration — all userConfig toggles.