Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add dimetron/pi-go --skill memory-minegit clone --depth 1 https://github.com/dimetron/pi-goWrote 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/dimetron/pi-go/memory-mine)<a href="https://agentmods.dev/skills/dimetron/pi-go/memory-mine"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/memory-mine/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/dimetron/pi-go/memory-mine"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/memory-mine.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.00035 | $0.00614 |
| Opus 5.5 | $0.00014 | $0.00246 |
| Sonnet 5.5 | $0.00007 | $0.00123 |
| Haiku 4.5 | $0.00003 | $0.00061 |
Grade A, and why
memory-mine 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 3mo 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.
What it actually says
When to use
Use this skill when the user wants to:
- Index/mine project source files into the palace memory
- Mine conversation history (JSONL, text) into the palace
- Rebuild or refresh the palace knowledge base from disk
- Bootstrap memory for a new project
What it does
Runs pi memory mine to walk a directory and ingest files as palace drawers:
-
Source mining (default): Walks the directory tree, chunks source files (1500 chars, 200 overlap), assigns rooms via
mempalace.yamlpatterns or directory structure, generates embeddings, deduplicates (cosine >= 0.9), and stores as drawers. -
Conversation mining (
--convos): Parses JSONL (pi-go or Claude Code format) and plaintext conversations, pairs user+assistant turns, and stores as drawers with importance=4.
Steps
- Check if
palace.dbexists (runpi memory init .if not) - Check if the embedding model is downloaded (run
pi memory model downloadif not) - Run the mine command:
# Mine source files from current directory
pi memory mine .
# Mine source files with explicit wing name
pi memory mine . --wing my-project
# Mine conversation files
pi memory mine ./conversations --convos
- Show the results (processed, added, skipped duplicates, errors)
- Optionally run
pi memory statusto confirm the updated state
Arguments
The user can pass arguments after /memory-mine:
- A directory path (default:
.current directory) --wing <name>to override the wing name--convosto mine conversations instead of source files
Examples:
/memory-mine— mine current directory/memory-mine ./src— mine the src directory/memory-mine ./chats --convos— mine conversation files
Prerequisites
pibinary must be built and available (go build -o pi ./cmd/pi)- Palace DB must be initialized (
pi memory init .) - For semantic search, embedding model must be downloaded (
pi memory model download)
Notes
- Respects
.gitignorepatterns - Skips hidden dirs,
node_modules,vendor,.git,build,target - Skips files > 512 KB
- Uses
mempalace.yamlfor room assignment if present - Duplicates (cosine similarity >= 0.9) are automatically skipped
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.
- 3mo ago First seen · 75 lines · 35 tokens per session scan A d31e6d89e525
memory-mine is a skill published in the GitHub repository dimetron/pi-go (235 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 614 once invoked, about $0.0001 per session on Opus 5.5. 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.
memory-mine compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memory-minedimetron/pi-go | Skill | 235 | today | MIT | A | 35 | Claude Code |
| use-modern-goJetBrains/go-modern-guidelines | Skill | 4.0k | 1mo ago | Apache-2.0 | A | 32 | Claude Code |
| goericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 86 | Claude Code, Codex |
| gographozgurcd/gograph | Skill | 234 | 2d ago | MIT | A | 91 | Claude Code |
| cgo-bindingsGoldziher/ai-rulez | Skill | 183 | today | MIT | A | 45 | Claude Code, Codex |
| cli-to-go-migrationalexastrum/skl | Skill | 11 | 3d ago | MIT | A | 21 | Claude Code, Codex |
| golang-testingalexastrum/skl | Skill | 11 | 3d ago | MIT | A | 115 | Claude Code |