memento:init

memento:init is a command for Claude Code from Aiyo28/memento-os. It costs 29 tokens per session (1,465 once invoked), scanned A, original, MIT.

A project setup command for Memento OS, a system that stores project decisions and context for use in later coding-agent sessions. It creates the memory structure and records an initial project artifact.

In plain words
What is it for?
Use it once per project to choose where memory is stored, describe what you are building, detect existing project details, and capture the first decision or conclusion.
Why use it?
A new project has no organized place for persistent context, so important decisions can be lost between sessions. This command creates that starting structure.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the memento plugin — 7 skills, 2 commands, 3 hooks shipped together

Good fit Use it once per project to choose where memory is stored, describe what you are building, detect existing project details, and capture the first decision or conclusion.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/aiyo28/memento-os/init
Install

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.

Clone the repo
git clone --depth 1 https://github.com/Aiyo28/memento-os

Made for: Claude Code.

Or install memento, the plugin that ships this one along with the rest of its 7 skills, 2 commands, 3 hooks.

Wrote 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.

agentmods badge for memento:init

README.md
[![agentmods](https://agentmods.dev/badge/commands/aiyo28/memento-os/init/github.svg)](https://agentmods.dev/commands/aiyo28/memento-os/init)
Your own site
<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.

agentmods 80×15 button for memento:init

Your own site · 80×15
<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>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,465 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 20d ago against content hash 49eb6b4b4ab1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

commands/init.md · 215 lines

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.md already exists → "Memento OS is already initialized here. Run /memento:recall instead."
  • If .memento/config.yaml exists → same

Check for existing project context:

  • If CLAUDE.md exists → read it for project name and context
  • If package.json / Cargo.toml / pyproject.toml exists → 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:

  1. Extract a conclusion from their answer
  2. Generate an invalidation trigger ("invalidates if...")
  3. Assign priority: default settled unless it's clearly architectural (then critical)
  4. Present: "I'll capture this as: [D] {conclusion} — invalidates if {trigger} [{priority}] [{today}]"
  5. Confirm or adjust

Step 4: Create Structure

Read the full file on GitHub · 215 lines

Changes

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.

  1. 20d ago First seen · 215 lines · 29 tokens per session scan A 49eb6b4b4ab1

Subscribe to this mod's changes

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.

Related

memento:init compared with commands from other repositories

memento:init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memento:initAiyo28/memento-osCommand420d agoMITA29Claude Code
tree-ring-captureTerminallyLazy/tree-ring-memory-claude-pluginCommand02mo agoMITA13Claude Code
tree-ring-auditTerminallyLazy/tree-ring-memory-claude-pluginCommand02mo agoMITA13Claude Code
tree-ring-dox-syncTerminallyLazy/tree-ring-memory-claude-pluginCommand02mo agoMITA16Claude Code
tree-ring-recallTerminallyLazy/tree-ring-memory-claude-pluginCommand02mo agoMITA12Claude Code
tree-ring-statusTerminallyLazy/tree-ring-memory-claude-pluginCommand02mo agoMITA12Claude Code
recallplastic-labs/honchoCommand8.3k5d agoAGPL-3.0A15Claude Code, Cursor