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 romiluz13/auto-pi --skill memory-compoundinggit clone --depth 1 https://github.com/romiluz13/auto-piWrote 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/romiluz13/auto-pi/memory-compounding)<a href="https://agentmods.dev/skills/romiluz13/auto-pi/memory-compounding"><img src="https://agentmods.dev/badge/skills/romiluz13/auto-pi/memory-compounding/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/romiluz13/auto-pi/memory-compounding"><img src="https://agentmods.dev/badge/skills/romiluz13/auto-pi/memory-compounding.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.00041 | $0.00671 |
| Opus 5.5 | $0.00016 | $0.00268 |
| Sonnet 5.5 | $0.00008 | $0.00134 |
| Haiku 4.5 | $0.00004 | $0.00067 |
Grade A, and why
memory-compounding 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.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Memory Compounding
Memory is an index, not a transcript. Without review it accumulates stale entries that mislead future work. This skill is the discipline for keeping memory sharp, not just large.
When to use
- Monthly memory hygiene (AGENTS.md: "review both, prune stale entries").
- You notice the same gotcha recorded 3+ times.
- A memory entry contradicts the current code (trust the code).
- After a non-trivial debug/build cycle that produced a reusable learning.
The 5-outcome review rubric
For each entry in ~/.pi/agent/pi-hermes-memory/MEMORY.md, USER.md, failures.md, and the SQLite memories table (via memory_search), apply exactly one outcome:
| Outcome | When | Action |
|---|---|---|
| Keep | Accurate + useful | Leave as-is |
| Update | Correct but incomplete | Add the missing detail |
| Consolidate | Same lesson appears multiple times | Merge into one entry, remove duplicates |
| Replace | Outdated or superseded by current code | Replace with the current truth |
| Delete | No longer applies (framework changed, code removed) | Remove |
The promotion rule
When the same gotcha appears 3+ times in failures.md or across memory entries, promote it: write a dedicated reference file or a new skill section. A lesson that keeps recurring is a pattern, not a one-off — it earns a permanent home.
Solution docs (durable cross-project learnings)
After any non-trivial debug/build cycle, evaluate whether to write a solution doc to docs/solutions/:
- Write if: the problem took 3+ hypotheses to solve, OR the bug pattern appears in 3+ files, OR the solution contradicts a common assumption.
- Skip if: the fix was mechanical (typo, import error, one-line change).
Solution doc format:
# [Problem Title]
Category: debugging | architecture | testing | workflow | conventions
Tags: [comma-separated]
Date: YYYY-MM-DD
## Problem
[symptoms, not just the error message]
## What Didn't Work
[failed hypotheses and why]
## Solution
[what worked — with code example]
## Why
[the underlying principle]
## Prevention
[how to prevent this class of problem]
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 · 66 lines · 41 tokens per session scan A 389fb4896a83
memory-compounding is a skill published in the GitHub repository romiluz13/auto-pi (10 stars, last pushed 3mo ago), licensed MIT. It adds 41 tokens to every session and 671 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-30.
memory-compounding compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memory-compoundingromiluz13/auto-pi | Skill | 10 | 3mo ago | MIT | A | 41 | Claude Code, Codex |
| codebase-memorynarumiruna/pi-extensions | Skill | 827 | today | MIT | A | 98 | Claude Code, Codex |
| accordion-context-foldinga-Fig/Accordion | Skill | 249 | today | MIT | A | 102 | Claude Code, Codex |
| accordion-context-recalla-Fig/Accordion | Skill | 249 | today | MIT | A | 89 | Claude Code, Codex |
| agy-session-askw-winter/dot314 | Skill | 143 | today | MIT | A | 65 | Claude Code, Codex |
| memory-layerGeneGulanesJr/LaPis | Skill | 59 | 5d ago | MIT | A | 29 | Claude Code, Codex |
| lapisGeneGulanesJr/LaPis | Skill | 59 | 5d ago | MIT | A | 32 | Claude Code, Codex |