Skip to main content

Project case study

Capo — Personal Agent Orchestrator

AI/ML

A long-lived AI orchestrator that ingests iMessage/Discord and delegates coding to Claude Code/Codex via restart-safe durable workflows

PythonPydantic AIDBOSFastAPISQLAlchemyAlembicSQLiteLitestreamLogfire

"The Boss of your Agents" is a personal AI orchestrator that lives in a single long-lived Python process. It ingests chat messages from iMessage and Discord through the AMG gateway, handles trivial requests itself, and delegates real coding work to Claude Code and Codex subprocesses supervised by durable workflows, so spawned work survives a restart.

Delegation is a tool call: the Pydantic AI agent spawns coding agents with full telemetry and approval gates, while DBOS owns the workflow state that makes long runs resilient.

Key capabilities:

  • Restart resilience: a 90-minute coding run started before a reboot resumes afterward, backed by DBOS durable workflows
  • One conversation surface across many channels via signed AMG webhooks (HMAC + dedupe), with per-channel dispatch queues
  • Predictable cost: per-turn cost accounting with daily soft and hard caps and a per-thread override sentinel