Agent questions
Why is my AI agent doing that?
Short, plain answers to the questions we hear most from people running coding agents and agent factories. Each one says what usually causes it, how to check, and what to change.
-
Why does my AI agent skip steps?
Usually because the step was never written down where the agent checks it. An agent works from what is in front of it right now. A step that lives in a long first prompt, an old message, or someone's head gets dropped once the context fills up or the task looks done early. The fix is a written checklist the agent re-reads every run, and a final check that fails when a step is missing.
-
Why does my AI agent drop or forget context?
Because every model has a limited context window, and long agent runs fill it with tool output, file contents, and retries. When it fills, older material gets cut or summarized, and the instructions you gave at the start are often the first thing to go. Shorter runs, standing rules in a file the agent re-reads, and quieter tool output fix most of it.
-
Why does my AI agent get stuck?
Most stuck agents aren't broken. They're waiting: on a permission prompt, a question in a chat nobody is watching, a failing CI check they can't read, or a pull request nobody was asked to review. Find what each stalled run is waiting on, then fix the most common reason as a team rule rather than one branch at a time.
-
Why does my AI agent keep looping?
An agent loops when it can't tell whether its last attempt worked. The usual triggers are a flaky test, an error message it misreads, a missing permission, or a goal it can't actually reach. Give it a stop rule, such as stop and report after three failed tries at the same step, and make sure it can see the real error.
-
Why do my AI agents hit usage limits so fast?
Usually a few heavy habits rather than lots of work: the strongest model on every step, the same large context resent on each call, long runs that loop, and several agents doing overlapping tasks. Check which tasks and models use most of your limit before you buy a bigger plan.
-
Which model should my coding agent use?
Use the strongest model for planning, hard debugging, and work that's expensive to get wrong, and a lighter, faster model for routine edits, renames, summaries, and test runs. The right split depends on your tasks, so compare finished tasks and fix-up rounds by model on your own runs instead of going by benchmarks.
-
What is the best AI agent workflow for my team?
The one that already works best on your own tasks. Most teams have a person or two whose agent setup finishes more tasks with fewer fix-ups. Find that setup for each kind of task, write it down as a shared CLAUDE.md or AGENTS.md block, make it the default, and check that it holds up for everyone else.
-
How do I measure AI agent efficiency?
Count outcomes, not activity. Tokens and session counts tell you agents ran. Efficiency is finished work, like merged pull requests or closed tickets, per unit of plan limit or spend, plus how much rework it needed. When you change something, compare a before window and an after window of the same length.
-
Why does my AI agent skip or break tests?
Because nothing makes the tests part of done. An agent stops when the code looks right, and if no rule tells it to run the tests, or a failing test looks like someone else's problem, it reports done anyway. Put a rule in the instructions file it reads on every task: run the tests, say how many passed, and don't call it done while any test fails.
-
Why does my AI agent change files outside the task?
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.
-
Are my AI agents doing the same work twice?
Often, once you run several sessions at once. Two sessions pick up the same kind of task in the same repo without knowing about each other, and you pay for both and merge one. Before an agent starts, have it check whether another session is already on that work, and keep one shared list of what is in flight.
-
How do I check if my AI agents are healthy?
Look at how each agent's tasks end, not how much it ran. A healthy agent finishes what it starts, runs the tests, stays inside the task, and doesn't loop, stall, or hit limits. Check each agent's recent tasks for those signs, fix the most common problem with one written rule, then check again on the tasks that follow.