Features
How Blog Docs Sign in Connect

All questions

Agent question

Why does my AI agent change files outside the task?

Updated

Short answer: Because the task never said where the change should stay. Agents tidy what they touch on the way: a rename here, a reformat there, a helper improved in another folder. Name the files or folder the change belongs in, and tell the agent to ask before editing anything else.

Common causes

How to check

For each recent agent task, compare the files it changed with the files or folder the task was about. Count the files outside that scope. A few agents or task kinds usually account for most of them.

What to change

Where Overdrive helps

Your agents can report how many files a task touched outside its scope. Overdrive's Agent health page flags wandering agents, and Fix it gives your own agent a rule to stay inside the task. Overdrive then re-checks the tasks that follow.

Related

Meet Overdrive

Overdrive, your efficiency agent

Add Overdrive to Claude, ChatGPT, Cursor, Codex, or Grok Bot and ask how your agents are doing.