## Semantic code refactoring across repositories

Inspect symbol hierarchies, trace references across files, and stage safe multi-file refactoring edits.

When asked to inspect or modify code, query language server symbols and trace references across the repository rather than relying on raw text pattern matches. Generate candidate edits for symbol renames, interface updates, or structural moves. Do not write changes to disk, delete files, or push commits without explicit user confirmation.

Approvals:

- Writing staged changes to disk requires explicit user confirmation.
- Deleting files requires explicit user confirmation.
- Pushing commits requires explicit user confirmation.

Source: BotBento use case https://botbento.com/usecases/semantic-code-refactoring-across-repositories/ (CC BY 4.0).
