Trace Canvas
GitHub ↗

Trace Canvas

Claude Code · Codex · every machine you work onClaude Code · Codex · 你的每台电脑

One map both you and your agents can read人和 agent 都看得懂的一张地图

Every session is a line on one transit map.

每个会话都是一条线,画在同一张地铁图上。

  • For you给你看Who's doing what, how far it got, what it changed. At a glance.谁在干嘛、做到哪、改了什么,一眼看清。
  • For agents给 agent 读The goal, the to-dos, the last agent's progress. A new one picks up in seconds.目标、待办、上一个 agent 的进度,新会话几秒接上。

Runs locally · open source (MIT) · about 1% of a session's tokens本地运行 · 开源(MIT)· 约占会话 token 的 1%

Records from agents arrive on the canvas, a new session appears as its own line, and two lines are merged back. Made-up data.agent 的记录陆续出现在画布上,新会话成为一条新线路,再把两条线合并回来。虚构数据。

Start here从这里开始

The full 0.3.0 tutorial0.3.0 完整教程

Ten minutes from install to running agents on several machines.10 分钟,从装好到几台电脑一起用 agent。

Trace Canvas 0.3.0: the full tutorial · 10:33Trace Canvas 0.3.0 版本完整教程 · 10:27

YouTube ↗Bilibili ↗
All 11 lessons11 课目录

The tour导览

Follow the line沿着这条线走一遍

Eight stops. One map.八站,看懂这张图。

The problem问题

More agents: you lose track of them, they lose track of each otheragent 一多,你看不清它们,它们也看不见彼此

Claude Code here, Codex there, one more on the workstation. A day later nobody knows who did what, and every new agent starts by asking you.

Claude Code 一个窗口,Codex 一个窗口,工作站上还跑着一个。过一天,谁做了什么就说不清;每个新 agent 都得从头问你。

For you给你看

One session, one line. Who did what, at a glance一个会话一条线,谁做了什么一眼看懂

Dark stations are yours, coloured ones the agents'. Forks and merges are drawn like git. Hooks draw it; you do nothing.

深色站点是你的指令,彩色是 agent 的产出,分叉合并像 git。hooks 自动画,你什么都不用做。

Live tips are running sessions; the orange one is waiting for you.线头是正在跑的会话,橙色的在等你批准。

For agents给 agent 读

A new agent catches up in seconds新开的 agent,几秒接上进度

Over MCP, Claude Code and Codex read the same line you see: the goal, the to-dos, every result. No more explaining it all again.

Claude Code、Codex 通过 MCP 读你看到的同一条线:目标、待办、每个结果。不用你再讲一遍。

Sessions stay on their line, one click from resuming.会话留在线上,一键就能恢复。

Goals and to-dos目标和待办

One list for you and your agents人和 agent 共用一份清单

You write the goal and the to-dos; agents tick them off and sign it. Say "dispatch" and every line gets to work.

你写目标和待办,agent 做完自己勾,标着是谁勾的。说一句「分派」,每条线都开工。

One ticked by Claude Code, one by Codex.一项 Claude Code 勾的,一项 Codex 勾的。

What changed改了什么

"Done," says the agent. The diff is one click awayagent 说做完了?diff 就在旁边

A commit station lists its files. Click for the diff, or compare with any earlier station. Straight from git.

提交站点列出改过的文件,点开看 diff,还能和任意更早的站点对比。直接读 git。

Files, diff, compare.文件 → diff → 对比。

Retro复盘

Twelve rounds this time. One round next time这次来回十几轮,下次一轮就过

Retro finds the work that took the most back-and-forth, where it got stuck, and turns it into a rule for CLAUDE.md, AGENTS.md or memory, written only when you say so.

点「复盘」,找出来回最多的事、卡在哪,提炼成规矩;你点「写入」才写进 CLAUDE.md、AGENTS.md 或长期记忆。

Ranked by rounds, with the sticking point and the rule.按轮次排行,写明卡点和规矩。

Machines and phone多台电脑和手机

Every machine on one map, your phone too几台电脑一张图,手机上也能记

