mb

mb is a command for Claude Code from fockus/skill-memory-bank. It costs 49 tokens per session (3,358 once invoked), scanned A, original, MIT.

A command for keeping a project's long-term notes, code understanding, and work context in a `.memory-bank` folder.

In plain words
What is it for?
Use it to collect context, search code, inspect dependencies and test coverage, and maintain the project's memory files.
Why use it?
It helps an agent recover project knowledge instead of starting from scratch or relying only on the current conversation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it to collect context, search code, inspect dependencies and test coverage, and maintain the project's memory files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fockus/skill-memory-bank/mb
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/fockus/skill-memory-bank

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 mb

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/mb"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/mb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,358 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.00049 $0.03358
Opus 5.5 $0.00020 $0.01343
Sonnet 5.5 $0.00010 $0.00672
Haiku 4.5 $0.00005 $0.00336

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

Security

Grade A, and why

mb 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 4d 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/mb.md · 118 lines

How it starts

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

Memory Bank — /mb

The /mb command is the single entrypoint for managing project Memory Bank (.memory-bank/).

Subcommands

Arguments: $ARGUMENTS

Determine the subcommand from the first word of $ARGUMENTS. Remaining words are parameters for that subcommand.

$SKILL_DIR below always means the absolute directory containing the loaded SKILL.md (or MB_SKILLS_ROOT); bundled scripts run through it, never through a bare scripts/… path. For bank-dependent operations below (recall, recap, conflicts, consolidate, verify), resolve the bank with the setup block. Set MB_AGENT to the current host id for a global registry. Keep the project as cwd and include this setup in the same shell invocation as the operation. init and bank-independent commands such as user profiles do not require an existing bank; do not run this guard for them. start and done have their own setup in the canonical command files.

SKILL_DIR="${MB_SKILLS_ROOT:-${SKILL_DIR:?Set SKILL_DIR from the loaded skill path}}"
source "$SKILL_DIR/scripts/_lib.sh"
BANK="$(mb_resolve_path)"
if [ ! -d "$BANK" ]; then
  echo "[MEMORY BANK: ABSENT]"
  exit 0
fi
BANK="$(cd "$BANK" && pwd -P)"
export MB_PATH="$BANK"

Subagents below are dispatched by name (the Claude Code form is shown; OpenCode, Codex, and Pi use the tools in SKILL.md § Invocation); the prompt carries only the task data, and the agent's model, effort, and tools come from its installed definition. If your agent cannot dispatch a subagent by name, read $SKILL_DIR/agents/<name>.md plus each partial listed in its compose: frontmatter and pass that text ahead of the prompt.

For the snippets below, parse the remaining user arguments into the named Bash array (ARGS_AFTER_RECAP, ARGS_AFTER_CONFLICTS, or ARGS_AFTER_CONSOLIDATE); use an empty array when omitted. Preserve each argument as a separate element, without eval or shell-string interpolation.

Routing

GraphRAG-lite retrieval routing

Read the full file on GitHub · 118 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. 4d ago Changed 1c3971850fab
  2. 10d ago Changed · -1,675 lines scan B → A 9c5e7ad4109c
  3. 1mo ago Changed · +8 lines 5e0ecb45555a
  4. 1mo ago Changed · +11 lines · +41 tokens per session c9c462b44565
  5. 2mo ago Changed · +3 lines fc3b12d14039
  6. 2mo ago Changed · +17 lines a35961a858c4
  7. 2mo ago Changed · +41 lines 2ee4632fd09e
  8. 2mo ago Changed · +37 lines 0a10f1229da9
  9. 2mo ago Changed · +15 lines f31b158b21c0
  10. 3mo ago First seen · 1,661 lines · 8 tokens per session scan B 70a7bb20ea25

Subscribe to this mod's changes

mb is a command published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed 4d ago), licensed MIT. It adds 49 tokens to every session and 3,358 once invoked, about $0.0002 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-08-30.

Related

mb compared with commands from other repositories

mb next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mbfockus/skill-memory-bankCommand334d agoMITA49Claude Code
unity-session-saveXeldarAlz/everything-claude-unityCommand257mo agoMITA32Claude Code
overviewairmcp-com/mcp-standardsCommand312mo agoMITA0Claude Code
session-memoryairmcp-com/mcp-standardsCommand312mo agoMITA0Claude Code
session-endairmcp-com/mcp-standardsCommand312mo agoMITA0Claude Code
memory-managerairmcp-com/mcp-standardsCommand312mo agoMITA0Claude Code
hive-mind-memoryairmcp-com/mcp-standardsCommand312mo agoMITA0Claude Code