mb-garden

mb-garden is a command for Claude Code from nicelight/DevRails-26. It costs 0 tokens per session (1,402 once invoked), scanned A, original, MIT.

A command for regularly maintaining a Memory Bank, a set of project notes and specifications used to preserve context. It scans and classifies issues involving stale references, conflicting rules, links, and unfinished notes.

In plain words
What is it for?
Use it to inspect Memory Bank indexes, specifications, behavior files, Constitution references, links, and TODO or gap markers during project maintenance.
Why use it?
It helps detect drift and contradictions before they mislead future work. The initial scan is read-only, so findings are reviewed before changes are made.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; mentions AGENTS.md.

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-garden
Clone the repo
git clone --depth 1 https://github.com/nicelight/DevRails-26

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-garden

README.md
[![agentmods](https://agentmods.dev/badge/commands/nicelight/devrails-26/mb-garden.svg)](https://agentmods.dev/commands/nicelight/devrails-26/mb-garden)
Your own site
<a href="https://agentmods.dev/commands/nicelight/devrails-26/mb-garden"><img src="https://agentmods.dev/badge/commands/nicelight/devrails-26/mb-garden.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,402 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.1 $0.00000 $0.01402
Opus 5 $0.00000 $0.00701
Sonnet 5 $0.00000 $0.00280
Haiku 4.5 $0.00000 $0.00140

Measured 6d ago against content hash 3216a1f9de71, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mb-garden 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 6d 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-garden.md · 110 lines

How it starts

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

/mb-garden — Memory Bank maintenance

1) Read-only scan и classification

  • Сначала проведи read-only scan. До классификации findings ничего не меняй.
  • Пункты scan ниже являются coverage criteria, а не обязательным порядком. Выбери порядок, инструменты и глубину проверки по фактическому состоянию Memory Bank, но покрой каждую применимую surface до классификации её finding.
  • Пробеги .memory-bank/index.md и роутеры в подпапках.
  • Прочитай .memory-bank/spec-index.md и проверь, что active specs используют Type | Path | Status | Scope | Change route, один active canonical path на concern и direct feature/task links без used_by/file-owner metadata.
  • Если есть .memory-bank/constitution.md, проверь ссылки и упоминания Constitution в MBB, spec-backbone, spec-index, workflows, AGENTS.md и generated plans.
  • Найди stale или contradictory Constitution references: старые пути, alias-команды, legacy task/risk routing, или правила, противоречащие текущей Constitution.
  • Найди Known gaps / TBD / TODO, но не закрывай их и не превращай в задачи от имени garden.
  • Для linked .memory-bank/behavior-specs/*.behavior.json проверь feature links и task source_artifacts. Stale examples классифицируй как notes в findings, если обычный AC/spec/verification source не сломан.
  • Сверь .memory-bank/skills/index.md с реально установленными .agents/skills/*/SKILL.md и .claude/skills/*/SKILL.md. Реестр должен использовать canonical runtime command names без второй alias/package surface.
  • Если есть .memory-bank/scripts/mb-lint.mjs, initial lint можно использовать как read-only источник findings. Он не заменяет final lint после edits.
  • Раздели findings на две группы:
    • automatic: только stale/broken links и несогласованные index/router entries, для которых существует один однозначный target и не требуется менять смысл;
    • blockers: archive/delete/merge, выбор между competing canonical material, TODO/gap-to-task conversion и любые material canonical, task, lifecycle, product, design, contract, security или governance decisions.

Read the full file on GitHub · 110 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. 6d ago First seen · 110 lines · 0 tokens per session scan A 3216a1f9de71

Subscribe to this mod's changes

mb-garden is a command published in the GitHub repository nicelight/DevRails-26 (22 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,402 tokens. 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.