Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

special-agents

Project-level .claude/ setup for a plan/implement/review pipeline:

  1. /implement enters plan mode in a worktree.
  2. On ExitPlanMode, the plan is gated through:
    • Self-review loop (up to 7 passes; ends when the plan is unchanged between iterations).
    • Clarity check via the plan-clarity-reviewer sub-agent, producing an ambiguity score (<!-- ambiguity: N -->).
  3. Implementation is routed by score:
    • 1–6 → junior-plan-implementer sub-agent on Sonnet.
    • 7–10 → lead (current session) implements directly on Opus.
  4. /review runs the plan-implementation-reviewer sub-agent and pipes findings back.

Every prompt is prefixed with five behavioral rules (ultrathink, simplicity, no comments, conciseness, no assumptions). Sub-agents on light models get a trimmed variant.

Install in a project

Drop the .claude/ directory at the root of the consuming project (or git clone this repo into the project as .claude/):

git clone https://github.com/semihkayan/claude-special-agents.git .claude

Restart Claude Code so the hooks register.

Layout

.claude/
  settings.json                 hooks wiring + recommended env
  agents/
    junior-plan-implementer.agent.md
    plan-clarity-reviewer.agent.md
    plan-implementation-reviewer.agent.md
  commands/
    implement.md
    review.md
  hooks/special-agents/
    _lib.py
    inject-base-rules.py            UserPromptSubmit
    inject-rules-into-subagent.py   PreToolUse[Agent]
    plan-review-gate.py             PreToolUse[ExitPlanMode]
    implementation-router.py        PostToolUse[ExitPlanMode]
    init-plan-mode.py               PostToolUse[EnterPlanMode]

State

  • Per-session JSON at .claude/hooks/special-agents/state/session-<id>.json, 1-hour TTL, swept on each ExitPlanMode.
  • Fallback plan copies (when the harness doesn't supply planFilePath in the ExitPlanMode tool call) at .claude/hooks/special-agents/plans/session-<id>.md.

Add to the consuming project's .gitignore:

.claude/hooks/*/state/
.claude/hooks/special-agents/plans/
.claude/plans/

About

Claude Code plan/implement/review pipeline

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages