feat: Mind graph page, live cognitive metrics, and system analysis#335
Merged
CalebisGross merged 3 commits intomainfrom Mar 21, 2026
Merged
feat: Mind graph page, live cognitive metrics, and system analysis#335CalebisGross merged 3 commits intomainfrom
CalebisGross merged 3 commits intomainfrom
Conversation
…ization Adds a new "Mind" tab to the dashboard that visualizes the memory association network using D3.js force simulation. Uses the existing /api/v1/graph endpoint that was previously unsurfaced. Features: - Force-directed graph with nodes sized by salience, colored by source/tone/significance/state (selectable) - Network stats bar: node count, edges, clusters, orphans, avg degree - 2-hop neighborhood focus on node click with detail panel - Client-side search with pulse animation on matching nodes - Concept click-through from detail panel to search - Edge legend showing all 6 relation types (similar, caused_by, part_of, reinforces, temporal, contradicts) - Controls: episodes/memories toggle, salience/strength sliders, node limit, color-by selector - Drag, zoom, pan via D3 behaviors - Theme-aware colors via CSS variables - Keyboard shortcut: 4 for Mind tab Also fixes: hash router missing 'tools', keyboard shortcuts now cover all 7 tabs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Redesigns the Research Analytics section with proper KPI cards (nDCG@5, Precision@5, Recall@5, MRR) featuring delta indicators and target thresholds. Replaces flat session lanes with expandable session rows showing quality dots, concept pills, duration, and feedback badges. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Backend: - Expand ConsolidationCompleted event with 5 new fields from CycleReport (transitioned_fading/archived, patterns_extracted/decayed, never_recalled_archived) - Fix WS subscription gaps: add PatternDiscovered, AbstractionCreated, MemoryAmended, SessionEnded to WebSocket handler - Add GET /api/v1/retrieval/stats exposing query volume and latency - Add POST /api/v1/embeddings/backfill to re-embed memories missing embeddings (with FK-safe UpdateEmbedding store method) Dashboard: - Enrich activity drawer events with structured detail (consolidation metrics, dream cycle stats, concept/association counts, pattern titles, episode durations) - Add 2 new KPIs: Network Density and Retrieval Performance - Add Cognitive Agents summary panel (Encoding, Consolidation, Dreaming, Abstraction stats) - Add System Analysis brief that interprets metrics and gives actionable insight into how mnemonic is performing - Cross-page navigation: click events to jump to relevant Explore tab - Nav memory count clickable to Explore/Memories Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Note: The Mind page (graph visualization tab) is WIP and has known bugs — the episodes/memories toggle loads additively instead of switching. Will fix in a follow-up before merging. |
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.
Summary
POST /api/v1/embeddings/backfillendpoint +UpdateEmbeddingstore method for re-embedding memories that failed initial embedding.Also includes the Tools page research analytics redesign (KPI cards with deltas, expandable session rows).
Test plan
make build && make test && make checkpasshttp://127.0.0.1:9999/curl -X POST /api/v1/embeddings/backfillworkscurl /api/v1/retrieval/statsreturns JSON🤖 Generated with Claude Code