Where most memory tools help your agent remember more, mnemoa helps it forget what no longer belongs.
I built *mnemoa * to keep AI coding instructions from going stale. *mnemoa * is built to make coding agents forget: it finds the stale, redundant and contradictory lines in AGENTS.md, CLAUDE.md and other instruction fi
I built *mnemoa * to keep AI coding instructions from going stale.
*mnemoa * is built to make coding agents forget: it finds the stale, redundant and contradictory lines in AGENTS.md, CLAUDE.md and other instruction files, so they can be deleted rather than piled on.
Coding agents rely on files like AGENTS.md, CLAUDE.md, and project plans to understand a codebase. Over time, those files can get long, repeat rules already enforced by tools, and point to paths or commands that no longer exist.
I built mnemoa to help keep that repo memory small, accurate, and useful.
What it does
*mnemoa * scans a repositoryβs agent instruction files and plans. It checks for issues such as:
- Instructions that are too long or consume too much always-loaded context
- Broken paths, symbols, and commands
- Plans that have drifted from the code
- Rules that a formatter, linter, or other tool could enforce instead
It can also create a prune plan showing what it would remove or move, along with the estimated token cost before and after. You can review the diff before applying it.
The idea behind βpromote, then forgetβ
Some instructions describe rules that tools can already enforce. *mnemoa * can help turn those rules into checks, such as EditorConfig settings, Cargo lints, Ruff settings, ast-grep rules, or pre-commit hooks. It records the promotion in a ledger, so the instruction can leave the context file without losing track of why it existed.
The goal is to keep useful guidance available while reducing repetition and stale instructions.
Offline by default
*mnemoa * is written in Rust and runs deterministic checks locally. The optional LLM feature can help draft rules, but it is disabled by default. You can use the CLI, run the optional HTTP API, or connect through the Python SDK.
It models how seven coding agents load instruction files: Claude Code, Codex, Cursor, Copilot, Kiro, Cline, and Gemini.
Try it
Install from the repository and scan a project:
cargo install --path crates/mnemoa-cli
mnemoa scan .
mnemoa forget
mnemoa forget shows a dry-run plan. To apply the changes after reviewing them:
mnemoa forget --apply --yes
The project also includes a GitHub Action for running scans and drift checks in CI.
What Iβd like feedback on
Iβd especially like to hear how *mnemoa * handles real instruction files: which findings are useful, which ones are noisy, and what kinds of repo drift it should catch next.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.