How jaspersmart87/astrabackup works
Astra is a long-running conversational AI project with dashboard and Discord/voice interfaces, a cognitive loop, persistent memory and self-development systems, and embodied/creative tools. The typical workflow begins with a person sending a message or speaking; an interface routes input into cognition, which forms a response and may update memory or project state before replying. The README documents these capabilities, while the excerpts and source index provide only partial wiring evidence; uncertain links are omitted rather than inferred.
Main entry points: main.py Organism Boot · brain.py Conscious Loop · activate.py V4 Activation · app.py Dashboard
Components 28
User Interfaces
- Dashboard
app.py - Discord Bridge
astra_discord.py - Organism Boot
main.py
Cognition
- Conscious Loop
brain.py - Neural Interface
llm.py - Fast Decision
decide.py - V4 Activation
astra_v4/activate.py - V4 Arbiter
astra_v4/arbiter.py - Cognitive Steering
steering_engine.py - Subconscious
dream.py
Memory and Growth
- Persistent State
state.py - Obligation Ledger
continuity.py - Experiential Memory
vessel.py - Self Charter
charter.py - Identity Drift
identity.py - People Biographies
people.py
Voice
- Voice Runtime
astra_voice/runtime.py - Voice Client
astra_voice/recv/voice_client.py - Audio Reader
astra_voice/recv/reader.py - Packet Router
astra_voice/recv/router.py - Audio Sinks
astra_voice/recv/sinks.py
Embodied Tools
- Body Controller
body_pad.py - Room State
world_state.py - Iterative Drawing
astra_tools/brush.py - Game Table
astra_tools/games/_table.py - Image Generation
comfy_tool.py - Code Tools
code_tools.py
Other components
- Person
Connections 23
- Person → Dashboard: sends message
- Person → Discord Bridge: sends message
- Dashboard → Organism Boot: builds organism
app.py - Organism Boot → Conscious Loop: wires cortex
main.py - Organism Boot → Subconscious: wires cortex
main.py - Organism Boot → Neural Interface: wires cortex
main.py - Conscious Loop → Neural Interface: calls model
- Conscious Loop → Fast Decision: consults
- V4 Activation → V4 Arbiter: activates
astra_v4/activate.py - V4 Activation → Obligation Ledger: enforces obligations
astra_v4/activate.py - V4 Activation → Cognitive Steering: configures steering
astra_v4/activate.py - Conscious Loop → Persistent State: reads and updates
- Subconscious → Experiential Memory: consolidates memories
- Person → Voice Runtime: speaks
- Voice Runtime → Voice Client: receives audio
astra_voice/runtime.py - Voice Client → Audio Reader: starts reader
astra_voice/recv/voice_client.py - Audio Reader → Packet Router: routes packets
astra_voice/recv/reader.py - Packet Router → Audio Sinks: writes audio
astra_voice/recv/router.py - Person → Body Controller: chooses activity
- Person → Iterative Drawing: requests drawing
- Person → Game Table: plays game
- Person → Image Generation: requests image
- Person → Code Tools: requests coding