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/Aiyo28/memento-osWrote 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/aiyo28/memento-os/init)<a href="https://agentmods.dev/commands/aiyo28/memento-os/init"><img src="https://agentmods.dev/badge/commands/aiyo28/memento-os/init/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/aiyo28/memento-os/init"><img src="https://agentmods.dev/badge/commands/aiyo28/memento-os/init.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.00029 | $0.01465 |
| Opus 5.5 | $0.00012 | $0.00586 |
| Sonnet 5.5 | $0.00006 | $0.00293 |
| Haiku 4.5 | $0.00003 | $0.00146 |
Grade A, and why
memento:init 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 20d 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 — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/memento init
Set up persistent memory for this project. 3 questions, 30 seconds, your first artifact captured.
Flow
Step 0: Detect Environment
PROJECT_ROOT=$(pwd)
PROJECT_NAME=$(basename "$PROJECT_ROOT")
Check for existing memento setup:
- If
_context.mdalready exists → "Memento OS is already initialized here. Run/memento:recallinstead." - If
.memento/config.yamlexists → same
Check for existing project context:
- If
CLAUDE.mdexists → read it for project name and context - If
package.json/Cargo.toml/pyproject.tomlexists → extract project name and tech stack
Step 1: Where to Store Memory
Auto-detect and confirm:
MEMENTO OS — Store conclusions, not notes.
Memory location: ./{project-name}/memento/
> Is this correct? (Y to confirm, or enter a different path)
If $ARGUMENTS was provided, use that path instead of asking.
Default: ./memento/ in the project root. Add to .gitignore if the user wants private memory (ask).
Step 2: What Are You Building?
What are you building? (1-2 sentences)
>
Use AskUserQuestion. This becomes the summary field in _context.md frontmatter.
If CLAUDE.md or project config was found in Step 0, pre-fill and ask to confirm:
I found this in your CLAUDE.md: "{extracted description}"
Is this accurate, or would you describe it differently?
Step 3: First Artifact — The Hardest Decision
What's the hardest decision you've already made on this project?
(tech stack choice, architecture direction, what NOT to build — anything)
>
Use AskUserQuestion. This becomes the first [D] artifact.
After the user answers:
- Extract a conclusion from their answer
- Generate an invalidation trigger ("invalidates if...")
- Assign priority: default
settledunless it's clearly architectural (thencritical) - Present: "I'll capture this as:
[D] {conclusion} — invalidates if {trigger} [{priority}] [{today}]" - Confirm or adjust
Step 4: Create Structure
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.
- 20d ago First seen · 215 lines · 29 tokens per session scan A 49eb6b4b4ab1
memento:init is a command published in the GitHub repository Aiyo28/memento-os (4 stars, last pushed 20d ago), licensed MIT. It adds 29 tokens to every session and 1,465 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-11-10.
memento:init compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memento:initAiyo28/memento-os | Command | 4 | 20d ago | MIT | A | 29 | Claude Code |
| tree-ring-captureTerminallyLazy/tree-ring-memory-claude-plugin | Command | 0 | 2mo ago | MIT | A | 13 | Claude Code |
| tree-ring-auditTerminallyLazy/tree-ring-memory-claude-plugin | Command | 0 | 2mo ago | MIT | A | 13 | Claude Code |
| tree-ring-dox-syncTerminallyLazy/tree-ring-memory-claude-plugin | Command | 0 | 2mo ago | MIT | A | 16 | Claude Code |
| tree-ring-recallTerminallyLazy/tree-ring-memory-claude-plugin | Command | 0 | 2mo ago | MIT | A | 12 | Claude Code |
| tree-ring-statusTerminallyLazy/tree-ring-memory-claude-plugin | Command | 0 | 2mo ago | MIT | A | 12 | Claude Code |
| recallplastic-labs/honcho | Command | 8.3k | 5d ago | AGPL-3.0 | A | 15 | Claude Code, Cursor |