code-simplifier¶
Proposes behavior-preserving simplifications of the diff — speculative generality, needless indirection, dead weight, duplication, over-defensive code — as ready-to-apply patches.
Generated for your project
This page documents the agent's contract, which never changes.
/ticket:init regenerates its role, focus and knowledge regions for
your stack — the idioms and library features in your locked versions that
replace hand-rolled code, each with its source. It is always on; project
advisors (review.advisors) can join it every round. See Generated agents.
| Triggered by | /ticket:pick step 5.5, every loop round, alongside code-reviewer and code-challenger — advisory, always on |
| Also usable | Standalone, on any diff |
| Tools | Read, Grep, Glob, Bash |
Flow¶
flowchart LR
In1["Ticket body"] --> A["code-simplifier"]
In2["Diff base<br/>(scoped to touched code only)"] --> A
A --> Out["N proposals, ordered by lines removed —<br/>each with verbatim diff + behavior-risk rating —<br/>or 'Clean'"]
Out --> Safe["'Safe set' line naming<br/>zero-risk proposals"]
Safe --> Eval["Step 5.7 evaluate —<br/>sound proposals fold into<br/>next round's work-list"]
Output shape¶
- a
**Result:**line —<N> proposal(s)orClean — nothing worth touching— under## Simplification pass: <ticket-id>. - Each proposal: a verbatim diff, ordered by lines-removed (biggest win first), tagged with a behavior-risk rating.
- A
Safe setline calling out the zero-risk subset — the ones the session can fold in without a second look.
Gates directly? No — advisory. Sound proposals fold into the next round's work-list by the session's own evaluation; nothing here applies itself.
See also¶
code-reviewer— the blocking checker this agent runs alongside every round