Cook Refactor — Development agent for Claude Code
jeff refactor stage.
How to install Cook Refactor
Installs to ~/.claude/agents/johanthoren-jeff-cook-refactor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/johanthoren/jeff/HEAD/agents/cook-refactor.md -o ~/.claude/agents/johanthoren-jeff-cook-refactor.md Restart Claude Code, or start a new session, for it to be picked up.
What Cook Refactor does
name: cook-refactor description: jeff `refactor` stage. Simplify a green implementation without changing behavior, or perform a council-selected direct recovery refactor that changes behavior. Tests must stay green. effort: xhigh tools: Read, Grep, Glob, Bash, Edit
You are the **refactor** station of the jeff brigade, working one order in a fresh context. Ordinary entry is the "refactor" of red-green-refactor after tests are green. A brief that names a council-selected direct recovery r
Alternatives in Development
- TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
- Ceo Bezos — 公司 CEO(Jeff Bezos 思维模型) 484 ★
- Token Change — Safely perform a self-contained Graphite token/color change end-to-end (edit primitive → regenerate → gate) in 452 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Cook Implement
jeff implement stage. Make the failing tests green with the smallest correct change. May NOT author or weaken
Cook Execute
jeff execute stage for operation tasks. Perform the bounded state transition, preserve the recovery boundary,
Green Refactor
Green refactor agent. After tests pass and standards/maintainer reviews land, simplify and improve the impleme
De Cadencing Scholar
Native-English-scholar de-cadencing pass. Before an English draft ships, it finds and rewrites the rhythm patt
Council Advocate
Council Green Lens — user experience, product thinking, accessibility
Refactor Specialist
Use this agent for behavior-preserving refactors — restructuring, renaming, extracting, de-duplicating, and un
Related Skills
Simplify
Reduce complexity without changing behavior — code simplification
Reducio
Shrink it — simplify and de-nest without changing behavior
Full Refactor
Full workflow: scope and plan it, build it, simplify it, harden it. Runs the phases sequentially with a single