Appearance
Architecture Overview β
Coleo is an AI agent orchestrator that enables multiple general-purpose AI agents ("arms") to collaborate on software projects while a human maintains oversight and control.
System Goals β
- Coordinate cognitive work - Multiple arms work on different aspects of a project over time
- Preserve shared context - Arms share discoveries and plans instead of siloed expertise
- Enable human oversight - The human can monitor, guide, and intervene at any time
- Support creative autonomy - Arms can push forward on blocked work when they have conviction
Key Metaphors β
| Metaphor | Meaning |
|---|---|
| Octopus | The whole system - a central brain coordinating semi-autonomous arms |
| Brain | Central coordinator that assigns tasks, manages context, and interfaces with the human |
| Arms | General-purpose AI agents whose behavior changes with task classification |
| Garden | The shared workspace - code, docs, configs, environments - that arms tend |
| Observatory | The web UI where humans observe and configure the system |
| Nerve System | Communication layer (MCP, WebSocket, message queues) |
Design Principles β
1. Arms Are Not Specialized β
Arms are general-purpose and adapt their behavior based on task classification (architect, development, QA, PM, etc.). The same arm may behave like an architect for one task and like a QA engineer for the next.
2. Progressive Planning β
The brain does not maintain a static backlog. Instead it progressively determines the single next task for an arm at runtime by re-evaluating plan documents, completed tasks, discoveries, and status reports.
3. Observable by Default β
All activity is logged and visualizable.
4. Human-in-the-Loop β
Humans provide requirements and decisions; arms execute and report. Critical decisions can still require explicit human approval.
5. Client Agnostic β
CLI, Web, and gateway-backed email workflows all interact with the same core API and Maildir state.
6. Linear, Shared Git Workflow β
Multiple arms often work in the same codebase at once. Rather than giving each arm its own worktree or long-lived feature branch, Coleo assumes:
- A single clone of the project.
- A shared integration branch (typically named
coleo) where arms make changes. - A mostly linear git history, with humans in control of commits, rebases, and merges.
The design does not forbid more advanced flows (temporary branches, stashes, or branch-per-feature models). Those can be layered on later. The default is βmany arms, one garden, one branch,β with coordination handled through tasks, claims, and proposals rather than Git topology.
High-Level Architecture β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CLIENT LAYER β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Web Browser CLI Terminal Email Gateway β
β ββββββββββββββββββββββ ββββββββββββββββββββββββ ββββββββββββββββββββββββββ β
β β React Observatory β β coleo CLI β β Postmark (example) β β
β β - Timeline view β β - spawn/list/kill β β - Inbound webhook β β
β β - Arm activity β β - status β β - Outbound delivery β β
β β - Garden (3D) β β - API proxy β β - Fixed from/to pair β β
β βββββββββββ¬βββββββββββ ββββββββββββ¬ββββββββββββ βββββββββββββββ¬ββββββββββββ β
β β β β β
β βββββββββββββββββ¬ββββββββββ΄ββββββββββββββββ¬βββββββββββββββ β
β βΌ βΌ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β COLEO SERVER & EMAIL GATEWAY β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Hono API (REST + WebSocket) β β
β β - /api/brain/* - Brain state, control β β
β β - /api/arms/* - Arm status, tasks, activity β β
β β - /api/tasks/* - Task timeline, next task β β
β β - /api/discoveries - Indexed discoveries β β
β β - /api/mail/* - Maildir metadata, threads β β
β β - /api/garden/* - File ownership & touch history β β
β β - /api/proposals/* - Governance (future phases) β β
β β - /ws - Real-time updates β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β BRAIN + ARMS β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Brain β β
β β - Coordinates arms β β
β β - Reads .project/ plans, status, decisions β β
β β - Progressive task assignment (single next task per arm) β β
β β - Builds context bundles (requirements, docs, decisions, discoveries) β β
β β - Mirrors human β arm email threads via gateway-backed Maildir β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β β β
β βΌ βΌ βΌ β
β βββββββββββββββ ββββββββββββββββ ββββββββββββββββββ β
β β Architect β β Development β β QA β ... β
β β Task (arm) β β Task (arm) β β Task (arm) β β
β βββββββββββββββ ββββββββββββββββ ββββββββββββββββββ β
β β² β² β² β
β ββββββββββββββ PM / Project Management Tasks βββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β THE GARDEN β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Code, configs, docs, tests β β
β β MCP servers (git, docs, runtime, devtools, etc.) β β
β β SQLite as system of record (arms, tasks, activity, claims, config, mail) β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββClient Interfaces β
- CLI β API: The
coleoCLI treats the API server as its single source of truth for spawning, listing, and managing arms. All mutating commands are proxied through authenticated REST calls. - Web UI β API: The Observatory React app consumes the same REST and WebSocket endpoints for status dashboards, configuration, and real-time updates.
- Email Gateway β API: External email is handled through a gateway integration (Postmark recommended) with fixed sender/receiver addresses. Messages are persisted in Maildir, surfaced through
/api/mail/*, and synchronized with brain/arm coordination context.
Next Steps β
- Components - Deep dive into Brain, Arms, Garden, Observatory
- Governance - How arms will make decisions together (Phase 3)
- Distributed Architecture - Running gardens across multiple machines
- Implementation Phases - Roadmap for building this system
