All shelves / Mods / Review
leaf
By max-sixty
leaf is a Claude Code review mod by max-sixty.
Has the agent build a browser page for a plan, a decision, or live work. You comment and edit, the agent revises it, and a line per page sits above the prompt.
Draws
Install
The marketplace name is leaf.
/plugin marketplace add max-sixty/leaf /plugin install leaf@leaf
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- License
- MIT
- Repo stars
- 6
- Last change
- 2026-10-28
What it can reach
- Draws in the session
- Calls another program on this machine
- Reaches the network or an outside service
Experimental, and not ready for general use, the author says. uv, jq 1.6 or newer on your PATH, and a browser that can reach the machine the agent runs on; no Leaf account or configuration. Claude Code 2.1.196 or later. Ask Claude to use Leaf, or type /leaf with a topic. The first run syncs the plugin's uv environment through your package index, and render checks use Chrome or Chromium. Ctrl+X Tab, then Enter, opens the first page in your browser; over SSH it copies the link. In a sandbox, Claude Code asks the first time whether to allow the connection to Leaf's bridge on 127.0.0.1. Leaf also installs in Codex and Pi.
The marketplace name is leaf, and it lists this one plugin, from the repository. Reviewing a plan or a decision on a page is why this page files it under review. plannotator opens Claude's plan in a review UI and sends your annotations back. vellum holds a planning mode with a browser review page and refuses other writes while it plans. This one is generative UI: the agent builds the page the task needs, writes new widgets when the project calls for them, and answers comments anchored on the page by revising it. Pages are served from this machine, and their state is kept in ~/.local/state/leaf. The line above the prompt counts what waits on you, the open threads, and the unread replies on each page.
Demo

What it hooks into
session.startWhen a session startstool.callAround a tool call, where it can hold oneBashturn.startWhen Claude starts a turnturn.completeWhen a turn endsui.renderDraws into the sessionUserMessageAbovePromptsession.endWhen a session ends
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Hooks 10
PreToolUse · Bash"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code || exit 1PreToolUse · Bash"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code || exit 1PreToolUse · Bash"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code || exit 1PostToolBatch"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code --if-claimed || exit 1SessionStart"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code --if-claimed || exit 1Stop"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code --if-claimed || exit 1Stopexec python3 "$CLAUDE_PLUGIN_ROOT/hooks/scripts/background-watch.py" hook --harness claude-code --if-claimed --watchUserPromptSubmit"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code --if-claimed || exit 1UserPromptSubmitexec python3 "$CLAUDE_PLUGIN_ROOT/hooks/scripts/background-watch.py" hook --harness claude-code --if-claimed --watchSessionEnd"$CLAUDE_PLUGIN_ROOT/bin/leaf" session-end || exit 1
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- max-sixty
- Category
- Review
- Marketplace
- leaf
- Repo
- max-sixty/leaf
- License
- MIT
- Repo stars
- 6
- Last change
- 2026-10-28
- Language
- Python
- Files
- 1767