Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/star-ga/mind-memnpx agentmods add skills/star-ga/mind-mem/integrity-scanWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/star-ga/mind-mem/integrity-scan)<a href="https://agentmods.dev/skills/star-ga/mind-mem/integrity-scan"><img src="https://agentmods.dev/badge/skills/star-ga/mind-mem/integrity-scan/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/star-ga/mind-mem/integrity-scan"><img src="https://agentmods.dev/badge/skills/star-ga/mind-mem/integrity-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00345 |
| Opus 5.5 | $0.00000 | $0.00138 |
| Sonnet 5.5 | $0.00000 | $0.00069 |
| Haiku 4.5 | $0.00000 | $0.00034 |
Grade A, and why
integrity-scan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- integrity-scan — 100% identical, 0 lines differ
What it actually says
/scan — Memory Integrity Scan
Run the intelligence scanner to detect contradictions, drift, dead decisions, and missing cross-references across the entire memory workspace.
When to Use
- After a session with significant decisions or changes
- During weekly maintenance
- When something "feels wrong" about the memory state
- Before making architectural decisions (verify no contradictions)
How to Run
python3 maintenance/intel_scan.py "${MIND_MEM_WORKSPACE:-.}"
What It Checks
- Contradictions — Decisions that conflict with each other (via ConstraintSignatures)
- Drift — Decisions referenced in daily logs but never formalized
- Dead decisions — Active decisions with no recent references
- Orphan tasks — Tasks referencing non-existent decisions
- Impact graph — Downstream effects of each decision
- Coverage — How many files are monitored vs total
Output
- Updates
intelligence/CONTRADICTIONS.md,intelligence/DRIFT.md,intelligence/IMPACT.md - Updates
memory/intel-state.jsonwith latest metrics and counters - Saves state snapshot in
intelligence/state/snapshots/ - Generates
intelligence/BRIEFINGS.mdweekly briefing
Modes
detect_only— Report issues, never propose changes (default)propose— Report issues AND generate fix proposals inintelligence/proposed/
Check current mode: cat memory/intel-state.json | python3 -c "import json,sys;print(json.load(sys.stdin)['governance_mode'])"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 36 lines · 0 tokens per session scan A e077911a3fdb
integrity-scan is a skill published in the GitHub repository star-ga/mind-mem (19 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 345 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
kb-memory
Local-first agent memory and knowledge service (RAG) installed from PyPI. Use when a task needs to store or recall long-term user preferences, project decisions, facts, documents or web pages, when different projects need separate memories, or when the user mentions "kb memory", "kb", or a local MCP memory service.…
rag-eval
Run the retrieval regression gate against the current repo state and report whether a recent change helped, hurt, or held steady.
brain-save
Create and manage governed memories by capturing one fact, decision, pattern, or convention, or by retiring an outdated memory. This is side-effecting and never auto-fires. Use when preserving a durable fact without a full recompile or changing a memory's lifecycle. Trigger with "/brain-save".
brain
Search and analyze governed notes, decisions, runbooks, and conventions, returning a qmd:// citation for every supported claim. Use when checking what the brain has captured about architecture, infrastructure, decisions, or operating practices. Trigger with "/brain", "ask the brain", or "check my knowledge base".
memoryguard
Local-first MCP memory backend and governance console for coding agents. Auto-organize, quarantine, supersede, and rollback shared memories across multiple agents.
memory
Persistent long-term memory via memini. Use to remember durable facts, decisions, and preferences, and to recall relevant context before acting. Triggers when the user says "remember", "what do you know about", or when starting a task that may have prior context.