Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
When to stop, reset or take over card 2 of 6

Why more turns make it worse

builds on: Long sessions: lost instructions and drift, Patching the symptom instead of the cause
Every failed attempt stays in the context, and the agent conditions on it. Its own wrong theory now reads like evidence, so it rewords the same fix. It still aims at the proxy signal (build green). While the cause stays hidden, it widens the net: casts, ignores, guards, edits in more files. Each 'try again' adds pollution. Later cost: a sprawling diff mixing the fix with leftovers, and silencers hiding real errors.
Terms on this card
context
Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
proxy signal
A visible stand-in for the real goal (tests green, error gone, it compiles) that the agent can satisfy without achieving the goal.
Later cost
The concrete damage a shortcut does after merge: a hidden bug, silent data corruption or a maintenance burden.
green
A test or check that is passing.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
Learn this step by step on Bytewise
Lesson goal: Recognise a session going bad: the agent repeats a failed fix, the diff keeps growing, suppressions pile up or it contradicts itself. Then revert to a clean commit, start a fresh session with a distilled summary, or do the change yourself. · the whole lesson