Guide

Your rules file was right in March.
It is lying to you now.

A shared instruction file like CLAUDE.md, AGENTS.md or .cursorrules is a snapshot of what somebody believed on the day they wrote it. The codebase moves and the file does not, so your agent inherits stale guidance with exactly the same confidence as fresh guidance. The fix is not a better file. It is giving the guidance a lifecycle, an owner and a way to be fetched on demand instead of loaded whole.

Diagnosis

Four reasons instruction files drift

None of these are fixed by writing a better file. They are properties of the format.

It has no expiry
Every line in a rules file was written to fix a real failure. Then the model improved, or the code moved, and the line stayed. Nothing in the file distinguishes an instruction added last week from one added in March that is now actively wrong, so the agent trusts both equally.
It has too many authors
Someone adds a project rule. Someone else removes it because it fought their workflow. A third adds a personal style preference that was never a team convention. Within a month the file reflects the last person to edit it rather than what the team actually does.
It is loaded whole, every time
The file is read on every session regardless of the task. You pay for all of it on a one-line change, and it competes for the limited number of instructions a model reliably follows before it starts dropping things.
Nothing tells you it broke
A stale rule does not throw. The agent follows it confidently, produces plausible code, and the cost shows up later as a review comment or an incident. That silence is why drift survives for months.
The fix

Five changes, in the order they pay off

The first two are architectural and you can do them with any tooling. The last three are what Decispher automates.

01
Separate the index from the content

The committed file should say what knowledge exists and how to fetch it, not carry every decision inline. A thin index costs a few hundred tokens; the agent then pulls the two or three items a task actually needs. Decispher writes that index into .decispher/ and keeps the enabled agent formats in sync from it.

02
Give every rule a lifecycle

A decision that replaces an older one should supersede it, not sit beside it. Anything nobody has confirmed for long enough should raise a question rather than quietly age into a wrong answer. That requires a record with status, not a markdown list.

03
Capture from work, not from discipline

Files drift because maintaining them is a separate task nobody is measured on. Decispher extracts conventions and constraints from the Slack threads, pull request reviews and tickets your team already writes, so the file regenerates instead of being edited.

04
Regenerate by pull request

Changes to CLAUDE.md, AGENTS.md, .cursorrules and the rest arrive as a pull request you review, so nobody edits the file by hand and nobody is surprised by what changed.

05
Enforce the ones that matter

A convention only counts if something notices when it is broken. Decision Guardian runs in CI and flags a pull request that contradicts a decision on record, before a reviewer opens the diff. It is open source and free to run.

Questions

What teams ask about rules-file drift

Why does CLAUDE.md go stale?

Because it is a snapshot with no lifecycle. Each line was written to fix a real failure at a moment in time, and nothing in the file marks a line as superseded when the codebase moves or the model improves. The file also has many authors and no owner, so it converges on whoever edited it last rather than on what the team actually does.

How big should a CLAUDE.md file be?

Smaller than most teams make it. A model reliably follows a limited number of distinct instructions, and the agent’s own system prompt already occupies part of that budget. Past a few dozen genuine rules you are not adding guidance, you are competing with it. Keep the committed file to an index and fetch the detail on demand.

AGENTS.md or CLAUDE.md, which should I use?

Both, if your team uses more than one tool, which is the usual case. The real problem is not choosing a format but keeping several of them saying the same thing. Generate them all from one record rather than maintaining each by hand.

Can I just review the file every sprint?

You can, and it works for about two sprints. Manual review fails for the same reason documentation fails: it is a separate task with no forcing function, and the cost of skipping it is invisible until something breaks. Anything that depends on discipline will drift the moment the team is busy.

How does Decispher keep these files current?

It captures decisions, conventions and constraints from Slack, GitHub, GitLab and Jira as they happen, tracks whether each is still current, and regenerates the committed files by pull request. The committed file carries an index rather than full bodies, and agents fetch the detail live over MCP.

Stop maintaining the file. Maintain the record.

Decispher captures decisions from the work your team already does and regenerates every agent instruction file from one record, by pull request.

See the Context EngineAGENTS.md vs CLAUDE.md