Why Agent Instruction Docs Need a Cleanup After Model Upgrades
Stronger instruction-following can make old Agent rules a liability. This article explains why broad triggers and unconditional “always read everything” rules slow tasks, inflate context, and raise hallucination risk, and how to tighten skill triggers into task-specific routing.
1. Background: From “More Rules Are Better” to “More Rules Are Slower”
Early in Agent engineering, teams often used a simple defensive strategy. Because models frequently forgot to read docs or ignored conventions, every constraint was written into the instruction file, usually as “you must always…”. That worked at the time. Weaker instruction-following needed explicit, repeated, mandatory rules as a safety net.
Model capability changes. When a newer model follows instructions much more reliably, the effect reverses. The model no longer selectively ignores broad rules. It executes them carefully, repeatedly, and literally. Reliability does not improve. The execution path grows: extra reads, extra triggers, and extra checks are carried out faithfully. Tasks get slower, context fills up quickly, and hallucination risk rises.
In short: rules were patches for an older model’s weaknesses. When those weaknesses disappear, the patches become a burden.
2. Why Broad Triggers Become a Negative Optimization
2.1 Overly broad triggers over-activate skills
A common pattern looks like this:
Use when working with databases, queries, models, or persistence.
That covers a huge range. Changing an ORM model or fixing ordinary query logic can look “related,” so the model pulls in the skill’s migration rules, checklists, and reference material.
Three consequences follow:
- Wasted tokens: rules unrelated to the current change are loaded.
- Diluted attention: unrelated instructions crowd the context, and the rules that matter are easier to miss.
- More hallucination: longer, noisier context makes the model more likely to force-fit rules where they do not belong and produce output that looks plausible but is wrong.
A tighter trigger describes a concrete task:
Use when adding or changing a migration, or reviewing its rollout.
That names a specific set of actions, not a broad domain. The skill loads only when a migration is added, changed, or reviewed. Other work does not load it.
2.2 “Read every document before every edit” creates pointless repeated work
Another typical anti-pattern:
Before every edit, read architecture.md, database.md, and deployment.md.
This was common with earlier models that did not look up project docs on their own, so teams forced a full read every time. A model that follows instructions strictly will do exactly that:
- A one-string change still loads all three documents.
- Two edits in a row load all three documents again.
- Every edit repeats the same reads.
The only results are high token use and a much slower task. Context also grows quickly, which makes hallucination worse.
A context routing table is better:
Use architecture.md for service boundaries, database.md for schema changes, and deployment.md when preparing a deployment.
The point is to tell the model which document to consult in which situation, not to read every document all the time. Unconditional full reads become on-demand lookup. Information stays available, and cost stays limited to what is needed.
3. How to Clean Instruction Documents Systematically
Run a full cleanup in four steps.
Step 1: Inventory and classify
List every skill trigger and every rule in the instruction docs, then sort them into four groups:
- Specific and necessary: narrow trigger, clear rule — keep it.
- Broad and easy to misfire: tighten the scope.
- Unconditionally mandatory: phrases such as “read every time” or “always do this” — change them to conditional triggers.
- Conflicting or outdated: delete or merge them.
Step 2: Rewrite domain descriptions as task descriptions
A trigger should answer “what action is the model performing,” not “which broad domain is involved.”
BAD: Use when working with databases, queries, models, or persistence.GOOD: Use when adding or changing a migration, or reviewing its rollout.BAD: Use when working on the frontend.GOOD: Use when adding a new page route or modifying global layout components.
Test: if you can easily name three cases that should not fire but still match the rule, the condition is too wide.
Step 3: Rewrite forced actions as conditional routing
For every “you must do X first” rule, ask:
- When is this action actually required?
- Can it become “do X in situation A, and Y in situation B”?
- Can the result be reused (for example, do not reread a document already loaded)?
Example:
BAD: Before every edit, read architecture.md, database.md, deployment.md.GOOD: Use architecture.md for service boundaries,database.md for schema changes,deployment.md when preparing a deployment.
Step 4: Check conflicts and priority
When several rules activate together, the model may pause early, ask for confirmation repeatedly, or stall. During cleanup, make sure:
- Two instructions do not give different requirements for the same situation.
- Conditions that require stopping to ask the user have clear boundaries.
- Default behavior is explicit, so the model does not wait for confirmation at every decision.
4. What Cleanup Usually Improves
A serious rule cleanup typically brings:
- Lower token use: load on demand instead of loading everything; long sessions cost less.
- Faster execution: repeated reads and meaningless checks go away.
- More stable output: a tighter context keeps attention on the rules that matter, so hallucination drops.
- More predictable Agent behavior: specific triggers make skill activation explainable and testable.
5. Treat Instruction Documents Like Code
Instruction documents are not static config written once and forgotten. They are “code” that needs refactoring as model capability changes. Practical habits:
- Review new rules the same way you review trigger scope.
- Audit the full rule set on a regular cadence, for example after each major model upgrade.
- Write trigger tests for important skills: a few typical tasks that should activate the skill only in the expected cases.
- Record why each rule exists, so later reviews can tell whether it is obsolete.
Closing
There is a serious engineering fact behind the joke that if you learn slowly enough, you never have to learn: after models get better, rules piled up to cover old gaps stop protecting the system and start weighing it down. Instead of only complaining that the Agent is slower and more expensive, tighten skill triggers and project instructions. Turn vague domain language into concrete task language, and turn unconditional mandates into on-demand context routing. Then the model’s strength goes into moving the task forward, not into obeying outdated rules.
