remember

remember is a command for Claude Code, Codex from hamr0/agentic-toolkit. It costs 10 tokens per session (6,340 once invoked), scanned B, a copy of remember, Apache-2.0.

A project-memory command that reviews session notes and recurring problems, then consolidates useful facts into project-local memory files.

In plain words
What is it for?
Use it to maintain MEMORY.md and update AGENT.md with reliable information from previous coding sessions.
Why use it?
It reduces the need to rediscover project rules, decisions, and repeated sources of friction after a session ends or context is lost.

Command for Claude CodeCodex

Written for Codex and Claude Code: reads $CODEX_HOME, but also a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Good fit Use it to maintain MEMORY.md and update AGENT.md with reliable information from previous coding sessions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hamr0/agentic-toolkit/remember
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/hamr0/agentic-toolkit

Made for: Claude Code, Codex.

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 remember

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/hamr0/agentic-toolkit/remember"><img src="https://agentmods.dev/badge/commands/hamr0/agentic-toolkit/remember.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,340 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% 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.00010 $0.06340
Opus 5.5 $0.00004 $0.02536
Sonnet 5.5 $0.00002 $0.01268
Haiku 4.5 $0.00001 $0.00634

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

Security

Grade B, and why

remember scanned grade B with 1 finding 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 5d 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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

- **Not set up** — no `docs/.docs-builder/` directory (docs-builder never ran), or `due` prints "no ledger yet": print one line telling the user to run `/docs-builder reorg`. Never tell them to run `ledger` — it would st
Origin

This is a copy

91% identical to remember — 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.

ai/subagentic/droid/commands/remember.md · 247 lines

How it starts

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

Run friction analysis, then consolidate .factory/stash/*.md + friction antigens into one project-local .factory/remember/MEMORY.md and inject it into AGENTS.md. Friction runs automatically (best-effort) — there is no separate /friction command. A detect-only docs check runs at the end. Why each rule exists: docs/product/remember-README.md.

Rules

  • Simple and scoped: minimal implementation, only the requested outcome.
  • Scripts: call every bundled script (friction.cjs, version-check.cjs, sync-rules.cjs, stub-check.cjs, docs-builder.cjs) by its absolute path — the cwd is the target repo, not this package, so a cwd-relative path fails.
  • Precision over recall: a false antigen loaded via @.factory/remember/MEMORY.md steers every future session — unsure → do not promote; leave it to recurrence.
  • Mid-tier model: steps 2, 3 and 4a use your tool's balanced mid tier — never the cheapest tier, never a vendor model name.
  • Batch stashes: up to 5 stashes per extraction agent, as few agents as possible (3 → 1 agent, 7 → 2); if more than one, run them concurrently.
  • Facts are short rules, not prose: one line, target 160 chars, hard stop 180, stating a rule that changes future behaviour. Events and history are not facts.
  • Never re-read session logs: work from the quotes in antigen_clusters.json.
  • Never hand-compute counts: friction.cjs count does them.
  • Relay script output verbatim, never re-worded (a paraphrase loses the filename the user needs). This covers output meant for the user; JSON a step consumes (e.g. friction.cjs count) is input, not something to relay.
  • Tiers (defined once): High = 5+ distinct sessions → loaded hot via @MEMORY.md; Medium = 3-4 → recorded under Antigens, not loaded; Low = under 3 → ledger observing at 2 sessions, nothing at 1. Grouping consolidates evidence, never elevates it. Never auto-promote below High.

Steps

  1. Run friction first (best-effort — friction analyzes ALL your usage, so point it at the tool's global sessions root, not a per-project directory)

    • Locate friction.cjs — bundled at remember/friction.cjs beside this file (installed or run from the package). If it exists nowhere, skip to step 1 (stash-only) and tell the user it is missing.
    • Check for a newer liteagents (best-effort, one line, never blocking):
      node ~/.factory/commands/remember/version-check.cjs
      
      If that path does not exist, use the directory you resolved for friction.cjs (the two ship side by side). It prints one advice line if the install is behind the registry, else nothing; it exits 0 always, caches 24h, and is bounded to ~2s. If it prints a line, relay it verbatim in the final report; never act on it, never run the install yourself.
    • Script missing from both locations → say so (one line). A failed check (offline, registry down, timeout) stays silent by design; a missing script means an incomplete install.
    • Resolve the global sessions root — probe top-to-bottom, use the first that exists and holds .jsonl files directly or one level down in per-project subdirectories (friction scans exactly those two levels). Never prompt the user.
      # ── Add your own global sessions root at the TOP so it is checked first ──
      ~/.claude/projects/                 # Claude Code
      ~/.factory/projects/                # Droid / Factory
      ~/.config/amp/projects/             # Amp
      ~/.config/opencode/projects/        # opencode
      ~/.codex/sessions/                  # Codex CLI  (use $CODEX_HOME/sessions/ if set)
      ~/.gemini/antigravity-cli/brain/    # Antigravity
      

      Note: friction.cjs parses Claude Code's session schema. The Codex/Antigravity roots will resolve but yield no signals until friction learns their formats — open an issue to request one: https://github.com/hamr0/liteagents/issues

    • Run node <friction.cjs> "<resolved-root>". It writes to .factory/remember/friction/ in the current project. Run it as its own command — nothing chained before or after it — with a 10-minute tool timeout: it scans the whole sessions root and can take a minute or more.
    • On any miss — loud, never silent. If no root resolves, friction errors, or it finds no usable sessions, print this and continue stash-only:

      ⚠️ Friction didn't run — no sessions found. To enable it, open this skill's own file and add your tool's global sessions root to the TOP of the probe list in step 0, then re-run /remember. Consolidating stashes only this time.

Read the full file on GitHub · 247 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. 5d ago Changed · -9 lines 46c0e5bbbdaa
  2. 1mo ago Changed 05466681ec7e
  3. 1mo ago Changed · -367 lines scan A → B f6d21c1b87fe
  4. 2mo ago Changed · +2 lines · -2 tokens per session 0452b4d71fb0
  5. 2mo ago Changed · +68 lines 580914f2f319
  6. 2mo ago First seen · 553 lines · 12 tokens per session scan A 974ec81fffef

Subscribe to this mod's changes

remember is a command published in the GitHub repository hamr0/agentic-toolkit (23 stars, last pushed 3d ago), licensed Apache-2.0. It adds 10 tokens to every session and 6,340 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it B with 1 finding (subtle steering). It is 91% identical to remember, differing in 0 lines, and is treated as a copy.

Related

remember compared with commands from other repositories

remember next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rememberhamr0/agentic-toolkitCommand233d agoApache-2.0B10Claude Code, Codex
contextfengshao1227/ccg-workflowCommand6.0k11d agoMITA23Claude Code
init-workspace-flowgriddynamics/rosettaCommand3825d agoApache-2.0A21Claude Code
auditgmickel/flow-nextCommand735todayMITA30Claude Code
memory-migrategmickel/flow-nextCommand735todayMITA38Claude Code
connecttechnicalpickles/pickled-claude-pluginsCommand138d agoMITA12Claude Code
reflecttechnicalpickles/pickled-claude-pluginsCommand138d agoMITA10Claude Code