Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add josix/agent-flow/plugin install agent-flowWrote 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.
[](https://agentmods.dev/commands/josix/agent-flow/explain)<a href="https://agentmods.dev/commands/josix/agent-flow/explain"><img src="https://agentmods.dev/badge/commands/josix/agent-flow/explain/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.
<a href="https://agentmods.dev/commands/josix/agent-flow/explain"><img src="https://agentmods.dev/badge/commands/josix/agent-flow/explain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.02730 |
| Opus 5.5 | $0.00018 | $0.01092 |
| Sonnet 5.5 | $0.00009 | $0.00546 |
| Haiku 4.5 | $0.00004 | $0.00273 |
Grade A, and why
explain 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.
How it starts
The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Explain Command
Generate an interactive HTML explainer for a codebase topic. Riko gathers the relevant code scope, Senku designs a 3–5 screen teaching arc, Speedwagon authors the module brief and HTML fragment, and the assembler concatenates everything into explain-out/index.html — a file you can open directly in a browser.
Uses .claude/deep-dive.local.md when present (richer context); without it, Riko orients from the README and entry points. The graphify knowledge graph (graphify-out/graph.json) is used if present; absent it degrades gracefully.
Argument Parsing
$ARGUMENTS is the raw argument string passed to this command.
- If
$ARGUMENTSis empty → print usage error and stop:Usage: /agent-flow:explain <topic> Example: /agent-flow:explain how does orchestration work Tip: run /deep-dive first for richer context. - If
$ARGUMENTSstarts with--revise→ revise mode: the slug is the word right after--revise(e.g.--revise orchestration-pipeline→orchestration-pipeline), used as-is — don't run the derivation below on it. Skip to Revise Mode. - Otherwise → normal mode:
$ARGUMENTSis the full topic string.
Slug derivation (normal mode; compute once, use throughout all phases):
slug=$(echo "$ARGUMENTS" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | LC_ALL=C tr -cd 'a-z0-9-' | sed 's/--*/-/g; s/^-//; s/-$//' | cut -c1-40)
if ! echo "$slug" | grep -q '[a-z0-9]'; then
# Topic has no ASCII a-z0-9 chars (e.g. CJK topics) — fall back to a deterministic hash slug.
slug="topic-$(printf '%s' "$ARGUMENTS" | cksum | cut -d' ' -f1)"
fi
Reader language: READER_LANG is the BCP-47 tag of the language the topic ($ARGUMENTS) is written in (for example en or zh-TW), defaulting to en. Decide it once here and pass it to Phases 2–3.
Precondition Checks
Run these checks before dispatching any agents:
if [[ ! -f ".claude/deep-dive.local.md" ]]; then
echo "Note: .claude/deep-dive.local.md not found. Continuing without it. For richer context run /deep-dive first."
fi
if [[ ! -f "graphify-out/graph.json" ]]; then
echo "Note: graphify-out/graph.json not found. Continuing in degraded mode (no graph context)."
fi
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.
- 1mo ago Changed · +5 lines fa135c275a5e
- 2mo ago Changed · +39 lines scan B → A 39616e42decb
- 3mo ago First seen · 199 lines · 44 tokens per session scan B c49edb9f0b48
explain is a command published in the GitHub repository josix/agent-flow (8 stars, last pushed 12d ago), licensed MIT. It adds 44 tokens to every session and 2,730 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-31.
explain compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| explainjosix/agent-flow | Command | 8 | 12d ago | MIT | A | 44 | Claude Code |
| ecc-guideaffaan-m/ECC | Command | 314k | yesterday | MIT | A | 23 | Claude Code |
| pm-helpVandanaAjayDubey111/great-pm | Command | 3 | 2mo ago | MIT | A | 17 | Claude Code |
| helpSmart-AI-Memory/attune-ai | Command | 12 | today | Apache-2.0 | A | 9 | Claude Code |
| diagram-from-urlmanutej/luxor-claude-marketplace | Command | 64 | 5mo ago | none | A | 12 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |