mb-init

A repository setup command that hands Memory Bank bootstrapping or syncing to an existing DevRails checkout. Memory Bank is the project's stored workflow and planning information.

In plain words
What is it for?
Use it to create Memory Bank files in a repository or synchronize them, with an optional update to DevRails command skills.
Why use it?
It prevents partial or conflicting setup by using the external installer that owns the process and checks existing files. If that checkout is unavailable, it stops instead of guessing.

Command

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.

agentmods
npx agentmods add commands/nicelight/devrails-26/mb-init
Clone the repo
git clone --depth 1 https://github.com/nicelight/DevRails-26
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 555 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00016 $0.00555
Opus 5 $0.00008 $0.00278
Sonnet 5 $0.00003 $0.00111
Haiku 4.5 $0.00002 $0.00056

Measured 2d ago against content hash f218d6a6e414, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mb-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 2d 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.

skills/_shared/references/commands/mb-init.md · 56 lines

What it actually says

/mb-init — Route external Memory Bank bootstrap

node <devrails-checkout>/scripts/install-framework.mjs --bootstrap-only --target <target-repo> --yes
  1. For an explicit framework sync request on an existing target, update runtime command skills and Memory Bank managed assets from the same prepared source copy:

    node <devrails-checkout>/scripts/install-framework.mjs --bootstrap --sync --target <target-repo> --yes
    
  2. --bootstrap-only --sync repairs only Memory Bank managed assets and does not update runtime command skills. Do not present it as a full framework sync.

  3. Do not run local bootstrap logic, copy a helper into the target, install a dependency, or create the skeleton manually. The external installer owns bootstrap and its existing target-file safety policy.

  4. If the DevRails checkout is unknown or unavailable, stop with a blocker: ask the operator to provide an available checkout path or run the external installer action, then rerun /mb-init. Do not present a placeholder as an executable command.

<handoff_contract>

  • After a successful external bootstrap or sync, rerun /mb-init to confirm .memory-bank/ is present.
  • If the Memory Bank is present and no sync was requested, make no changes and hand off to /start only when its SKILL.md exists in the active .agents/skills/ or .claude/skills/ runtime surface. Otherwise report that the skeleton is ready and stop; do not claim /start is available. Runtime command installation remains an explicit external installer action. </handoff_contract>
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. 2d ago First seen · 56 lines · 16 tokens per session scan A f218d6a6e414

Subscribe to this mod's changes

mb-init is a command published in the GitHub repository nicelight/DevRails-26 (22 stars, last pushed 5d ago), licensed MIT. It adds 16 tokens to every session and 555 once invoked, about $0.0001 per session on Opus 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.