feat: add dual-brain holographic panel with brain pulse visualization #407

Merged
Timmy merged 1 commits from claude/dual-brain-panel into main 2026-03-24 16:41:14 +00:00
Member

Summary

  • Dual-Brain Status Panel: A new floating holographic panel at position (10, 3, -8) displaying the Brain Gap Scorecard with 6 categories (Triage, Tool Use, Code Gen, Planning, Communication, Reasoning) as colored horizontal progress bars with status labels (GRADUATED/PROBATION/SHADOW/CLOUD ONLY) and an overall convergence score of 0.73
  • Brain Orbs: Two glowing spheres — cyan for cloud brain, amber for local brain — with emissive materials, pulsing glow, and gentle hover animation positioned above the panel
  • Brain Pulse Particle Stream: 120 particles flowing along a curved parabolic arc from cloud→local orb, representing knowledge transfer. Particle opacity pulses with a simulated learning rate tied to the overall score
  • Scanning Line Effect: A thin horizontal scan line sweeps down the panel with a faint glow halo, giving the holographic aesthetic
  • Placeholder Texture Fix: Replaced the missing placeholder-texture.jpg (404) with a procedural canvas texture, eliminating the console error
  • Syntax Fix: Removed duplicate/broken energy beam declarations that were causing node --check failures (beamGeometry/energyBeam declared 3x, references to nonexistent NEXUS.colors.energy and NEXUS.scene)

How It Works

The panel uses a canvas texture (512×512) rendered as a THREE.Sprite, matching the existing agent panel and LoRA panel patterns. The brain orbs are THREE.SphereGeometry meshes with MeshStandardMaterial using emissive properties. The particle stream uses THREE.Points with a BufferGeometry — particles advance along a parabolic arc each frame, wrapping back to the cloud orb when they reach the local orb. All animations are wired into the existing animate() loop.

This is the visual foundation for the dual-brain runtime system (#108). The scorecard data is currently static but structured for easy replacement with live API data once the shadow-scoring backend lands.

Before / After

Before: The Nexus with no brain status visualization; a 404 error for placeholder-texture.jpg in the console; broken duplicate energy beam declarations

After: A living visualization of Timmy's two brains — a glowing scorecard panel flanked by pulsing cyan and amber orbs with particles streaming between them, clean console output, and passing syntax validation

Test Plan

  • node --check app.js passes
  • Load in browser — panel visible at (10, 3, -8), facing center
  • Brain orbs glow and pulse alternately
  • Particles stream along arc from cyan→amber orb
  • Scanning line sweeps across panel
  • No 404 errors in console for placeholder-texture.jpg
  • Existing scene elements (batcave, agent panels, etc.) unaffected

Refs #108, #113

🤖 Generated with Claude Code

## Summary - **Dual-Brain Status Panel**: A new floating holographic panel at position `(10, 3, -8)` displaying the Brain Gap Scorecard with 6 categories (Triage, Tool Use, Code Gen, Planning, Communication, Reasoning) as colored horizontal progress bars with status labels (GRADUATED/PROBATION/SHADOW/CLOUD ONLY) and an overall convergence score of 0.73 - **Brain Orbs**: Two glowing spheres — cyan for cloud brain, amber for local brain — with emissive materials, pulsing glow, and gentle hover animation positioned above the panel - **Brain Pulse Particle Stream**: 120 particles flowing along a curved parabolic arc from cloud→local orb, representing knowledge transfer. Particle opacity pulses with a simulated learning rate tied to the overall score - **Scanning Line Effect**: A thin horizontal scan line sweeps down the panel with a faint glow halo, giving the holographic aesthetic - **Placeholder Texture Fix**: Replaced the missing `placeholder-texture.jpg` (404) with a procedural canvas texture, eliminating the console error - **Syntax Fix**: Removed duplicate/broken energy beam declarations that were causing `node --check` failures (`beamGeometry`/`energyBeam` declared 3x, references to nonexistent `NEXUS.colors.energy` and `NEXUS.scene`) ## How It Works The panel uses a canvas texture (512×512) rendered as a `THREE.Sprite`, matching the existing agent panel and LoRA panel patterns. The brain orbs are `THREE.SphereGeometry` meshes with `MeshStandardMaterial` using emissive properties. The particle stream uses `THREE.Points` with a `BufferGeometry` — particles advance along a parabolic arc each frame, wrapping back to the cloud orb when they reach the local orb. All animations are wired into the existing `animate()` loop. This is the **visual foundation** for the dual-brain runtime system (#108). The scorecard data is currently static but structured for easy replacement with live API data once the shadow-scoring backend lands. ## Before / After **Before**: The Nexus with no brain status visualization; a 404 error for placeholder-texture.jpg in the console; broken duplicate energy beam declarations **After**: A living visualization of Timmy's two brains — a glowing scorecard panel flanked by pulsing cyan and amber orbs with particles streaming between them, clean console output, and passing syntax validation ## Test Plan - [x] `node --check app.js` passes - [ ] Load in browser — panel visible at (10, 3, -8), facing center - [ ] Brain orbs glow and pulse alternately - [ ] Particles stream along arc from cyan→amber orb - [ ] Scanning line sweeps across panel - [ ] No 404 errors in console for placeholder-texture.jpg - [ ] Existing scene elements (batcave, agent panels, etc.) unaffected Refs #108, #113 🤖 Generated with [Claude Code](https://claude.com/claude-code)
perplexity added 1 commit 2026-03-24 16:41:00 +00:00
feat: add dual-brain holographic panel with brain pulse visualization
All checks were successful
CI / validate (pull_request) Successful in 5s
CI / auto-merge (pull_request) Successful in 2s
7a526918b5
- Add floating "Dual-Brain Status" holographic panel at (10, 3, -8) showing
  Brain Gap Scorecard with 6 categories as horizontal progress bars
- Add two glowing brain orbs: cyan (cloud) and amber (local) with emissive
  materials, pulsing glow, and hover animation
- Add animated particle stream (120 particles) flowing along a curved arc
  from cloud→local orb representing knowledge transfer
- Add scanning line overlay effect that sweeps across the panel
- Fix placeholder-texture.jpg 404 by replacing with procedural canvas texture
- Remove duplicate/broken energy beam declarations that caused syntax errors

Refs #108, #113

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Timmy merged commit e29b6ff0a8 into main 2026-03-24 16:41:14 +00:00
Timmy deleted branch claude/dual-brain-panel 2026-03-24 16:41:15 +00:00
Sign in to join this conversation.