Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ray-amjadv0.2.4MITIn 1 marketplace
When Claude ends a reply with a question, explains the choice in a side pane and lets you explore any option, or your own, in a real forked session
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Gate modelgateModel
The small model that confirms a reply really asks you to decide something.
stringdefault haiku
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; reads files; reads environment variables (DECISION_TREE_CHILD, DECISION_TREE_WAIT, HERDR_ENV, HOME, USERPROFILE); calls a model on your account.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code mod that turns the question at the end of Claude's reply into a side pane you can explore: every option with what it leads to, and a real forked session for any answer you want to try before you commit.

After every turn:
YES if you have to decide something before work can go on, NO for "anything else?" and other pleasantries.$.model.fork replays the session's own transcript (served from the prompt cache), so it knows everything Claude knew. It has no tools and replies with JSON: the question, the context you need, each option with what it leads to and its pros and cons, and a recommendation.You answer Claude in the prompt as usual. Nothing in the pane goes back to Claude.
Does nothing in -p / SDK sessions, unless DECISION_TREE_WAIT=1 is set (see below).

Explore forks the real session at the message that asked the question:
claude -p --resume <session> --resume-session-at <that message> --fork-session
The fork is told you picked that option and carries on with read-only tools (Read, Grep, Glob). In 12 to 20 seconds the pane shows what it would do, its steps, and the next question it would ask you. Explore again from there to go deeper: each level forks the branch above it.
/explain other <answer>, adds it as an option and explores it like the rest.claude --resume <branch> --fork-session, in a new Herdr pane when you're inside Herdr, or copied to your clipboard otherwise.Every branch is its own session file, so the main conversation never sees any of it.
| Command | What it does |
|---|---|
/explain | Open the pane for the latest question |
/explain b | Explore option B (A to H) |
/explain other <answer> | Explore your own answer |
/explain map | Show the map |
/explain back, /explain top | Move up the tree |
/explain continue | Open the current branch as a live session |
/plugin install decision-tree --marketplace ray-amjad/claude-code-mods
Answer y to add the marketplace, then pick a scope.
| Option | Default | What it does |
|---|---|---|
gateModel | haiku | The model that answers YES or NO |
/explain and the pane opens above the prompt.--resume-session-at is an undocumented Claude Code flag (tested on 2.1.296). If the mod can't find the message to cut at, it forks from the latest point and says so.claude -p run with a turn's cost, and its session file stays in the project's history.claude --plugin-dir ./decision-tree
claude plugin validate .
In claude -p, set DECISION_TREE_WAIT=1 so the run waits for the fork before it exits.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub ray-amjad/claude-code-mods --plugin decision-treePlugins from other owners that cover similar ground