Context tree: organic Obsidian-like graph layout (stacked on #68) - #70
Merged
Conversation
…d graph Kate's call (2026-07-27): the tidy left-to-right tree reads as a diagram; the context should read as a living graph. Layout is now a deterministic force settle — root pinned at center, turns seeded on a ring in session order, each turn's context clustering around it; recall links act as weak springs so shared context physically sits between the turns that keep returning to it. Straight Obsidian-style edges, labels centered under nodes, hovered node's neighborhood brightens. Same declarative setTree/lerp architecture (the settle runs synchronously; the render loop drifts nodes to the new equilibrium — no per-frame physics), so interactivity, keyboard nav, and reduced motion are untouched. Docs updated (ADR 0003 + CONTEXT.md). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kateebonner
force-pushed
the
kate/context-tree-organic
branch
from
July 27, 2026 22:22
dd4e134 to
c8468a4
Compare
kateebonner
marked this pull request as ready for review
July 27, 2026 22:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #68 — diff unique here is the last commit.
Kate: "should the context tree look more like an obsidian graph??? i think so." Agreed, with bones kept: pure force clouds lose the turn structure, so this is organic-with-structure.
setTree, the render loop lerps nodes to the new equilibrium (that drift IS the organic feel — no per-frame physics cost). Pointer, wheel-zoom, keyboard nav, aria-live announcements, reduced-motion all untouched.Verification: ui 345 + app 442 tests green, typecheck clean, lint 0 errors.
🤖 Generated with Claude Code