How razzant/ouroboros works
Ouroboros is a persistent, local-first AI coding agent with desktop and headless entry points. The main workflow accepts a task through the gateway, admits and supervises worker execution, invokes model/tool capabilities, and records results and durable artifacts. Projects, memory, history, review, and self-evolution are major product capabilities described in the README; their branches are represented at subsystem level where source excerpts do not establish internal wiring. Edges use SOURCE INDEX references or README statements, so unsampled internals are not presented as inspected.
Main entry points: agent_task_pipeline.py Agent pipeline · workers.py Worker supervisor · server.py Server runtime · tasks.py Task gateway
Components 22
Runtime entry
- Server runtime
server.py - Headless CLI
ouroboros/headless.py - Task gateway
ouroboros/gateway/tasks.py
Task execution
- Worker supervisor
supervisor/workers.py - Agent pipeline
ouroboros/agent_task_pipeline.py - Model routing
ouroboros/llm_routing.py
Continuity and records
- Project registry
ouroboros/projects_registry.py - Durable memory
ouroboros/memory.py - Task history
ouroboros/chronicle_store.py - Task results
ouroboros/task_results.py - Task artifacts
ouroboros/artifacts.py - Supervisor state
supervisor/state.py - Cancel intents
ouroboros/cancel_intents.py
Agent capabilities
- Agent tools
ouroboros/tools/core.py - Delegated execution
ouroboros/claudexor_runtime.py - Review
ouroboros/review.py - Self evolution
supervisor/worker_promotion.py
User interfaces
- Web interface
web/app.js - Android host
android/host/src/ai/ouroboros/android/CoreService.java
Other components
- User
- Model provider
- Claudexor runtime
Connections 22
- User → Server runtime: uses
README.md - User → Headless CLI: uses
README.md - Server runtime → Task gateway: routes tasks
server.py - Task gateway → Headless CLI: starts tasks
ouroboros/gateway/tasks.py - Headless CLI → Worker supervisor: dispatches work
supervisor/workers.py - Worker supervisor → Agent pipeline: runs agent
supervisor/workers.py - Agent pipeline → Model routing: requests inference
ouroboros/agent_task_pipeline.py - Model routing → Model provider: calls provider
README.md - Agent pipeline → Agent tools: uses tools
- Agent pipeline → Delegated execution: delegates coding
README.md - Delegated execution → Claudexor runtime: runs harness
README.md - Agent pipeline → Review: owns review
README.md - Agent pipeline → Project registry: uses projects
ouroboros/agent_task_pipeline.py - Agent pipeline → Durable memory: uses memory
README.md - Agent pipeline → Task history: records history
README.md - Agent pipeline → Task results: writes results
ouroboros/agent_task_pipeline.py - Agent pipeline → Task artifacts: writes artifacts
ouroboros/agent_task_pipeline.py - Worker supervisor → Supervisor state: reads state
supervisor/workers.py - Worker supervisor → Self evolution: promotes workers
supervisor/worker_promotion.py - Task gateway → Cancel intents: accepts cancellation
ouroboros/gateway/tasks.py - Web interface → Server runtime: connects to runtime
- Android host → Server runtime: connects to runtime