Agent knowledge base rot: 14 symptoms, checks, and fixes
August 18, 2026
An agent-maintained knowledge base fails in specific, repeatable ways.
This is the reference list: each failure mode below has a symptom you can
recognize, a check you can run in minutes, and the smallest fix that
works. The modes come from reading the comments on
Karpathy's llm-wiki gist,
the practitioner reports around it, and maintaining a live agent KB. The
story of where each mode showed up in the wild is in
the companion post;
this page is the one to keep open while you fix yours.
If you'd rather have an agent run all 14 checks for you, there is a
read-only audit prompt that returns a scored report card.
Get it here.
A wrong entry does not reset like a hallucination. It becomes a prior
that every future answer builds on, and agents start citing other
agents' unverified entries as evidence.
Symptom: the agent repeats a claim you never verified. Two pages
cite each other and nothing else.
Check: pick five substantive claims from your most-used pages.
Trace each to a raw source or an external reference.
Fix: agent-written claims land as drafts. A human promotes them.
Claims with no source pointer get marked unverified.
New information overwrote the old claim instead of marking it. The
contradiction is invisible and history exists only in git, where no
agent looks by default.
Symptom: no page ever disagrees with itself. Decisions look like
they were always the current ones.
Check: find a fact you know changed. Does the page show the old
claim as superseded, or did it vanish?
Fix: supersession callouts: flag the old claim with a dated
"superseded" note and keep it visible.
The instruction file (CLAUDE.md, AGENTS.md) grew past what the agent
actually follows. Long instruction files fail wholesale, not
gracefully: practitioners report agents ignoring rules entirely past
roughly 100 to 300 lines.
Symptom: the agent breaks rules that are plainly written in the
file.
Check: count lines. Over 150 is a warning. Over 300 is a
failure.
Fix: keep the schema to constraints, not essays. Move detail to
linked pages the agent loads on demand.
The KB layer is lossy compression. Summaries drop caveats, dates,
exact numbers, and minority views. Once queries hit only the summary,
its errors are the knowledge base.
Symptom: a page states a number or quote with no link to where
it came from.
Check: sample derived pages, look for source pointers.
Fix: keep an immutable raw layer, and every derived claim links
back to its source.
Checking all 14 by hand takes an afternoon. The audit prompt does it in
one pass: paste it into Claude Code, Codex, or Cursor opened in your
knowledge base folder, and it returns a report card with a verdict and
the smallest fix for everything it flags, read-only.
Get the audit prompt.
The prevention templates (a hardened CLAUDE.md and a recurring lint
checklist) are free on
GitHub.
Join My Newsletter
Occasional notes on software, tools, and things I learn. No spam.