Machines sync through your private git repo, records carry the machine's name, and a to-do can go to a given machine. On the phone, open it over Tailscale.

几台电脑经私有 git 仓库同步,记录标着机器名,待办能指定交给哪台。手机经 Tailscale 打开,随手记、随手改。

Goals on a phone: tap to edit.手机上的目标页,点一下就改。

Local and light本地、轻量

On your computer, at about 1% of the tokens跑在你的电脑上,只占约 1% 的 token

Node.js

Just Node.js 18.17+. No npm install; your data stays in ~/.trace-canvas.

只要 Node.js 18.17+,不用 npm install;数据留在 ~/.trace-canvas。

MIT

Open source, free to use.

开源,免费用。

~1%

About 1% of a session's tokens, however big the map gets. The hooks run outside the model.

约占会话 token 的 1%,图再大也不涨。hooks 在模型之外运行。

Short clips短片

Feature demos功能演示

A few seconds each, from the real page, on made-up data.每段几秒,录自真实页面,数据是虚构的。

All your past sessions, one map过去的会话,一张地图

One sentence, and your past sessions land on the map.一句话,过去的会话一条条落到图上。

Dispatch: every line at work分派:每条线都开工

One "dispatch", and three lines wake up.一句「分派」,三条线同时开工。

Timeline时间线

Day, week, month: when each line was moving.按日、周、月,看每条线什么时候在动。

Agent view: who started whomAgent 视图:谁启动了谁

Who started whom, and who is waiting for you.谁启动了谁,哪个在等你。

One click back to its window一键跳回它的对话或终端

One click back to its chat or its terminal tab.一键回到那次对话,或那个终端标签页。

Merge two lines合并两条线

Two lines into one. Nothing is deleted.两条线合成一条,什么都不删。

Groups and Arrange分组与整理

Group by project, tidy in one click.按项目分组,一键排整齐。

Gone quiet安静了

A stalled line gets a dot, not a pop-up, and one question.停下的线亮个小点,不弹窗,只问一句。

Videos视频

Latest videos最新视频

Newest first, added as they come out.最新的在前,发一条加一条。

End of the line终点站

Install安装

Paste this into Claude Code (or Codex):把这句话贴给 Claude Code(或 Codex):

Install Trace Canvas: clone https://github.com/CallSymmetryEcho/trace-canvas.git into ~/trace-canvas, then run node ~/trace-canvas/bin/trace-canvas.mjs setup --user (add --agents codex if Codex is installed).

安装 Trace Canvas:把 https://github.com/CallSymmetryEcho/trace-canvas.git 克隆到 ~/trace-canvas,然后运行 node ~/trace-canvas/bin/trace-canvas.mjs setup --user(装了 Codex 的话加上 --agents codex)。

Or by hand:或者手动:

git clone https://github.com/CallSymmetryEcho/trace-canvas.git ~/trace-canvas
node ~/trace-canvas/bin/trace-canvas.mjs setup --user

Then start a new Claude Code session and type /trace-canvas put all my sessions on the canvas. It puts this project's past sessions on the map and opens it at http://localhost:4777/; from then on every new session lands on it by itself.

然后新开一个 Claude Code 会话,输入 /trace-canvas 把现在所有的会话展示在画布上。它会把这个项目过去的会话放上地图,并在 http://localhost:4777/ 打开;之后每个新会话都会自动出现在上面。

Which agents支持哪些 agent

Claude Code
Tested已实测 Tested with real sessions.用真实会话测过。
Codex
Tested已实测 Tested with real sessions; add --agents codex.用真实会话测过;安装时加 --agents codex。
Gemini CLI
Supported, not yet tested已支持,待实测 Built in (--agents gemini), following its documented hooks.已内置(--agents gemini),按官方 hook 接好。
Other coding CLIs: Qwen Code, Qoder, TRAE, Kimi Code…其他编程 CLI:Qwen Code、Qoder、TRAE、Kimi Code……
Not tested yet待测试 Next on the list.排在下一批。

Trace Canvas

Every session leaves a line.每次对话,都留下一条线。

You and your agents read the same map, so no one loses the way.你和 agent 看同一张图,谁也不迷路。