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.
Long sessions: lost instructions and drift card 3 of 6

Tells of drift and what to do

builds on: What the agent sees: its context
**Tells:** - A rule followed in early files is broken in later ones. - Conventions shift mid-session: a different error style, logger or library. - Behaviour changes after a 'context compacted' notice. - The agent retries a fix it already tried, or revives an approach you rejected. **Later cost:** each tell means rule breaks your tests don't check, merged under a summary that claims compliance. **Response:** check every file touched in the long stretch against your original rules. Restate the rules. Put lasting ones in an instruction file. If failures pile up, start fresh with a short brief.
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.
compacted
When the context nears its size limit, the tool replaces older conversation turns with a shorter summary so the session can continue.
instruction file
A project file of standing rules that the agent's tool loads into context, usually every session, so the rules don't depend on chat history.
tell
An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
Later cost
The concrete damage a shortcut does after merge, such as a hidden bug, data corruption or maintenance burden.
Learn this step by step on Bytewise
Lesson goal: Explain how a filling context weakens attention to early constraints, how summarising or compacting the context can drop them, and how a pile of failed attempts pollutes later reasoning. Recognise drift when the agent starts violating rules it followed at the start. · the whole lesson