playbook

A command set for managing Mochi playbooks, which are saved browser-based procedures. It can list, inspect, run, delete, compare, export, import, and create playbook drafts from a codebase.

In plain words
What is it for?
Use it to maintain playbooks, run them with inputs, search for a matching procedure, export or import bundles, review differences, and check required secret names.
Why use it?
It puts common playbook management tasks in one command interface and can show the result of a run or check for missing secrets without revealing their values.

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/devzonayed/mochi/playbook
Clone the repo
git clone --depth 1 https://github.com/DevZonayed/Mochi
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 423 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.00021 $0.00423
Opus 5 $0.00010 $0.00211
Sonnet 5 $0.00004 $0.00085
Haiku 4.5 $0.00002 $0.00042

Measured yesterday against content hash 40865678f9f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

playbook 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 yesterday.

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.

plugins/qa/commands/playbook.md · 22 lines

What it actually says

Parse $ARGUMENTS as a verb plus arguments:

  • list [--origin=…] [--tag=…] [--verifiable] → call browser_playbook_list with the parsed filters; render as a markdown table.
  • show <id> → call browser_playbook_get; render the meta + summary + steps to the user.
  • run <id> [--input.<name>=<value>] … → call browser_playbook_run with parsed inputs; surface the verdict.
  • delete <id> → call browser_playbook_delete; confirm.
  • match <task description> → call browser_playbook_match; render top hits.
  • seed [--domain=<url>] [--dry-run] → call browser_playbook_seed_from_codebase with the parsed args; render the drafts as a markdown table.
  • secret-check <id> → call browser_playbook_secret_check; render a table of secret names + availability + hints (never values).
  • diff accept <id> --run=<runId> [--step=N --step=M] → call browser_playbook_diff_accept; report which steps were blessed and the new playbook_version.
  • export [--ids=<id1,id2>] [--origin=<host>] [--tag=<tag>] [--out=<path>] → call browser_playbook_export; report bundle path + size.
  • import <path-or-url> [--overwrite] [--rewrite-origin=<host>] → call browser_playbook_import; render the imported/skipped lists.
  • ui → call browser_playbook_dashboard (default open: true); the dashboard opens in the user's active browser session.

If no verb given, render help with these verbs and an example.

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. yesterday First seen · 22 lines · 21 tokens per session scan A 40865678f9f8

Subscribe to this mod's changes

playbook is a command published in the GitHub repository DevZonayed/Mochi (3 stars, last pushed 15d ago), licensed MIT. It adds 21 tokens to every session and 423 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-31.