Ignoring repository instructions
Claude Code or another agent appears to ignore CLAUDE.md, AGENTS.md, or a recent project decision.
Local repository scanner
AI-assisted projects can preserve old rulings, rejected approaches, and missing documents as if they were still current. Hygiene finds the residue so a person can decide what still belongs.
$ ./bin/hygiene scan ./project
Scanning source comments and repository prose…
src/checkout.ts:84
GOVERNANCE Owner ruling: NEVER change this flow.
src/worker.js:31
PHANTOM See OLD-DESIGN.md (not found)
Illustrative output using the repository's documented synthetic examples.
Developers often call the experience context rot, context bloat, or context drift. Those phrases describe symptoms, not a single cause.
Claude Code or another agent appears to ignore CLAUDE.md, AGENTS.md, or a recent project decision.
Cursor, Copilot, Codex, or another agent returns to an approach the team already ruled out.
The agent refers to deleted documents, old code structure, or authority that is no longer present.
Comments, instruction files, and Markdown keep growing while their current authority becomes harder to judge.
Hygiene was created after repository residue caused friction, context bloat, and unintended governance in a real AI-assisted project. Cleaning it improved that workflow. When an agent loads governance comments or stale prose, that material consumes input tokens; contradictions create conflicting context; and prescriptive comments can become unintended governance. Hygiene shows what is stored. The tool and task determine what gets loaded.
Understand context rot, context bloat, and instruction residue ↗Comments and Markdown can carry decisions from a conversation long after the surrounding code changes. A temporary instruction can become apparent policy. A record of disagreement can look like a product requirement. A deleted document can still lend authority to a comment that points to it.
Whether an agent reads or follows any of this depends on its tools and task. Hygiene does not claim to observe a model's context or diagnose its behavior. It asks a smaller, testable question: what instruction-like material is present in this repository?
Useful context enters a comment or document.
Code changes; the old instruction remains.
People and tools must guess what still applies.
Hygiene uses explicit heuristics. A match is a prompt for human review, and a clean report only means there were no matches under the current patterns and exemptions.
Rules, rulings, and instruction-like language embedded in source comments.
Records of rejection or disagreement that may outlive the discussion that produced them.
Comments that cite a document the scanner cannot find in the working tree.
Comment and Markdown volume, plus documents whose history shows no net-shrinking revision.
Repository prose that remains retrievable from Git history after deletion.
“Precision is the product.”
False positives are treated as first-class bugs. Pattern changes require positive and nearby negative tests.
Your repository contents are not sent to a service.
No runtime package installation for the core scanner and hooks.
scan writes nothing and always exits zero.
Install commit checks only after reviewing the scan.
Clone the repository and point Hygiene at a project you use with a coding agent. Useful findings, false positives, and clean scans are all valuable public-beta evidence.
git clone https://github.com/nouvic/hygiene.git
cd hygiene
./bin/hygiene scan /path/to/your-project
The scan is informational. It does not change hooks, agent settings, or project files.
Works on Linux and macOS with Bash and Git.
Hygiene is intentionally narrow. These answers define what it can establish and where human judgment begins.
Hygiene began with an observed case: repository residue made later AI-assisted work harder to steer, and cleaning it reduced that friction. Loaded repository text consumes context; stale facts conflict with current facts; and prescriptive comments create unintended governance. Hygiene identifies those stored conditions.
Rule-like or decision-like prose that remains in source comments and repository documents after its original context has changed or disappeared.
Source comments and repository prose for explicit signals: governance language, argument residue, references to missing documents, prose growth, and deleted documents recoverable from Git history.
No. Hygiene runs locally with Bash and Git. It uses no API key, model calls, or telemetry.
No. Every finding is a candidate for human review, not a verdict. A clean scan only means the current patterns and exemptions produced no matches.
No. scan is read-only, writes nothing, and always exits zero. Optional Git hooks are installed only when you run the separate install command.
Vicky Durel built Hygiene after accumulated residue in an AI-assisted project created context bloat, unintended governance, and friction in later work. Cleaning the repository improved that workflow. The first release turns that observed failure mode into explicit, inspectable heuristics instead of asking another model to judge the repository.
The public beta is the next test: findings, false positives, and clean scans will show where the premise holds and where the patterns need to change.
Read why Hygiene exists ↗Input context is metered in tokens, and both Anthropic and OpenAI publish input-token pricing. An ETH Zurich study found no task-success improvement and over 20% higher inference cost from context files in its evaluated settings.
The originating project shows that this residue can create real friction; the external sources support the broader concern. Public-beta trials will show how often the patterns appear elsewhere and how much cleanup changes outcomes.
Free and open source