Architecture
Pytxo follows a three-tier model:
Presentation → Orchestration → Execution
(Reality Deck) (pytxo-orchestrate) (pytxo-runner + PTY)
↑ ↑
passive telemetry MCP / CLI
Crates
| Crate | Role |
|---|---|
pytxo-cli | User-facing commands |
pytxo-orchestrate | Scheduling, hypervisor, doctor |
pytxo-runner | Agent execution, worktrees, PTY |
pytxo-core | Config, tasks, billing types, moat interfaces |
pytxo-store | SQLite schema and WAL |
pytxo-mcp | MCP server for IDE integration |
Data flow
- CLI or MCP submits a run plan from
pytxo.toml - Orchestrator computes waves (path conflicts +
depends_on) - Runner spawns agents in worktrees, streams events to SQLite
- Optional Reality Deck reads store for topology UI
Moat routing
All new orchestration features should route through Signal Core, Blast Shield, and Race Shield — not bypass them.
See repo layout for directory map.