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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>",
"operation": "<operation>"
},
"name": "atlas_codebase_surgeon"
}
}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 |