ClaudeCodeMod

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.

In Claude Code
/plugin marketplace add max-sixty/leaf
/plugin install leaf@leaf
Open the repo

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

The author's picture of a leaf page in a browser: a plan for a migration rehearsal with checks complete 3 of 4, error rate, and p95 latency, its phases and progress so far, and a Threads panel where the words Backfill history are selected with the question Can the backfill stay online? and Claude's reply under it. The plan and figures are the author's sample.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold oneBash
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionUserMessageAbovePrompt
  • session.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 1
  • PreToolUse · Bash"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code || exit 1
  • PreToolUse · Bash"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code || exit 1
  • PostToolBatch"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code --if-claimed || exit 1
  • SessionStart"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code --if-claimed || exit 1
  • Stop"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code --if-claimed || exit 1
  • Stopexec python3 "$CLAUDE_PLUGIN_ROOT/hooks/scripts/background-watch.py" hook --harness claude-code --if-claimed --watch
  • UserPromptSubmit"$CLAUDE_PLUGIN_ROOT/bin/leaf" hook --harness claude-code --if-claimed || exit 1
  • UserPromptSubmitexec python3 "$CLAUDE_PLUGIN_ROOT/hooks/scripts/background-watch.py" hook --harness claude-code --if-claimed --watch
  • SessionEnd"$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

Other mods in Review

diff-reviewnicolas-codemateOpens a review pane for your uncommitted changes, the pull request, or one commit, where you click a line to ask Claude and the answer streams in under it.rippleNealMaps what a code change reaches: a background agent traces the code that uses what you changed, and a pane draws the files, which break, and which to review.testivai-reportTestivAIDraws a pane of a TestivAI visual report's snapshots, changed first, toasts what a run found, and opens the full report with its screenshots in the side panel.owner-repmacollins27Draws a row above the prompt with the result you asked for and what the agent is doing, warns when work is dropped, and checks the agent's claims on a press.editlensmymotomaker-aiShows each change Claude makes to your website in your browser as it happens, with the chat and the code beside the page, and draws a line above the prompt.bilingual-viewagainest1Translates a Chinese prompt into English before it is sent, and draws Claude's English reply in Chinese, with buttons to see the sent text or the original.mermaid-drawgalElmalahDraws each mermaid block Claude writes as colored box art in the reply, where the fence was: flowcharts, state, sequence, class, and ER diagrams, and xy charts.crayonjonpojonpoRedraws every reply in themed color, with gradient headings, boxed tables, and callouts, and teaches Claude tags for badges, colors, and panels. Six themes.for-your-eyeskeshavatearthDraws a rounded border around each turn's final answer, so it stands out from the progress notes and tool calls above it. /for-your-eyes turns it off.desk-lookKyongSik-YoonRedraws the terminal like the desktop app's Code tab: prompt bubbles, folded tool calls, cards, a band of branch, PR checks, and context, and seven side panes.coral-skinpromptadvisersRestyles Claude Code's message and tool rows in coral, ink, and cream, with colored chips that mark reads, edits, and commands, and a risk mode, under /skin.repo-heatmappromptadvisersOpens a map of the project's files, each area sized by the file, that lights up as Claude reads, searches, and edits them, and marks failed operations.
All 145 in Review