How sarveshwaran20/pulse_pilot works
PulsePilot combines a localhost biometric-state service, a cockpit dashboard, an approval-gated MCP action bridge, and a Chrome browser agent. The principal workflow is local state calculation → cockpit presentation and protection recommendations → user-approved actions with receipts. The README also describes a separate web experience and its AI and hardware/interaction features; its internal wiring is not established by the sampled sources, so those branches are represented without inferred call relationships.
Main entry points: App.tsx Cockpit App · router.py Vault API · server.py MCP Bridge · page.tsx Web Cockpit
Components 34
Local Vault
- Vault API
vault/app/router.py - State Scoring
vault/app/calculator.py - SQLite Vault
vault/app/database.py - Vault Models
vault/app/models.py - Vault Config
vault/app/config.py - Sample Ingest
vault/app/seed.py - Vault Service
vault/app/main.py
Cockpit Dashboard
- Cockpit App
dashboard/src/App.tsx - State Gauges
dashboard/src/components/cockpit/ArcGauge.tsx - ECG Timeline
dashboard/src/components/cockpit/ECGTimeline.tsx - Pulse Orb
dashboard/src/components/cockpit/PulseOrb.tsx - Sleep Reserve
dashboard/src/components/cockpit/SleepDebtBar.tsx - Bento Layout
dashboard/src/components/cockpit/BentoGrid.tsx - Boot Sequence
dashboard/src/components/cockpit/BootSequence.tsx - Approval Cards
dashboard/src/components/mcp/ApprovalCard.tsx - Action History
dashboard/src/components/mcp/HistoryRail.tsx - State Themes
dashboard/src/styles/themes.ts
MCP Actions
- MCP Bridge
mcp-server/server.py - Approval Gate
mcp-server/gating.py - State Tool
mcp-server/tools/state_tools.py - Calendar Actions
mcp-server/tools/calendar_tools.py - Email Actions
mcp-server/tools/email_tools.py - Habit Actions
mcp-server/tools/habit_tools.py
Browser Agent
- Page Adaptation
extension/src/content.ts - Extension Background
extension/src/background.ts - Extension Panel
extension/src/sidepanel.ts
Web Experience
- Web Cockpit
web/src/app/cockpit/page.tsx - Landing Experience
web/src/app/page.tsx - Local Authentication
web/src/app/auth/page.tsx - AI Copilot
web/src/components/ai/CircadianAICopilot.tsx - Hardware Lab
web/src/components/innovations/HardwarePPGLab.tsx - Synaptic Interlock
web/src/components/innovations/SynapticInterlock.tsx - Design Tokens
web/src/lib/tokens.ts
Other components
- Pilot
Connections 38
- Pilot → Cockpit App: opens cockpit
README.md - Cockpit App → Vault API: fetches state
dashboard/src/App.tsx - Cockpit App → State Gauges: renders
dashboard/src/App.tsx - Cockpit App → ECG Timeline: renders
dashboard/src/App.tsx - Cockpit App → Pulse Orb: renders
dashboard/src/App.tsx - Cockpit App → Sleep Reserve: renders
dashboard/src/App.tsx - Cockpit App → Bento Layout: renders
dashboard/src/App.tsx - Cockpit App → Boot Sequence: renders
dashboard/src/App.tsx - Cockpit App → Approval Cards: stages actions
README.md - Cockpit App → Action History: shows receipts
README.md - Cockpit App → State Themes: applies state themes
README.md - Vault Service → Vault API: registers routes
vault/app/main.py - Vault Service → SQLite Vault: initializes
vault/app/main.py - Vault Service → Sample Ingest: seeds data
vault/app/main.py - Vault API → State Scoring: computes state
vault/app/router.py - Vault API → SQLite Vault: reads and writes
vault/app/router.py - Vault API → Vault Models: uses schemas
vault/app/router.py - SQLite Vault → Vault Config: loads settings
vault/app/database.py - SQLite Vault → Vault Models: maps records
vault/app/database.py - Sample Ingest → SQLite Vault: stores samples
vault/app/seed.py - Sample Ingest → Vault Models: builds snapshots
vault/app/seed.py - MCP Bridge → State Tool: registers tool
mcp-server/server.py - MCP Bridge → Calendar Actions: registers tool
mcp-server/server.py - MCP Bridge → Email Actions: registers tool
mcp-server/server.py - MCP Bridge → Habit Actions: registers tool
mcp-server/server.py - MCP Bridge → Approval Gate: manages approvals
mcp-server/server.py - State Tool → Vault API: fetches state
mcp-server/tools/state_tools.py - Calendar Actions → Approval Gate: requests approval
mcp-server/tools/calendar_tools.py - Email Actions → Approval Gate: requests approval
mcp-server/tools/email_tools.py - Habit Actions → Approval Gate: requests approval
mcp-server/tools/habit_tools.py - Pilot → Page Adaptation: browses pages
README.md - Pilot → Web Cockpit: opens web cockpit
README.md - Web Cockpit → Vault API: reads local state
- Web Cockpit → AI Copilot: offers copilot
- Web Cockpit → Design Tokens: uses tokens
- Landing Experience → Hardware Lab: presents lab
- Web Cockpit → Synaptic Interlock: offers safeguard
- Local Authentication → Vault API: authenticates locally