What problem does it solve?
Confirming the correct Git repository and branch before applying multi-file edits prevents wasting time and accidentally modifying the wrong codebase, especially when working across multiple local paths and sites.
Core Features & Use Cases
- Repository Context Validation: Checks origin URL, current branch, working tree status, and upstream divergence before proceeding.
- Edit Safety Guardrails: Triggers for risky cases like batch edits across 3+ files or any changes under the specified path groups (~/Repo/webs/ and ~/Repo/mykcs/).
- Operator Confirmation Workflow: Uses a clear confirmation template so the user can approve or provide an alternative target before the edits run.
Quick Start
Call confirm-edit before you start multi-file changes by telling the AI to confirm the target repository context and wait for your Enter confirmation.