Having Claude Code draw a treemap of where agent changes land, via Diffo
shetritr · reddit · 2026-12-06
The author built Diffo with Claude Code: the agent writes a one-line changeset-map fence in its review note, and Diffo draws a treemap from the live diff so reviewers see where a change lands before reading it — e.g., catching a 900-line stylesheet crowding out a 20-line parser fix.
Key details:
- Layout: squarified treemap (Bruls et al.), rows along the shorter side, largest box top-left.
- Weighted line counts: blank lines excluded; styles, docs, JSON/YAML/config count 1/4; generated files 1/20.
- Floors: every box gets ≥0.6% of canvas and rows ≥20px, but only drawing is floored — reported shares stay true.
- Color: encodes change nature (95%+ additions = new), review state, or agent steps.
Free, Apache-2.0 at diffo.io/demo. Author also invites debate: is 1/4 weight for config sane — until the bug is in the config?
More from coding & agent
- Lilith: a Windows workspace that records every step your Codex agent takes, seeking alpha testers — IncidentWest1361 · 2026-12-06
- AWS re:Invent recap: Athena adds DuckDB engine, Glue 6.1 goes all-in on Iceberg — Zachly · 2026-12-06
- Cardiff paper 95% written by Claude Opus 4.6 passes peer review — a 6-file agent workflow — Promptmethus · 2026-12-06
- Would you let an agent run your real phone? Reddit debates trust limits of on-device agents — TECHIE6023 · 2026-12-06
- Collecting the words that stop AI from building ugly UIs — msharmas · 2026-12-06
- OpenAI Pro user: Dots agent fixed my broken shutter end-to-end, its best product yet — VraserX · 2026-12-06