memory-init

memory-init is a command for Claude Code from fmflurry/settings-opencode. It costs 23 tokens per session (251 once invoked), scanned A, a copy of memory-init, MIT.

A command that creates a split project-memory structure, including a short AGENTS.md, an index, context files, decision records, and a glossary. A glossary is a list of shared terms and their meanings.

In plain words
What is it for?
Use it to initialize project memory and check the result with the project's memory-lint command.
Why use it?
It gives a new project a consistent place for instructions, technical context, and past decisions without overwriting existing files.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions AGENTS.md.

Good fit Use it to initialize project memory and check the result with the project's memory-lint command.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fmflurry/settings-opencode/memory-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/fmflurry/settings-opencode

Made for: Claude Code.

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 memory-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/fmflurry/settings-opencode/memory-init/github.svg)](https://agentmods.dev/commands/fmflurry/settings-opencode/memory-init)
Your own site
<a href="https://agentmods.dev/commands/fmflurry/settings-opencode/memory-init"><img src="https://agentmods.dev/badge/commands/fmflurry/settings-opencode/memory-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 memory-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/fmflurry/settings-opencode/memory-init"><img src="https://agentmods.dev/badge/commands/fmflurry/settings-opencode/memory-init.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 251 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 100% copy Near-identical to another mod 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.00251
Opus 5.5 $0.00009 $0.00100
Sonnet 5.5 $0.00005 $0.00050
Haiku 4.5 $0.00002 $0.00025

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

Security

Grade A, and why

memory-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 26d 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.

Origin

This is a copy

100% identical to memory-init — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/memory-init.md · 22 lines

What it actually says

CC: delegate to writer

/memory-init

Scaffold split project memory in the current project: $ARGUMENTS

Load the project-memory skill and follow its /memory-init section. It creates:

  • a short root AGENTS.md (about 80 lines at most: stable rules and pointers only)
  • docs/memory/INDEX.md (one line per doc)
  • docs/memory/contexts/<bounded-context>.md (read only when a task touches that bounded context)
  • docs/memory/decisions/NNNN-<slug>.md (ADRs; immutable; a replaced ADR is marked superseded and kept)
  • docs/memory/glossary.md

Each memory doc carries owner, reviewed (YYYY-MM-DD), and refs (files or file#symbol) frontmatter. Never overwrite an existing file. Finish with agent-harness memory-lint and paste its output.

When FMFLURRY_MEMORY=off, say that project memory is off and stop.

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. 26d ago First seen · 22 lines · 23 tokens per session scan A 718e499a65a2

Subscribe to this mod's changes

memory-init is a command published in the GitHub repository fmflurry/settings-opencode (170 stars, last pushed 25d ago), licensed MIT. It adds 23 tokens to every session and 251 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to memory-init, differing in 0 lines, and is treated as a copy.

Related

memory-init compared with commands from other repositories

memory-init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-initfmflurry/settings-opencodeCommand17025d agoMITA23Claude Code
minutes-ideassilverstein/minutesCommand1.6ktodayMITA48Claude Code, OpenCode
learnReflexioAI/claude-smartCommand797yesterdayApache-2.0A14Claude Code
memory-storeverygoodplugins/mcp-automemCommand675d agoMITA10Claude Code
analyze-contextRohiRIK/OpenLtmCommand30todayMITA39Claude Code
recallnaimkatiman/continuous-improvementCommand113d agoMITA44Claude Code
cc-memoryTheLobbi/claudeCommand221mo agoMITA0Claude Code