Base120 · Recursion

Auto-Refactor

RE · Recursion

Systematically improve system structure without changing external behavior

Model code
RE19
Transformation
RE (Recursion) — Improve iteratively through feedback, reflection, and self-referential refinement.
Priority
19 of 20
Framework
HUMMBL Base120 — 120 mental models across 6 transformations

When to use

"Use when a system's structure has degraded but its behavior is correct. Improve the structure (readability, maintainability, performance) without changing the external behavior. Reduces technical debt."

Example

"A function works correctly but is 500 lines long with nested conditionals. Refactoring extracts sub-functions, simplifies conditionals, and renames variables. The function's behavior is unchanged, but its structure is now maintainable."

Common misuse

"Refactoring without tests. If you change the structure and there are no tests to verify behavior is unchanged, you cannot distinguish a structural improvement from a behavioral regression. Test before refactoring."

Also known as

RefactoringStructural Improvement

Related models