Is there any tool that clearly checks whether an AI coding agent stayed inside the task I gave it?

Reddit r/AI_Agents Tools

Summary

The author describes the problem of AI coding agents making unauthorized changes outside their approved task and introduces their local tool Ripple, which detects such boundary violations and suggests actions like continue, repair, or human review.

I’m asking because I keep seeing the same problem when using AI coding agents. I give the agent a narrow task, but it sometimes makes extra changes outside that task. A simple example: I tested this on a repo with a function like this: // approved task src/merge.ts::mergeHeaders The intended instruction was only: Refactor/fix mergeHeaders() But the agent also changed another nearby function: src/merge.ts::mergeHooks The second change may even look useful. But my real question is not only: Is the code good? My real question is: Was the agent allowed to change mergeHooks()? This feels like a missing layer in AI coding workflows. Git diff can show what changed, but it does not clearly answer: What was the approved task? Which file/function was the agent allowed to edit? Did the agent cross that boundary? Should it continue, repair, or stop for human review? I’m working on a local tool called Ripple around this idea. The flow is: 1. Save the approved task before editing 2. Let the AI agent make changes 3. Check the staged diff after editing 4. Detect whether the agent crossed the approved boundary 5. Return continue / repair / human-review Example output: Approved: src/merge.ts::mergeHeaders Changed outside approved boundary: src/merge.ts::mergeHooks Decision: STOP / repair Risk: HIGH Reason: Agent changed a symbol outside the approved function boundary. I’m curious how other developers think about this. When AI agents make useful but unapproved changes, do you care about catching that before PR review? Or is normal git diff enough for you?
Original Article

Similar Articles

How do you know when an AI coding agent is actually done?

Reddit r/AI_Agents

The author built OpenPitStop, an open-source tool that independently checks and verifies the work of AI coding agents, demonstrated on a broken application, and invites discussion on how to trust AI changes.