Repository navigation
Add audit-memory skill to claude-code-tools - #6
Merged
Merged
Conversation
Saved memories are point-in-time observations. Code moves, PRs merge, projects finish — and a memory that was true when written silently becomes a confidently wrong instruction to every future session. /audit-memory verifies each claim against current code, PRs and tickets, then archives the stale ones with the user's approval. Its load-bearing guarantees: absence of evidence never becomes evidence of staleness (an unverifiable claim is NEEDS-<tool>, never offered for removal); every file is snapshotted before any write, so nothing is unrecoverable; and stated preferences are never truth-checked. Ported from an internal plugin. The three internal MCP namespaces are dropped from allowed-tools — the skill now uses whichever tracker and telemetry MCPs a session happens to have, and names the missing one in the verdict. Internal example figures are replaced with synthetic ones. Verified: plugin manifest validates, and a headless /audit-memory run against a synthetic fixture flagged the superseded claim from in-corpus evidence, listed all three of its occurrences (body, frontmatter description, and MEMORY.md pointer), left the preference untouched, and made no writes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
bscanlan
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
Saved memories are point-in-time observations, so a note that was true when written quietly becomes a confidently wrong instruction to every later session. This was the one skill named in our internal guidance on running efficient sessions that had no public equivalent, and it helps anyone who keeps memories at all.
How?
Each saved claim is checked against current code, pull requests and tickets, every file is copied to an archive before it is touched, and only claims positively proven stale are offered for removal. Anything that could not be checked is reported as needing a named tool rather than treated as false.
Generated with Claude Code