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 shdennlin/agent-plugins/plugin install digestWrote 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/shdennlin/agent-plugins/explain)<a href="https://agentmods.dev/commands/shdennlin/agent-plugins/explain"><img src="https://agentmods.dev/badge/commands/shdennlin/agent-plugins/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/shdennlin/agent-plugins/explain"><img src="https://agentmods.dev/badge/commands/shdennlin/agent-plugins/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.00041 | $0.02461 |
| Opus 5.5 | $0.00016 | $0.00984 |
| Sonnet 5.5 | $0.00008 | $0.00492 |
| Haiku 4.5 | $0.00004 | $0.00246 |
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 5d 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 — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Explain Command
Turn an investigation into understanding. explain covers the current state — what something is, how it works end-to-end, why it was designed this way, where a bug comes from — and a change — what a pull request, a branch, or the current branch does and why.
- Default, every target (path, symbol, question,
#PR, branch, current branch, the conversation's findings): a self-contained HTML explainer; the reply is a short conclusion plus the file path. --print: the answer in the chat and no file: a card for a change target, a concise answer for a state target.--teach: a short, read-only lesson in chat.
MANDATORY FIRST STEP — DO NOT SKIP
You MUST run this BEFORE doing anything else. The script parses the arguments, classifies the target, and prints a JSON object. Never classify the target or parse flags yourself.
"${CLAUDE_PLUGIN_ROOT}/scripts/classify-target.sh" <<'DIGEST_EXPLAIN_ARGS_9f3a'
$ARGUMENTS
DIGEST_EXPLAIN_ARGS_9f3a
If the script exits non-zero, show its stderr verbatim and stop.
If --help or -h was in the arguments, the script prints the help text and exits 0. Show it verbatim and stop.
The JSON has: audience, teach, print, forced, target, kind (file | pr | branch | symbol | question | empty), slug, resolved_line, branch, base, on_base, diff_empty, gh_ok.
Instructions
Step 1: Say how the target was read
Print resolved_line as the first line of your reply, unchanged. (For empty, print the line from the stage you land on in Step 2.)
Step 2: Select the mode
teachis true → Teach mode (inline). Read the Teach mode section of${CLAUDE_PLUGIN_ROOT}/skills/explain/SKILL.mdand follow it with the JSON. Reply in chat and stop.kindisempty→ three stages, first match wins:- The current conversation contains an investigation, finding, or analysis worth explaining → print
解析為:conversation, then Conversation mode. - Else,
on_baseis false,baseis not empty, anddiff_emptyis false → print解析為:current-branch <branch> vs <base>, then Change mode with target kindcurrent-branchand targetHEAD. - Else print exactly this and stop (no file, no dispatch):
Nothing to explain from this conversation yet. Pass a path, symbol, question, #PR, or branch: /digest:explain <target>
- The current conversation contains an investigation, finding, or analysis worth explaining → print
kindisprandgh_okis false → print this and stop:gh is unavailable or not logged in, so PR #<n> cannot be read. Pass the branch name instead: /digest:explain <branch>kindisbranchandbaseis empty → print this and stop:No base branch (develop or main) found, so <target> cannot be compared. Ask a question about it instead: /digest:explain "<question>"kindisbranchand (on_baseis true ordiff_emptyis true) → print this and stop:<target> has no changes against <base>, so there is nothing to summarize.kindisprorbranch→ Change mode.kindisfile,symbol, orquestion→ Investigation mode (state target).
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.
- 5d ago Changed · +14 lines · +10 tokens per session 5441932ec81a
- 20d ago Changed · +23 lines 2e9127d8eacd
- 3mo ago First seen · 125 lines · 31 tokens per session scan A 18f2c9bb185d
explain is a command published in the GitHub repository shdennlin/agent-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 41 tokens to every session and 2,461 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 |
|---|---|---|---|---|---|---|---|
| explainshdennlin/agent-plugins | Command | 3 | 5d ago | MIT | A | 41 | Claude Code |
| prep-rolefourleafai/clover-public | Command | 8 | 10d ago | MIT | A | 0 | Claude Code |
| start-10-1minicoohei/ai-agent-camp | Command | 346 | 1mo ago | none | A | 2 | Claude Code |
| start-0-8minicoohei/ai-agent-camp | Command | 346 | 1mo ago | none | A | 2 | Claude Code |
| start-1kimsanguine/AI_PM | Command | 59 | 5d ago | none | A | 0 | Claude Code |
| startruvnet/flow-nexus | Command | 108 | 24d ago | none | A | 0 | Claude Code |
| setup-vercel.esminicoohei/ai-agent-camp | Command | 346 | 1mo ago | none | B | 2 | Claude Code |