Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.
template
Private workspace package: the React app that becomes lineage.html. Vite and
vite-plugin-singlefile inline every asset, including React Flow's stylesheet and
the bundled ELK layout engine, so the page makes no external requests and works
from file://.
Dev
npm run dev -w template # renders src/fixture.ts through the same app
npm run build -w template # writes dist/index.html (embedded by the CLI build)
src/graph.ts turns the view model into an ELK hierarchy (epoch → session → node)
and returns React Flow nodes with parent-relative positions. Only expanded groups
send their children to ELK; the page opens with the most recent session expanded.
Outline (experimental)
The map can show an outline tree (epoch → session → node) next to the graph. It is off by default and toggled with "Show outline". Selecting a row expands the graph groups the item lives in, centres it and opens the drill-down panel; clicking a graph node highlights the matching row. The tree keeps its own expand/collapse state so a wide graph can stay collapsed while the outline browses it.
Layout budget
Measured 2026-10-21 in Chromium from file://, 495 nodes across 15 sessions in 3
epochs, every group expanded:
elk.layoutfor the full hierarchy: 96–155 ms (smaller partial layouts: 15–90 ms).- The map renders 513 React Flow nodes with no console errors and no long main-thread block; collapsing a group re-runs the layout in well under 100 ms.
- Default view of the same project (groups collapsed, latest session expanded): ~41 ms.
document.documentElement.dataset.layoutMs always carries the last measured time,
which is how these numbers were read from the built page.