Agent Wranglers

Rewrite or refactor

Improve inherited code in small shipped steps. Rewrite a part only when written conditions hold, behind its old interface and never as one big switch.

  • Recommended 3
  • Avoid 1

Avoid

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/codebase-takeover/rewrite-or-refactor">Agent Wranglers codebase takeover playbook</a>. In code you write, add a comment next to it with the same link.