How brainarts-lab/hebe-longevity works
Hebe is a Hermes longevity plugin for recording blood panels, calculating and explaining Blood PhenoAge, and preparing screened research plans. The main workflow begins with a user-confirmed blood draw in the Desktop page or chat command; Hebe validates and saves it, computes a report and trend, and can use the resulting PLSI state to draft, screen, challenge, and—only after user approval—start a plan. The graph separates interfaces, core workflows, calculation/reporting, planning, and persistence. Some UI-to-API wiring is not shown in the excerpts, so that link is marked unverified.
Main entry points: commands.py Chat Commands · service.py Import & Results · plans.py Plan Lifecycle · __init__.py Plugin Registration
Components 17
Hermes Interfaces
- Hebe Desktop Page
desktop/plugin.js - Plugin Registration
__init__.py - Chat Commands
hebe/commands.py - Agent Tools
hebe/agent_tools.py - Desktop API
hebe/api.py
Blood Workflow
- Import & Results
hebe/service.py
Calculation & Reports
- Trend Drivers
hebe/drivers.py - PhenoAge Formula
hebe/plsi_kernel.py - Unit Conversion
hebe/plsi_units.py - Report Rendering
hebe/report.py
Research Planning
- Plan Lifecycle
hebe/plans.py - Challenger Model
State & PLSI
- PLSI Bridge
hebe/plsi_bridge.py - PLSI Toolbelt
- Local Results DB
hebe/service.py
Other components
- User
- Hermes Host
Connections 24
- User → Hebe Desktop Page: uses page
README.md - User → Chat Commands: enters command
README.md - Hebe Desktop Page → Desktop API: calls routes
- Hermes Host → Plugin Registration: loads plugin
__init__.py - Plugin Registration → Chat Commands: registers command
__init__.py - Plugin Registration → Agent Tools: registers tools
__init__.py - Plugin Registration → Hermes Host: registers challenger
__init__.py - Chat Commands → Import & Results: validates and saves
hebe/commands.py - Desktop API → Import & Results: reads and changes
hebe/api.py - Chat Commands → Report Rendering: renders report
hebe/commands.py - Desktop API → Report Rendering: serves report
hebe/api.py - Import & Results → Unit Conversion: converts values
hebe/service.py - Import & Results → PhenoAge Formula: calculates age
hebe/service.py - Report Rendering → Trend Drivers: renders trend effects
hebe/report.py - Trend Drivers → PhenoAge Formula: recalculates formula
hebe/drivers.py - Import & Results → Local Results DB: reads and writes
hebe/service.py - Chat Commands → Plan Lifecycle: starts plans
hebe/commands.py - Agent Tools → Plan Lifecycle: runs planning tools
hebe/agent_tools.py - Plan Lifecycle → Import & Results: syncs person state
hebe/plans.py - Plan Lifecycle → PLSI Bridge: screens and checks
hebe/plans.py - Agent Tools → PLSI Bridge: searches and calculates
hebe/agent_tools.py - PLSI Bridge → PLSI Toolbelt: runs commands
hebe/plsi_bridge.py - Plan Lifecycle → Challenger Model: requests challenge
- User → Chat Commands: approves start
README.md