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 agentmods add skills/dimetron/pi-go/memory-minenpx 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.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00035 | $0.00614 |
| Opus 5 | $0.00017 | $0.00307 |
| Sonnet 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 5d 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.
- 5d 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 (151 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 614 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
use-modern-go
Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes.
learn-from-history
审计近期对话历史,提炼重复失败、成功模式、稳定规则和 skill 改进。用户要求总结历史对话、 回顾近期 agent 表现、从历史中学习或寻找可自动化改进时使用。.
code-review-context
Codex maintains a context (history of messages) that is sent to the model in inference requests.
go-specialist
Go code review specialist for VM Agent and CLI. Reviews PTY/WebSocket/JWT code, CLI command contracts, static-analysis findings, and Go idioms. Use when working in packages/vm-agent/, packages/cli/, or reviewing Go code changes.
migrate-goldmark-extension-v1-to-v2
Migrate goldmark extension from goldmark v1 to v2.
migrate-goldmark-app-v1-to-v2
Migrate your application from goldmark v1 to v2.