Skip to content
Canon Open the app

Graft

Ever lose the moment in a long chat where you picked a direction? Scrolling back through hours of replies to find where it went wrong is slow. Graft turns the session into one page with every turn on a timeline. Find the turn, see what you had then, and copy a command to pick up the chat from there or put your files back the way they were. Run it again whenever you want the page to catch up.

What to say

Map the Claude Code session <session id> from this project, the one where we filed the three pieces of feedback into the record. Save the map as maps/strata-session.html and tell me what it shows.

What it made

A real session, recorded for this page: five turns, three commits and a compaction. Made with --public, so it leaves out the fork and branch commands. The prompt above leaves out one line the run needed, saying nobody could answer questions.

What to notice

What to do with it

Find the turn where you made the call you now want to undo and select it. On a page made for you from a Claude Code session, not this public copy, Copy fork command starts a new session from that turn, and Copy branch command makes a git branch with the files as they were. Paste the fork command into a terminal and carry on from there. The original session stays as it is.

Install

In Claude Code, add the Canon marketplace, then install the Graft plugin.

/plugin marketplace add jamesmadson/canon

Run /graft in any project and it renders that project’s Claude Code or Codex session as one page: every turn on a timeline, the turns where a decision was made or a commit landed listed as key turns, and a panel for the selected turn with what you asked, what Claude answered and what it committed. One self-contained HTML file, made on your machine, with nothing sent anywhere.

It exists for one job: finding the moment you picked a direction you now want to undo. A long session is unreadable as scrollback. On the timeline, the turn is a click away.

From that turn the page copies two commands. Copy fork command starts a new session from that point and leaves the original as it is. Copy branch command makes a git branch with the files as they were when the turn began. Nothing on the page runs a command itself.

It never reads a transcript into context, since one can pass 100MB. A small parser reads it line by line and writes only counts back.

Gotcha: Claude Code only. It reads the local transcript format, which is undocumented and can change between releases, and the fork command uses a flag Claude Code does not document. If a release breaks either, the skill says so rather than guessing.

Works with Claude Code and Codex