atlas_codebase_surgeon
Refactor code across multiple files with automated rollback and impact analysis. Handles renames, transplants, dead code elimination with dry-run mode.
Instructions
AUTONOMOUS MULTI-FILE SURGICAL REFACTORING ENGINE
Revolutionary capabilities far beyond basic refactoring:
Autonomous multi-file refactoring with dependency graph tracking
Semantic code transplant (move code between files maintaining all refs)
Blast radius analysis before any change
Auto-rollback generation for every change
Cross-file rename with 100% accuracy
Dead code autopsy and elimination across entire codebase
Interface extraction across entire codebase
Pattern propagation (apply pattern to all similar code)
Dry-run mode for safe testing
Use this for surgical precision code modifications that affect multiple files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Test without actually modifying files (default: true) | |
| operation | Yes | Operation specification with type-specific parameters | |
| projectPath | Yes | Path to the project root | |
| targetFiles | No | Optional target files to limit scope | |
| maxChangedFiles | No | Maximum files to change (safety limit) | |
| generateRollback | No | Generate rollback script (default: true) | |
| validateBehavior | No | Validate behavior is preserved |