amicode: the amico brain — a live map of the session's thought in the chat - #19
Merged
Conversation
kateebonner
force-pushed
the
kate/brain-in-chat
branch
5 times, most recently
from
July 14, 2026 23:09
f3147c7 to
8befeaf
Compare
…in the chat A persistent, breathing visualization of amico's neural pathways rendered over the vault/skill/agent graph, living in the conversation flow as a permanent timeline row (stable key, kept mounted, riding the timeline's own row-measurement and bottom-lock machinery). Behavior - Auto-breathe: a 72px living slice at rest (close-up centered on amico's current position), expanding to a 224px whole-network view while a turn thinks (the amico core anchors dead center, zoom fits the farthest node); lingers 5s past completion, then collapses. Click/Enter toggles manually until the next turn reclaims auto. Folds entirely while a question dock is open — render loop paused, amico is waiting on the user. - Live telemetry: every tool call of the session streams into the brain. Reads, edits, skills, tasks and amicode_* verbs COMMIT — a pulse travels the skeleton and the node claims its category color (skill names map onto real skeleton node ids; unknown files graft beside the current position); greps/globs/lists flash as considered scouts that may leak back to dark; the interview's question tool rings the pulse-designer node per question. - Session persistence: completed messages arrive replay-flagged and restore the atlas instantly; the busy message animates live — every turn resumes the session's accumulated path. Turns with ≥2 commits chart a quiet constellation named "plate N · <prompt excerpt>". - Spreading activation: each live commit charges up to 4 skeleton neighbors sub-threshold, so one event ripples like tissue instead of blipping. - Cross-links: hovering a tool row (or an Explored/shell group chip) rings its node on the map via the amicode:brain-hover event; in the collapsed close-up the camera turns briskly to look at the glanced node. Rendering - Natively wide force layout for the strip (stretch-then-relax: locally isotropic distances inside a wide envelope — no projection squash), all pathways drawn clearly, untraversed tissue receded so the traversed path owns the contrast, where-we-are cursor ring legible in both themes. - Assets ship CSP-split (the server forbids inline scripts and data: fonts in served HTML): public/brain.html + brain.js + brain-font.woff2, GENERATED from the canonical design artifact in amicode media/brain — re-split to update, do not hand-edit. - The card wears the message cards' surface token, hairline border, 12px radius, and the centered content-column constraint. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kateebonner
force-pushed
the
kate/brain-in-chat
branch
from
July 14, 2026 23:15
8befeaf to
45805c2
Compare
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.
What
A persistent, breathing visualization of amico's neural pathways — the session's real path over the vault/skill/agent graph — living in the conversation flow as a permanent timeline row.
How
packages/app/src/pages/session/brain-strip.tsx— the strip component: session-wide tool-call → touch mapping, replay/chart protocol, auto-breathe, hover forwarding.packages/app/src/pages/session/message-timeline{.tsx,.data.ts}— aBraintimeline row (stable key, kept mounted) with the centered content-column constraint.packages/ui—amicode/brain-ref.ts(tool → node-label/category mapping) + hover hooks ontool-part-wrapperand group triggers.packages/app/public/brain.{html,js}+brain-font.woff2— the brain page, CSP-split (no inline scripts / data: fonts pass the served-HTML CSP), generated from the canonical design artifact in amicodemedia/brain/brain.html; re-split to update, don't hand-edit.Testing
bun run typecheck(repo-wide via turbo) andpackages/app/packages/uiunit suites green.🤖 Generated with Claude Code