Guides
When coding agents go off track.
Practical ways to diagnose unwanted edits, broken tests and repeated mistakes — using the tools you already have.
Claude Code / Codex / CursorLatest guides
A closer look at the failure, with examples you can reproduce.
Stop AI coding agents from changing unrelated files
A small fix should not become an unreviewed refactor. Define edit scope, inspect the diff and check the permissions that can enforce the boundary.
AI tests pass, but the feature is still broken
Passing AI-written tests can miss the real defect. Inspect mocks, protect the acceptance criteria and verify the user journey against the actual app.
Common problems
Start with the symptom you recognise.
Practical guides
Understand the boundaries behind a reliable agent workflow.
Architecture drift
Bring architectural boundaries into the run, then review the changed responsibilities.
Agent governance
The boundaries, evidence, and review that keep autonomous changes accountable.
Permissions and scope
Grant the smallest useful scope, and make every expansion a visible decision.
Regression prevention
Carry known errors, guardrails, and required tests into the runs that follow.
MCP governance
Keep one project boundary across every MCP-capable executor you use.