What problem does it solve?
GateGuard prevents AI agents from making risky or incorrect code edits by blocking changes until the agent understands the callers, public interface, and user intent.
Core Features & Use Cases
- Pre-edit investigation gate: Blocks edits to a file until importers/callers are identified and the current public interface is read.
- Change intent verification: Requires the agent to state exactly what is changing and why, tied back to the user’s instruction.
- Edit-type-specific safeguards: Enforces extra confirmation for new files, similar-purpose name conflicts, and destructive operations rollback awareness.
- Data-safety checks: Encourages redacted/synthetic examples and validates error-handling against real data shapes to reduce accidental leakage or contract violations.
Quick Start
Enable GateGuard for your session and attempt an edit; the hook will deny the change until you investigate the file’s callers and interface, then automatically allow the edit after that investigation is recorded.