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.
git clone --depth 1 https://github.com/marcelopaniza/mempennyWrote 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/commands/marcelopaniza/mempenny/memory-shard-roll)<a href="https://agentmods.dev/commands/marcelopaniza/mempenny/memory-shard-roll"><img src="https://agentmods.dev/badge/commands/marcelopaniza/mempenny/memory-shard-roll/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/commands/marcelopaniza/mempenny/memory-shard-roll"><img src="https://agentmods.dev/badge/commands/marcelopaniza/mempenny/memory-shard-roll.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00038 | $0.05052 |
| Opus 5.5 | $0.00015 | $0.02021 |
| Sonnet 5.5 | $0.00008 | $0.01010 |
| Haiku 4.5 | $0.00004 | $0.00505 |
Grade A, and why
memory-shard-roll 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Roll closed calendar years out of a log-topic file (worklog.md, support.md, or decisions.md, or an already-open <topic>.md that used to be a shard's parent) into a locked, permanent <topic>-YYYY.md shard, once the open file has grown past its ceiling. See docs/memory-taxonomy-design.md §2 for the sharding rule this implements. No writes happen for content in the current (open) year — shard-roll only ever closes a year that has already ended.
Step 1 — Parse arguments
The user invoked this command with: $ARGUMENTS
- First positional argument — absolute path to a log-topic file. Required.
--lang <code>— output language. Default fromMEMPENNY_LOCALEoren.
Step 2 — Load locale strings
Same 2a validation + read pattern as memory-distill.md Step 2. You need apply.* and errors.* keys.
Step 3 — Validate the input file path
Identical validation chain to memory-curate.md Step 3 (regex, symlink pre-check, realpath, regex re-check, confinement to {MEMORY_DIR}, existence), with one difference at the reserved-topic check:
Reserved-topic check: the basename must be exactly one of the three log-topic files — worklog.md, support.md, decisions.md. (Reference-topics never shard — see docs/memory-taxonomy-design.md §2 — if the target is a reference-topic, print an error pointing at /mempenny:memory-curate instead and STOP.)
Folder-lock and file-lock checks: identical to memory-curate.md Step 3. If the target file itself is already locked, STOP — a locked file is either already a closed shard (nothing to roll) or explicitly frozen by the user; either way, do not touch it.
Step 4 — Determine closed years
CURRENT_YEAR=$(date -u +%Y)
Determine closed years mechanically — do not read the target file's content into this (the orchestrating) context to figure this out by eye. Every top-level ## YYYY-MM heading whose YYYY is strictly less than $CURRENT_YEAR belongs to a closed year — the year has fully ended, this is a fact, not a judgment call — but "which lines are real headings" is exactly as mechanical a question, and should be answered the same fence-aware way Step 7's apply script answers it, not by an LLM skimming the file (a heading-shaped line quoted inside a fenced code example must not be mistaken for a real one):
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.
- 1mo ago First seen · 321 lines · 38 tokens per session scan A 36500dc0c8ed
memory-shard-roll is a command published in the GitHub repository marcelopaniza/mempenny (2 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 5,052 once invoked, about $0.0002 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-31.
Other commands, from other repositories
remember
Write-side memory: stores decisions, patterns, and outcomes in the MCP memory knowledge graph as entities with typed observations and relations. Use when something worth persisting across sessions was just learned or decided. To search or read existing memory, invoke memory; to debug retrieval internals…
memory
Read-side memory operations on the knowledge graph: search past decisions and patterns, load session context, view decision timelines, render Mermaid graph visualizations. Subcommands: search, load, history, viz, status. Use when finding or reviewing what memory already holds. For storing new knowledge instead, invoke…
dream
Nightly memory consolidation: prunes stale entries, merges duplicates, resolves contradictions, rebuilds the MEMORY.md index. Use when memory files accumulated over many sessions need cleanup. New decisions get stored by remember; searches run through memory; internals live in memory-fabric.
instinct-import
Import instincts from external sources.
learn
Extract patterns and learnings from current session.
mempalace-status
Show the current state of your memory palace — wings, rooms, drawer counts, and suggestions.