explain

explain is a command for Claude Code from synaptiai/synapti-marketplace. It costs 38 tokens per session (1,881 once invoked), scanned A, original, Apache-2.0.

A read-only command for explaining why parts of a codebase were built a certain way. It uses recorded decisions and current code changes as context.

In plain words
What is it for?
Use it to ask about implementation rationale, design decisions, and the relationship between a branch's changes and its recorded decisions.
Why use it?
It helps developers understand architecture choices and trade-offs without manually reconstructing the project history.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the flow plugin — 33 skills, 20 commands, 11 agents shipped together

Good fit Use it to ask about implementation rationale, design decisions, and the relationship between a branch's changes and its recorded decisions.

Compare 6 commands from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add synaptiai/synapti-marketplace
Claude Code
/plugin install flow

Made for: Claude Code.

Or install flow, the plugin that ships this one along with the rest of its 33 skills, 20 commands, 11 agents.

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 explain

README.md
[![agentmods](https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/explain/github.svg)](https://agentmods.dev/commands/synaptiai/synapti-marketplace/explain)
Your own site
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/explain"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/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.

agentmods 80×15 button for explain

Your own site · 80×15
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/explain"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/explain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 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,881 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.00038 $0.01881
Opus 5.5 $0.00015 $0.00752
Sonnet 5.5 $0.00008 $0.00376
Haiku 4.5 $0.00004 $0.00188

Measured 25d ago against content hash 2210145f5284, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 25d 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.

plugins/flow/commands/explain.md · 150 lines

How it starts

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

Explain Decisions

Interactive Q&A mode for understanding what was built and why. Read-only — no changes made.

Required Skills

None — explanatory Q&A over journal and diff context. No skill invocations.

Phase 1: Load Context

# Output: `###`-headed sections + KEY=value per
# `references/command-output-format.md`.

printf '%s\n' "### Branch & Issue"
BRANCH=$(git branch --show-current 2>/dev/null)
ISSUE_NUM=$(printf '%s\n' "$BRANCH" | grep -oE 'issue-[0-9]+' | grep -oE '[0-9]+')
printf '%s\n' "BRANCH=$BRANCH"
# Quote parenthesized fallback per command-output-format.md rule 2.
printf '%s\n' "ISSUE_NUM=${ISSUE_NUM:-\"(none)\"}"

printf '%s\n' ""
printf '%s\n' "### Decision Journal"
HELPER="$(__fr="${CLAUDE_PLUGIN_ROOT:-}";[ -x "$__fr/bin/cascade-resolve.sh" ]||__fr=$({ printf '%s\n' plugins/flow;ls -d "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"/plugins/cache/synapti-marketplace/flow/*/ 2>/dev/null|sort -Vr;printf '%s\n' "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugins/marketplaces/synapti-marketplace/plugins/flow"; }|while read -r __p;do [ -x "${__p%/}/bin/cascade-resolve.sh" ]&&{ printf '%s\n' "${__p%/}";break;};done);printf '%s\n' "$__fr")/bin/cascade-resolve.sh"
# journal-dir.sh, beside the cascade helper: the directory every journal
# writer uses, so this reads the journal where it was written.
JOURNAL_DIR=".decisions"
[ -x "$HELPER" ] && JOURNAL_DIR=$("${HELPER%/cascade-resolve.sh}/journal-dir.sh")
[ -n "$JOURNAL_DIR" ] || JOURNAL_DIR=".decisions"
printf '%s\n' "JOURNAL_DIR=$JOURNAL_DIR"
# On a branch whose name contains issue-N the journal is issue-N.md, with its
# monthly auto-log trail. On any other branch it is the session journal of today,
# session-YYYY-MM-DD.md, named by the local calendar day as journal-append.sh
# and journal-record.sh name it, with the session trail of today: a session
# journal holds one day of work with no issue number, not of one branch, and
# files of earlier days are not loaded here.
if [ -n "$ISSUE_NUM" ]; then
  JOURNAL_FILE="$JOURNAL_DIR/issue-$ISSUE_NUM.md"
  AUTOLOG_NAME="issue-$ISSUE_NUM.*.md"
else
  SESSION_DAY=$(date +%Y-%m-%d)
  JOURNAL_FILE="$JOURNAL_DIR/session-$SESSION_DAY.md"
  AUTOLOG_NAME="session-$SESSION_DAY.md"
fi
if [ -f "$JOURNAL_FILE" ]; then
  printf '%s\n' "JOURNAL_FILE=$JOURNAL_FILE"
  printf '%s\n' "JOURNAL_BYTES=$(wc -c < "$JOURNAL_FILE" | tr -d ' ')"
  printf '%s\n' ""
  printf '%s\n' "#### Journal contents"
  cat "$JOURNAL_FILE"
  # The auto-log breadcrumbs live in a local trail. They are context for "what
  # was touched", not decisions, so they are labelled and kept separate from
  # the journal body above rather than inlined into it. A set of files, not
  # one: the issue-scoped trail rotates monthly (a session trail is one file).
  #
  # The heading names where the trail came from rather than asserting it is
  # untracked. The journal dir is read from a TRACKED settings file, so a fork
  # could point it at a tracked path, and this label would then be vouching for
  # content it has not checked.
  AUTOLOG_FILES=0
  printf '%s\n' ""
  printf '%s\n' "#### Auto-log trail ($JOURNAL_DIR/auto-log/)"
  # Listed with find, not a glob: this block runs under zsh on macOS, where a
  # glob that matches nothing aborts the whole block before the loop guard.
  while IFS= read -r AUTOLOG; do
    [ -f "$AUTOLOG" ] || continue
    AUTOLOG_FILES=$((AUTOLOG_FILES + 1))
    printf '%s\n' ""
    printf '%s\n' "##### $(basename "$AUTOLOG")"
    cat "$AUTOLOG"
  done <<AUTOLOG_LIST
$(find "$JOURNAL_DIR/auto-log" -maxdepth 1 -type f -name "$AUTOLOG_NAME" 2>/dev/null | LC_ALL=C sort)
AUTOLOG_LIST
  printf '%s\n' "AUTOLOG_FILES=$AUTOLOG_FILES"
else
  printf '%s\n' "STATE=empty"
fi

printf '%s\n' ""
printf '%s\n' "### Issue Details"
if [ -n "$ISSUE_NUM" ]; then
  gh issue view "$ISSUE_NUM" --json title,body --jq '"TITLE=\"\(.title)\"\nBODY_LENGTH=\(.body | length)"' 2>/dev/null
  printf '%s\n' ""
  printf '%s\n' "#### Issue body"
  gh issue view "$ISSUE_NUM" --json body --jq '.body' 2>/dev/null
else
  printf '%s\n' "STATE=empty"
fi

printf '%s\n' ""
printf '%s\n' "### Branch Diff Summary"
DEFAULT_BRANCH=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' 2>/dev/null || printf '%s\n' "main")
printf '%s\n' "DEFAULT_BRANCH=$DEFAULT_BRANCH"
# Capture so an empty stat (e.g., on the default branch) emits STATE=empty
# rather than a silent heading; prefix raw stat lines with DIFF_STAT=.
DIFF_STAT=$(git diff --stat "$DEFAULT_BRANCH"...HEAD 2>/dev/null)
if [ -z "$DIFF_STAT" ]; then
  printf '%s\n' "STATE=empty"
else
  printf '%s\n' "$DIFF_STAT" | sed 's/^/DIFF_STAT=/'
fi

true

Read the full file on GitHub · 150 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. 25d ago Changed 2210145f5284
  2. 1mo ago Changed · +16 lines 228771b9798e
  3. 2mo ago Changed · +3 lines b9964cc37bcc
  4. 2mo ago Changed · +4 lines b712f5b6eb65
  5. 2mo ago Changed 2004c85e905e
  6. 2mo ago Changed · +20 lines 0eab4f394550
  7. 2mo ago Changed 240d0bcb01de
  8. 2mo ago Changed 0fc86c99d01d
  9. 3mo ago First seen · 107 lines · 38 tokens per session scan A 84d8035d1617

Subscribe to this mod's changes

explain is a command published in the GitHub repository synaptiai/synapti-marketplace (9 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 1,881 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-09-03.

Related

explain compared with commands from other repositories

explain next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
explainsynaptiai/synapti-marketplaceCommand9todayApache-2.0A38Claude Code
create-worktreeCaptainMe-AI/lead-dev-osCommand224d agoMITA0Claude Code
paper-trail-reviewroomi-fields/paper-trailCommand83mo agoMITA39Claude Code
paper-trail-new-paperroomi-fields/paper-trailCommand83mo agoMITA35Claude Code
paper-trail-registry-cleanuproomi-fields/paper-trailCommand83mo agoMITA109Claude Code
paper-trail-cascaderoomi-fields/paper-trailCommand83mo agoMITA44Claude Code
paper-trail-linkifyroomi-fields/paper-trailCommand83mo agoMITA70Claude Code