memory-hygiene
Skill1.3k starsChanged 4 months agoMITView on GitHub
Periodic trust sweep of persistent memory and durable knowledge notes - re-verifies environment-dependent claims against the live environment, stamps last_verified + confidence, and proposes archiving drifted entries
8 other projects use a version of this.
Trending
Quiet since October.thin dataabout the whole repository
Most recently taken up by
- HsuanYuLee/polaristheir own version, first seen Sep 29, 2026
- GH-Mason/agent-memory-disciplinetheir own version, first seen Sep 24, 2026
- fthsrbst/mnematheir own version, first seen Aug 22, 2026
- NITISH-R-G/agent-memory-protocoltheir own version, first seen Aug 1, 2026
- marcelopaniza/mempennytheir own version, first seen Jul 7, 2026
- NUX-Design/claude-skills-fable-opustheir own version, first seen Jul 7, 2026
Who's talking about huytieu/COG-second-brain
- sudosubin/agents.nix“agent-plugins.github.huytieu.cog-second-brain: init at 3.15.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.huytieu.cog-second-brain: 3.10.0 → 3.15.0”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.huytieu.cog-second-brain: init at 3.10.0”GitHub · Sep 28, 2026
- frsvffcy/llm-wiki-km“[L3][Evaluation][Agent Workflow][Second Brain] 評估 COG closed-loop、self-evolution 與 multi-agent knowledge …”GitHub · Sep 18, 2026
The biggest 4 of 4 mentions linking to the repository that our crawl found. Each line is their own headline.
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- NUX-Design/claude-skills-fable-opus★ 23same name
- HsuanYuLee/polaris★ 5same name
- fthsrbst/mnema★ 2same name
- marcelopaniza/mempenny★ 2same name
- NITISH-R-G/agent-memory-protocol★ 1same name
- chanjalme/claude-skills★ 0same name
- fbsmna-coder/karpathy-pro-max★ 0same name
- GH-Mason/agent-memory-discipline★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auto-researchSkill
- braindumpSkill
- closed-loopSkill
- comprehensive-analysisSkill
- content-factorySkill
- create-user-storySkill
- daily-briefSkill
- daily-journalSkill
- data-formsSkill
- editorial-illustrationsSkill
- export-open-issuesSkill
- generate-prdSkill
- generate-release-notesSkill
- harvestSkill
- knowledge-consolidationSkill
- loop-engineeringSkill
- meeting-transcriptSkill
- memory-hygieneSkill
- museum-artSkill
- no-ai-slopSkill
- onboardingSkill
- product-ui-tasteSkill
- publish-to-confluenceSkill
- release-videoSkill
- retroSkill
- review-cockpitSkill
- scoutSkill
- slop-gateSkill
- taste-skillSkill
- team-briefSkill
- ultragoalSkill
- update-cogSkill
- update-knowledge-baseSkill
- url-dumpSkill
- voice-baselineSkill
- weekly-checkinSkill
- auto-researchSkill
- braindumpSkill
- closed-loopSkill
- comprehensive-analysisSkill
- content-factorySkill
- create-user-storySkill
- daily-briefSkill
- daily-journalSkill
- data-formsSkill
- editorial-illustrationsSkill
- export-open-issuesSkill
- generate-prdSkill
- generate-release-notesSkill
- harvestSkill
- knowledge-consolidationSkill
- loop-engineeringSkill
- meeting-transcriptSkill
- museum-artSkill
- no-ai-slopSkill
- onboardingSkill
- product-ui-tasteSkill
- publish-to-confluenceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
After a memory misfires (a recalled fact turned out wrong)
- Distinctive: line 49
Never spend more than ~1 minute per entry.
- Very specific: line 53
After checking an entry, update its frontmatter metadata: block in place (do not touch body text unless fixing a verified-wrong fact):
- Very specific: line 73
Write one report per sweep to 01-daily/YYYY-MM-DD-memory-hygiene.md, structured around four evolution questions:
- Distinctive: line 85
Never rewrite an entry's voice or restructure it during a sweep.
- Distinctive: line 86
If the memory index points at renamed/missing files, fix the index.
- Distinctive: line 87
Keep the sweep itself out of memory: the report file is the record.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
COG Memory Hygiene Skill
Purpose
Prevent the stale-but-confident failure mode: a memory or knowledge note that was correct when written ("the webhook lives at X", "the board ID is Y") silently drifts after the environment changes, yet still ranks high at recall and gets acted on.
The system move (adapted from "From Model Scaling to System Scaling: Scaling the Harness in Agentic AI", Gu, UC Berkeley, arXiv:2605.26112): make trust a runtime decision, not a property of the stored item. Re-verify against the live environment, and keep per-entry last_verified and confidence as first-class fields so future recalls can weigh trust.
When to Invoke
/memory-hygiene- "Audit my memories" / "check for stale memories"
- After a memory misfires (a recalled fact turned out wrong)
- Default cadence: monthly
Scope
Sweep two stores:
- Agent memory — wherever your agent keeps persistent memory files (e.g. Claude Code's auto-memory directory). Sweep every entry except the index itself.
- Durable knowledge notes —
05-knowledge/**files whose claims reference the environment (paths, URLs, IDs, tool names).
A partial sweep ("just the reference entries") is fine when asked.
Claim Classification
For each entry, split its claims into two buckets:
| Bucket | Examples | Action |
| Environment-dependent | file/dir paths, repo names, branch names, channel IDs, board IDs, URLs, API endpoints, cron/routine IDs, CLI names, version numbers, "X lives at Y" | Verify against the live environment |
| Preference / judgment | tone rules, formatting rules, "never do X", people facts, strategy context | No environment check possible; verify only for internal contradiction with newer entries |
Verification Moves (cheap first)
- Paths and files:
ls/test -e. Skills, commands, and agents named in an entry must still exist at the stated path. - URLs: resolve with a HEAD/GET (
curl -sI); flag 404 or redirect-to-login. - Repos/branches:
gh repo view,git ls-remotewhen cheap. - IDs (channels, boards, routine triggers): verify only if an MCP/CLI check is one call; otherwise mark
unverifiable-cheaplyand leave confidence untouched. - Cross-entry contradiction: newer entry wins; flag the older one.
Never spend more than ~1 minute per entry. This is hygiene, not an investigation. Unverifiable ≠ drifted.
Stamping
After checking an entry, update its frontmatter metadata: block in place (do not touch body text unless fixing a verified-wrong fact):
metadata:
type: reference
last_verified: 2026-07-10
confidence: high # high = verified now | medium = unverifiable cheaply | low = partially drifted- Verified clean →
confidence: high, stamp date. - Unverifiable cheaply → keep prior confidence (or
medium), stamp date. - Partially drifted → fix the drifted fact directly in the body (reviewable via the report); set
confidence: lowonly if unsure the fix is complete. - Fully obsolete → propose archive, don't delete. List it in the report's "Propose archive" section; only archive after the user confirms.
The Loop (see /loop-engineering)
Scan-until-done over the entry list with a per-entry budget guard (~1 min). The deterministic verifier is the environment itself (test -e, curl, gh) — never the agent's own recollection of whether something "should" still exist. Human escalation: all deletions/archives.
Report (single file)
Write one report per sweep to 01-daily/YYYY-MM-DD-memory-hygiene.md, structured around four evolution questions:
- What persists? — counts by type (user/feedback/project/reference).
- What updated? — entries whose body was corrected, with old → new.
- What is measured? — scorecard:
verified / unverifiable / drifted / propose-archivecounts, plus deltas vs the previous sweep report (the drift trend is the longitudinal signal one-shot checks miss). - What is auditable? — every change in this sweep is a line in this report; for stores Git does not track, the report IS the audit trail.
End the report with a Propose archive section (explicit list, one line of evidence each) and a Waiting on you line if anything needs a decision.
Rules
- Propose-only for deletions/archives; direct-apply for stamps and verified factual corrections.
- Never rewrite an entry's voice or restructure it during a sweep.
- If the memory index points at renamed/missing files, fix the index.
- Keep the sweep itself out of memory: the report file is the record.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

