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 3 of 6

Four tells, then revert and choose

builds on: Long sessions: lost instructions and drift, Patching the symptom instead of the cause
Stop when you see: - the same fix again, reworded - the diff grows while red checks don't shrink - suppressions pile up (`as any`, `@ts-ignore`, `# type: ignore`, `#[allow]`) - it contradicts its earlier diagnosis or a rule you gave it Then **revert** to the last clean commit. Keep notes, not code. After that, either: - **Restart** in a fresh session with a distilled summary, or - **Take over** when you can see the cause and the fix is a few lines.
Terms on this card
the diff
The change under review in unified format: '-' lines removed, '+' lines added, unprefixed lines are context, with a header naming the file.
red
A test or check that is failing.
suppressions
Markers that tell the compiler, type checker or linter to stop reporting a problem on some code, without fixing the problem.
as any
TypeScript cast that turns off type checking for that expression, so any type error there disappears.
@ts-ignore
TypeScript comment that hides every type error on the next line.
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