An agent skill · MIT · zero dependencies
Diffusion
Interface
Refine a page with your agent in passes, instead of chatting about it.
No transcript.
Only the page.
Demo
Notes in, page out.
- Tap ✦. The
//line is sent as an instruction, and the agent rewrites the whole page. - Add a comment below the page and tap ✦ again. The next pass builds on the last.
- Open the v‹n› menu to jump around the tree, ask for ↻ another take, or press ± to see what changed.
This is a scripted copy of the real UI. The passes are pre-written here; in the real thing your own agent writes them.
The idea
Work on the thing, not the conversation about it.
A chat makes you describe every change in a new message while the work scrolls away. Image models never worked like that: you refine a canvas. This brings that loop to text, with any LLM agent as the generator.
"Diffusion" describes the interaction, not the model. Each pass is an ordinary call to the agent you already use.
// comments placed where they applyHow it works
Your agent does the writing.
The skill starts a local page
Your agent runs the skill. It starts a small stdlib-only Python server for the current project and opens the page.
start_server.sh
The agent listens in the background
A background command waits until you tap ✦, then exits with the job (the page plus your comments). That exit wakes the agent.
agent_bridge.py listen
It pushes the next version
The agent writes the whole next page with its own model, context and tools, pushes it into the tree, and starts listening again.
agent_bridge.py push
Install
Pick your agent.
Claude Code: install it as a plugin. Run these inside Claude Code, then restart it or run /reload-plugins:
/plugin marketplace add kikkupico/diffusion-interface /plugin install diffusion-interface@diffusion-interface
On Claude Code 2.1.275 or later, one line does both: /plugin install diffusion-interface --marketplace kikkupico/diffusion-interface.
Other agents (Codex, Gemini CLI, Antigravity and others): install with the skills CLI, which asks which agents to add it to:
npx skills add kikkupico/diffusion-interface
No Node? Download just the skill folder. For Claude Code (for Antigravity, use ~/.gemini/config/skills in both places):
mkdir -p ~/.claude/skills
curl -sL https://github.com/kikkupico/diffusion-interface/archive/refs/heads/main.tar.gz \
| tar -xz -C ~/.claude/skills --strip-components=3 \
diffusion-interface-main/.agents/skills/diffusion-interface
Or clone the repo and link the skill, so git pull updates it:
git clone https://github.com/kikkupico/diffusion-interface
ln -s "$PWD/diffusion-interface/.agents/skills/diffusion-interface" \
~/.claude/skills/diffusion-interface
For other agents, put the skill folder wherever they load skills from, or point them at SKILL.md. Any harness that can run a background command and wake when it exits will do.
No agent session? Run the server alone and it uses a headless CLI (claude -p, codex exec, gemini -p) or an API key:
pip install git+https://github.com/kikkupico/diffusion-interface diffusion-interface --open-browser
Updating
Claude Code plugin? Run /plugin marketplace update diffusion-interface, or turn on auto-update in /plugin. Installed with npx skills or curl? Run the same command again. Cloned it? The skill is a link to your clone, so updating is a pull:
cd diffusion-interface && git pull
- UI changes: reload the page. The server reads the UI fresh on every request.
- Server changes (Python files): run
start_server.sh --restartfrom the project, or ask your agent to “restart the diffusion interface”. Same port, same documents. - SKILL.md changes: start a new agent session so it reads the new instructions.
Installed with pip? Run pip install -U git+https://github.com/kikkupico/diffusion-interface, then stop and start diffusion-interface.
Then, in any project
“Open the diffusion interface.”
Each project gets its own server, port and documents in .diffusion-interface/. Documents are plain folders of HTML versions plus a tree.json.
Questions
FAQ
Is it actually diffusion?
No. It borrows the interaction, not the math: whole-page passes, local conditioning, rerolls and a history you can branch from. Each pass is an ordinary LLM call.
Which model does it use?
Whichever one your agent uses. There's no API key to configure and no second model. If no agent session is listening, it falls back to a headless agent CLI on your PATH, then to Gemini or OpenAI keys if you've set them.
Does it work for code?
It's built for prose: plans, specs, essays, notes, READMEs. Since a live agent can read your project, a pass can still pull in facts from the codebase.
Where does my data go?
To your local server and to whatever agent you run. Nothing else. The server listens on 127.0.0.1 by default and refuses requests from other websites.