Skip to main content

Lab ยท Interaction prototype

Graft

Fork, compare, and keep the best of an AI conversation without losing where it came from.

Scripted demo, no AI behind this box. The interaction design is the point.

The trunk runs top to bottom in the order things happened, and each fork sits under the turn it left from. Arrow keys walk the turns; Enter opens one in the thread.

The trunk runs left to right, and each fork drops below the turn it left from. Arrow keys walk the turns; Enter opens one in the thread.

  • Turn
  • Decision
  • Fork not taken
Layout
Detail
Reading view Exploration map Dashed stubs are directions you haven't taken yet. Click one to fork.

Why this exists

When making things gets cheap, managing what's made becomes the scarce thing. AI conversations are the newest place that problem shows up: the good ideas are in there somewhere, scattered across regenerations and dead ends, and the interface gives you one long scroll and a copy button.

Graft is a sketch of the missing layer. You fork a conversation at the turn where it should have gone differently, the map keeps every path visible, and the pieces you keep carry a marker back to the exact branch and turn they came from. Curation without amnesia.

Three decisions

  • Provenance over tidiness. Every kept block wears its origin. A master document you can't trace is just another artifact you'll re-litigate later.
  • Fork at the turn, not at the end. The place a conversation goes wrong is rarely its last message. The map treats the whole thread as forkable material.
  • Honest scripting. There is no model behind this demo and it says so. The fork directions are authored. Faking inference to demo interaction design would be the exact noise this tool exists to cut.

What's next

The next version of the skill is already built, on Canon's alpha branch. The renderer became code: the output is a function of the input, not HTML an agent writes by hand. It opens on a vertical reading column, one turn per line, with the branch map one toggle away. Squares join the vocabulary for decision points, and a rail beside the map holds what was asked and what was chosen. When the parser has to drop forks or cut a popup, the header says so and counts them.

The demo above still has its own next step: paste in your own exported conversation instead of the scripted one. Same map, same grafting, your actual work.

Take the map with you

Graft also exists as a Claude Code skill, published through Canon, my home for every prototype, from every tool. It reads your project's session history and renders it in this same visual language: your turns as the trunk, subagents as forks, compactions as diamonds. One self-contained HTML file, nothing leaves your machine. The map contains conversation excerpts, so the file is as private as the session it maps.

claude plugin marketplace add jamesmadson/canon

Then install the graft plugin and run /graft in any project. Prefer a bare file? Copy SKILL.md from the Canon repo into ~/.claude/skills/graft/. Read it before installing, the way you should read anything you hand to an agent.

What the skill actually makes

Below is the skill's raw output, framed but not restyled. I ran a short Claude Code session just for this page: sketch a pricing page in plain HTML, then change direction halfway, with a subagent on each pass. The renderer turned that transcript into this one file, and nobody edited it after.

Real output of /graft Open full size
A real session, four turns and two forks. It opens on the reading view; the Layout toggle switches to the map.

Hand-built with Claude Code. Part of jamesmadson.me.