memento:stats

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

A command that reads the memory system's stored artifacts and session records, then displays counts, freshness, pending work, and a memory score.

In plain words
What is it for?
Use it to inspect stored decisions and notes, find stale artifacts, check pending items, and review session streaks.
Why use it?
It gives a quick view of whether project memory is current, complete, and being maintained.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to inspect stored decisions and notes, find stale artifacts, check pending items, and review session streaks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/aiyo28/memento-os/stats
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:stats

README.md
[![agentmods](https://agentmods.dev/badge/commands/aiyo28/memento-os/stats/github.svg)](https://agentmods.dev/commands/aiyo28/memento-os/stats)
Your own site
<a href="https://agentmods.dev/commands/aiyo28/memento-os/stats"><img src="https://agentmods.dev/badge/commands/aiyo28/memento-os/stats/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:stats

Your own site · 80×15
<a href="https://agentmods.dev/commands/aiyo28/memento-os/stats"><img src="https://agentmods.dev/badge/commands/aiyo28/memento-os/stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 756 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.00023 $0.00756
Opus 5.5 $0.00009 $0.00302
Sonnet 5.5 $0.00005 $0.00151
Haiku 4.5 $0.00002 $0.00076

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

Security

Grade A, and why

memento:stats 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/stats.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/memento stats

Show how your memory system is doing — not a report, a pulse check.

Flow

1. Gather Data

Read _context.md Active Reasoning Artifacts table. Count:

  • Total artifacts
  • By type: [D], [I], [E], [S]
  • By priority: critical, volatile, settled, noise
  • Stale count (settled > 90 days, volatile > 30 days)
  • Seeds with met activation conditions

Read Sessions/SESSION_LOG.md if it exists:

  • Total sessions logged
  • Last session date
  • Session streak (consecutive days with sessions)

Read NEXT.md:

  • Pending items count
  • Last updated date

2. Calculate Memory Score

Score out of 10, weighted:

Dimension Weight How to score
Has artifacts 2 0 artifacts = 0, 1-5 = 1, 6-15 = 1.5, 16-24 = 2
Has critical decisions 2 0 critical = 0, 1-3 = 1, 4+ = 2
Recency 2 NEXT.md updated today = 2, this week = 1.5, this month = 1, older = 0.5
No stale artifacts 1.5 0 stale = 1.5, 1-3 stale = 1, 4+ stale = 0
Seeds planted 1 0 seeds = 0, 1-3 = 0.5, 4+ = 1
Session streak 1.5 0 sessions = 0, 1-2 = 0.5, 3-5 = 1, 6+ = 1.5

3. Display

## Memento — {Project Name}

  Score:     {X.X} / 10  {bar: ████░░░░░░}
  Artifacts: {total} ([D]: {n}  [I]: {n}  [E]: {n}  [S]: {n})
  Priority:  {critical} critical  {volatile} volatile  {settled} settled
  Sessions:  {total} logged  |  streak: {n} days
  Stale:     {n} artifacts need review
  Seeds:     {n} planted  |  {n} ready to activate

  Last session: {date}
  NEXT.md:      {date}

If score increased since last check, show: Score: 7.2 / 10 (↑ 0.8 from last check)

4. Suggestions (if score < 7)

Based on lowest-scoring dimension, suggest ONE action:

  • No artifacts → "Run /decide on your next choice to start building memory"
  • No critical decisions → "Your foundational decisions should be marked critical"
  • Stale artifacts → "Run /memento:audit to review stale items"
  • No seeds → "When you defer an idea, capture it as [S] with an activation condition"
  • No recent sessions → "Run /memento:recall to reconnect with your project"

Read the full file on GitHub · 74 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 · 74 lines · 23 tokens per session scan A 129cd565461c

Subscribe to this mod's changes

memento:stats is a command published in the GitHub repository Aiyo28/memento-os (4 stars, last pushed 20d ago), licensed MIT. It adds 23 tokens to every session and 756 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:stats compared with commands from other repositories

memento:stats next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memento:statsAiyo28/memento-osCommand420d agoMITA23Claude 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