How mudadlapranay12/ace.x works
Ace.X pairs a VS Code developer companion (robot-brain) with an Electron robot (robot-body). Its main workflow observes workspace activity, filters events, interprets them, makes deterministic assistance decisions, and expresses the result through the companion. The README also documents teaching and learning, debugging history, attention, optional Gemini explanations, and a separate VS Code robot view. The graph follows documented flows and excerpted wiring; unsampled subsystem internals are represented at their documented directory paths.
Main entry points: companionLoop.ts Companion Loop · pipeline.ts Pipeline · perceptionEngine.ts Perception Engine · behaviourController.js Body Behaviour
Components 27
Workspace Brain
- Workspace Sensors
robot-brain/src/sensors - Event Filter
robot-brain/src/eventFilter/eventFilter.ts - Pipeline
robot-brain/src/pipeline/pipeline.ts - Perception Engine
robot-brain/src/perception/perceptionEngine.ts - Context Engine
robot-brain/src/context/contextEngine.ts - Decision Engine
robot-brain/src/decision/decisionEngine.ts
Teaching Companion
- Companion Loop
robot-brain/src/pipeline/companionLoop.ts - Teaching Ladder
robot-brain/src/teaching/teachingEngine.ts - Struggle Analysis
robot-brain/src/struggle/struggleDetector.ts - Learning Profile
robot-brain/src/learning/skillProfile.ts - Attention Target
robot-brain/src/attention/attentionTarget.ts - Debug Timeline
robot-brain/src/timeline/timelineBuffer.ts - Gemini Explanations
robot-brain/src/ai/gemini.ts
Robot Expression
- Behaviour Controller
robot-brain/src/behaviour/behaviourController.ts - Motion Planner
robot-brain/src/motion/motionPlanner.ts - Motion Controller
robot-brain/src/motionController/motionController.ts - Brain WebSocket
robot-brain/src/utils/websocketServer.ts - Body WebSocket Client
robot-body/wsClient.js - Message Parser
robot-body/messageParser.js - Body Behaviour
robot-body/behaviour/behaviourController.js - Animation Controller
robot-body/behaviour/animationController.js - Face Controller
robot-body/behaviour/faceController.js - Three.js Renderer
robot-body/renderer.js
User Interfaces
- VS Code Robot View
robot-brain/src/ui/robotViewManager.ts - Companion Commands
robot-brain/src/commands/commandRouter.ts
Other components
- Developer
- VS Code Workspace
Connections 31
- Developer → VS Code Workspace: edits code
README.md - VS Code Workspace → Workspace Sensors: workspace activity
README.md - Workspace Sensors → Event Filter: emit events
README.md - Event Filter → Perception Engine: filtered events
README.md - Perception Engine → Context Engine: observations
README.md - Context Engine → Decision Engine: contexts
README.md - Perception Engine → Companion Loop: observations
README.md - Decision Engine → Companion Loop: decisions
README.md - Companion Loop → Teaching Ladder: selects rung
README.md - Companion Loop → Struggle Analysis: assesses difficulty
README.md - Companion Loop → Learning Profile: reads and updates
README.md - Companion Loop → Attention Target: sets target
README.md - Companion Loop → Debug Timeline: records history
README.md - Companion Loop → Gemini Explanations: gates explanations
README.md - Pipeline → Perception Engine: wires pipeline
robot-brain/src/pipeline/pipeline.ts - Pipeline → Context Engine: builds context
robot-brain/src/pipeline/pipeline.ts - Pipeline → Decision Engine: wires decisions
robot-brain/src/pipeline/pipeline.ts - Pipeline → Behaviour Controller: routes decisions
robot-brain/src/pipeline/pipeline.ts - Pipeline → Motion Planner: plans motion
robot-brain/src/pipeline/pipeline.ts - Pipeline → Motion Controller: executes plans
robot-brain/src/pipeline/pipeline.ts - Pipeline → Gemini Explanations: requests diagnostics
robot-brain/src/pipeline/pipeline.ts - Behaviour Controller → Brain WebSocket: sends expression
robot-brain/src/behaviour/behaviourController.ts - Body WebSocket Client → Brain WebSocket: connects to
robot-body/wsClient.js - Body WebSocket Client → Message Parser: validates messages
robot-body/wsClient.js - Message Parser → Body Behaviour: maps actions
README.md - Body Behaviour → Animation Controller: drives animation
README.md - Body Behaviour → Face Controller: drives face
README.md - Animation Controller → Three.js Renderer: renders motion
README.md - Face Controller → Three.js Renderer: renders expression
README.md - Developer → Companion Commands: requests help
README.md - Developer → VS Code Robot View: views companion
robot-brain/src/ui/robotViewManager.ts