Generative UI: the agent builds the page your task needs, writes new widgets when the project calls for them, and answers your comments and edits over a messaging and collaboration bus.
Leaf is generative UI for Claude Code, Codex, and Antigravity. Review a plan, make a
decision, or follow live work in a page you can comment on and change. The agent
responds by revising the page.
You need uv 0.9.17 or newer,
jq 1.6 or newer on PATH, and a
browser that can reach the machine the agent runs on. No Leaf account or
configuration is required.
Users and package authors never need to build Leaf or run a package manager;
custom widgets are ordinary browser JavaScript.
Install the Leaf plugin, which includes the application, harness integration and
the Leaf skill. The skill supplies the agent's instructions; copying its directory
alone does not install the application.
Then ask: “Use Leaf to write up the options for this change.” The explicit skill is
/leaf [topic] in Claude Code and Antigravity, $leaf [topic] in Codex, and
/skill:leaf [topic] in Pi; without a topic, it
presents the work already under discussion.
The result opens in a browser page; its comments return to the same agent task.
Browser and environment requirements
Known functional limitations and accepted visual differences in current browsers
are recorded in Browser support gaps.
The first run syncs the plugin's uv environment through your configured package
index. Render checks and exports use the executable named by
LEAF_BROWSER_EXECUTABLE, CHROME_PATH, or CHROME_BIN, then installed Google
Chrome, then the first google-chrome, google-chrome-stable, chrome,
chromium, or chromium-browser on PATH. A render check of a page last shown in
Firefox uses the installed Firefox instead, where there is one.
Pages are served on loopback, or on the SSH destination in a session you reached
over SSH. To open them from another device, such as a phone on your tailnet, set
host in ~/.config/leaf/config.toml to the name that device reaches this machine
by: