Topic 4 of 4 · 3 min read
Drift in long chats and agent runs
Goal: Recognise instruction drift in a long conversation or agent run and choose to restate, reset or split the work.
In a long chat or a long agent run, the rules you set at the start can fade, and the model slowly drifts from them. It does not forget on purpose. Early instructions sit far back in a growing pile of text, and newer messages tend to pull harder.
Check yourself · 1 of 3
You set clear rules at the start of a chat. By message forty, replies break them. What is the most likely cause?
Why it matters
You start a chat with: "Answer in British English, keep replies under 100 words, and never suggest paid tools." The first ten replies follow it. By message forty, replies are longer, one says "color", and one recommends a paid app. Nothing broke. The conversation grew, and the early rules lost weight.
The same happens with coding assistants and other agents. You say "do not touch the database files" at step one. After many steps, tool outputs and file contents fill the context, and the rule is easier to break. Chroma's "Context Rot" work found that models get less reliable as the input grows, and vendors such as Anthropic also describe context as a limited resource to manage with care.
What to do
- Watch for the first slip. A longer reply, a changed tone, a banned word: treat these as a signal, not a one-off.
- Restate the key rules. Paste the short list again: "Reminder of the rules: British English, under 100 words, no paid tools."
- Summarise and restart. Ask for a short summary of decisions so far. Open a fresh chat, paste the rules and the summary, and carry on.
- Split the work. Give each task its own session. A new chat for each part of a project keeps the context small and the rules close.
- Keep a rules block. Store your standing instructions in one place, such as a custom instruction, project instructions or a notes file, so that you can paste them in again quickly.
- Add checkpoints for agents. For long runs, ask the agent to list the rules and report progress against them every few steps.
Before and after
Weak: one chat for a whole month of work. By week three, replies ignore the original format and mix facts from different tasks.
Better: one chat per task. Each starts with the rules and a short summary of what is already decided. The rules are fresh every time.
What goes wrong
- Slow slide. Each reply is only a little worse than the last, so you do not notice until it is far off.
- Old facts persist. A decision you reversed ten messages ago may still show up.
- Correcting in circles. Long threads of "no, I said..." add more text without fixing the cause. A reset often works better.
Examples
The rules that faded by message forty
Rules at the start: British English, under 100 words, no paid tools.
Message 41 reply: "Here's a detailed walkthrough of the color settings... I'd recommend the premium plan of Canva for best results..." (210 words)
Check: American spelling, over the limit, and a paid tool. Fix: paste the rules again, or start a new chat with the rules plus a summary of what is decided.
Reset with a summary
Ask: "Summarise what we have decided in five bullet points, and list the standing rules."
Open a new chat and paste: the rules, the five bullets, and the next task. The model now starts with the rules near the top and a small, clean context.
Key points
- In a long chat or agent run, early instructions can lose force as the conversation grows.
- The first small slip, such as a longer reply or a banned word, is a signal to act, not to ignore.
- Restating the key rules is the quickest fix; summarising and starting a fresh session is the stronger one.
- Splitting work into separate sessions keeps the context small and the rules close.
- For agents, periodic checkpoints that list the rules and progress catch drift early.
Common mistakes
- Carrying on in one chat for weeks and wondering why the rules stopped working.
- Correcting the model again and again in the same thread instead of restating the rules once or resetting.
- Assuming that an instruction given once at the start will hold for the whole run.
- Letting an agent run for many steps with no checkpoint to compare its work against the rules.
Check yourself · 2 of 3
A chat has drifted: replies are longer and use a banned word. What is the quickest first fix?
Check yourself · 3 of 3
You run a month-long project in one chat and the replies keep getting worse. What is the best change?
Practice items, not counted towards your mastery.
Start here
- Instruction-Following Evaluation for Large Language Models (IFEval) (opens in a new tab)PaperFree
A benchmark of checkable instructions such as word counts and required keywords, used to measure what models skip.
- Lost in the Middle: How Language Models Use Long Contexts (opens in a new tab)PaperFree
Research showing models use details at the start and end of a long input better than details in the middle.
- Context Rot (Chroma research) (opens in a new tab)ArticleFree
Tests of many models showing answers get less reliable as the input grows, even on simple tasks.
More for this topic
- Context windows (Claude docs) (opens in a new tab)DocsFree
Explains that more context is not always better and that accuracy can fall as the window fills.