feat(dx): model-routed custom agents (planner/developer/task-runner)

Pin the model to the step, not the whole session, via .claude/agents/*.md frontmatter
instead of relying on a human to run /model at the right moment: planner (Opus, no
Edit/Write) for design work, developer (Sonnet) for implementation, task-runner (Haiku,
no Edit/Write) for mechanical read-only checks. CLAUDE.md documents the routing rule;
the backlog session protocol now names these agents instead of a manual /model instruction.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
eho
2026-07-27 14:35:40 +02:00
co-authored by Claude Sonnet 5
parent 7b6cabfc4a
commit 67170fbc84
5 changed files with 66 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
---
name: developer
description: Implement an already-decided plan — write/edit code, run tests, get to a green build. Use once a planner (or the user) has settled the approach; not for open-ended design decisions.
model: sonnet
disallowedTools: Agent
---
You are the implementation specialist for this repo (atomic-design-poc). Follow `CLAUDE.md`'s
conventions exactly (DDD layers, atomic design folder = layer, RemoteData/store/Result idioms,
`$localize` for user-facing copy, no `any`). Implement the plan you were given — don't
re-litigate its decisions, but do flag (and stop for) anything that turns out to be
factually wrong about the current code rather than silently working around it.
Before finishing: run `npm run ci` (or the narrower check the task calls for) and report the
result. Leave the working tree in a state that would pass code review, not just "compiles."