forked from bchanot/claude
fix(model-routing): ronde edge fixes — feater applier carve-out, /refactor→sonnet dispatch, /analyze gate, audit-pin guards (F1-F5)
This commit is contained in:
@@ -5,6 +5,10 @@ argument-hint: <file/area to analyze — OR paste error/stack trace for DEBUG mo
|
||||
allowed-tools: Read, Grep, Glob, Bash
|
||||
---
|
||||
|
||||
MODEL GATE (blocking): run `$HOME/.claude/lib/model-gate.md` BEFORE anything
|
||||
below. Verdict `small` → STOP — print the gate's remedy, end the turn, run
|
||||
no analysis. Deep factual analysis is reflection; it needs the big model.
|
||||
|
||||
Load and follow strictly:
|
||||
- $HOME/.claude/agents/analyzer.md
|
||||
|
||||
|
||||
@@ -2,11 +2,19 @@
|
||||
name: refactor
|
||||
description: 'Improve code quality without changing behavior — strict norm enforcement, targeted scope (file/module). Full-codebase audit+cleanup → /code-clean. Triggers: "refactor", "clean up code", "normaliser".'
|
||||
argument-hint: <file, function, or module to refactor>
|
||||
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
|
||||
allowed-tools: Read, Write, Edit, Grep, Glob, Bash, Agent
|
||||
---
|
||||
|
||||
Load and follow strictly: `$HOME/.claude/agents/refactorer.md`.
|
||||
Dispatch the refactorer executor — behavior-preserving norm application is
|
||||
closed execution, so it runs pinned on **sonnet** (not the big session
|
||||
model). The scope you name is the only reflection; the agent applies norms.
|
||||
|
||||
If unreachable, emit `Refactorer agent missing.` and STOP. Never improvise — silent behavior change is unsafe.
|
||||
```
|
||||
Agent(subagent_type="refactorer")
|
||||
prompt: "Refactor to strict project norms, preserving external behavior
|
||||
exactly (zero behavioral regression, existing tests must pass). Target:
|
||||
$ARGUMENTS"
|
||||
```
|
||||
|
||||
$ARGUMENTS
|
||||
If the refactorer agent is unavailable, emit `Refactorer agent missing.` and
|
||||
STOP — never improvise, silent behavior change is unsafe.
|
||||
|
||||
Reference in New Issue
Block a user