drive

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

A command that repeatedly follows a goal file through a fixed decision loop until the work is complete or a stop condition is reached.

In plain words
What is it for?
Use it to run multi-step work with a defined route, phase, token budget, and maximum number of cycles.
Why use it?
It turns a goal into explicit next actions and checks that the goal file is present and valid before proceeding.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is # shellcheck source=../scripts/_lib.sh.

Good fit Use it to run multi-step work with a defined route, phase, token budget, and maximum number of cycles.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/fockus/skill-memory-bank
agentmods
npx agentmods add commands/fockus/skill-memory-bank/drive

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 drive

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/drive"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/drive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 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,197 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.00050 $0.03197
Opus 5.5 $0.00020 $0.01279
Sonnet 5.5 $0.00010 $0.00639
Haiku 4.5 $0.00005 $0.00320

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

Security

Grade A, and why

drive 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 1mo 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/drive.md · 197 lines

How it starts

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

/mb drive

Drive a goal file to completion in two phases: planning with the user (every acceptance criterion gets its plans, specs, QA decision or check, one batch of approvals), then execution without the user, where scripts/mb-drive.sh decides what runs next and /mb work and /mb team do the running.

You are the runtime. mb-drive.sh prints exactly ONE action per next call and dispatches nothing itself. You run the action, report it with returned, call next again, and stop on a stop_* action. State lives in one run file per drive, <bank>/.drive/<run_id>.json, so a resumed or compacted session continues where it left off.

/mb drive [--goal PATH] [--budget TOK] [--serial] [--host-serial] [--resume [RUN_ID]]
Flag Meaning
--goal PATH Goal file (absolute or bank-relative); default <bank>/goal.md
--budget TOK Token budget of this run (mb-work-budget.sh slot under the run id)
--serial Never run items in parallel: every item goes through /mb work
--host-serial This host runs one dispatch at a time (§7)
--resume [RUN_ID] Continue a stored run instead of starting one (§8)

1. Start or resume

Shell variables do not survive between tool calls: every later command writes the run id literally (or the selection takes the only live run). Start a new run with the user's flags:

SKILL_DIR="${MB_SKILLS_ROOT:-${SKILL_DIR:-$HOME/.claude/skills/memory-bank}}"
[ -f "$SKILL_DIR/scripts/_lib.sh" ] || { echo "mb: skill bundle not found at $SKILL_DIR — set MB_SKILLS_ROOT" >&2; exit 2; }
# shellcheck source=../scripts/_lib.sh
. "$SKILL_DIR/scripts/_lib.sh"
BANK="$(mb_resolve_path "${BANK:-}")"

# The user's flags: GOAL=<path> BUDGET=<tokens> SERIAL=1 HOST_SERIAL=1
args=()
[ -z "${GOAL:-}" ] || args+=(--goal "$GOAL")
[ -z "${BUDGET:-}" ] || args+=(--budget "$BUDGET")
[ "${SERIAL:-0}" != 1 ] || args+=(--serial)
[ "${HOST_SERIAL:-0}" != 1 ] || args+=(--host-serial)

# Refuses (exit 1) without a bank, without a goal (the default goal.md is scaffolded from
# templates/goal.md first), on a goal that fails scripts/mb-goal-validate.sh (its hints on stderr),
# and on a goal another live run already drives (the message names that run).
RUN_ID="$(bash "$SKILL_DIR/scripts/mb-drive.sh" start --bank "$BANK" ${args[@]+"${args[@]}"})" || exit $?
echo "run_id=$RUN_ID"

Read the full file on GitHub · 197 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. 1mo ago Changed · +15 lines · +10 tokens per session b610d10741db
  2. 1mo ago Changed · +25 tokens per session 7b3c92712876
  3. 2mo ago Changed · +1 lines 3e2c13994183
  4. 2mo ago Changed · -4 lines ba794fa1646a
  5. 3mo ago First seen · 185 lines · 15 tokens per session scan A 9d61ab512b58

Subscribe to this mod's changes

drive is a command published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed 5d ago), licensed MIT. It adds 50 tokens to every session and 3,197 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

drive compared with commands from other repositories

drive next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
drivefockus/skill-memory-bankCommand335d agoMITA50Claude Code
research-verifydrobins25/craftCommand74yesterdayMITA28Claude Code
pauseToRvaLDz/trailheadCommand37yesterdayMITA11Claude Code
auditToRvaLDz/trailheadCommand37yesterdayMITA28Claude Code
unity-migrateXeldarAlz/everything-claude-unityCommand257mo agoMITA26Claude Code
unity-testXeldarAlz/everything-claude-unityCommand257mo agoMITA34Claude Code
specyknnv/brownspecCommand23mo agoMITA20Claude Code