Case study, personal project, 2026

Agent Orchestra

Give it any task: an orchestrator agent plans it, creates its own specialist agents, and keeps looping until an independent checker verifies every piece. ChaCha PA is the web app around it, for laptop and phone.

Role
Designer and builder, with Claude Code
Stack
Python, Claude Agent SDK, FastAPI
Web
React 19, Vite, TypeScript
Status
Working; tested offline
agent-orchestra / demo mode
Demo

The problem

A single model working through a long task can stop early, skip a step or call unfinished work done. Agent Orchestra splits the task and makes every piece pass an independent check before it counts.

How it works

TaskOrchestratorplans, creates agentsWorkercatalog toolsCheckerread-onlyFinishall tasks passedFeedback, retry

What was built

  • An orchestrator that writes each worker's system prompt and picks its tools from a catalog; it cannot invent tools, and workers can never create agents.
  • Three loops: the agent loop, a worker → checker → retry loop with feedback, and an outer loop that replans on failure and refuses to finish while tasks are open.
  • ChaCha PA: a FastAPI server and React app to start a task and watch the team work live, with approvals, history and saved teams that run on a schedule.
  • Outward actions (send, post, book) always wait for the user's approval; shell access is off by default and sandboxed when on.

Results

144engine and server tests, offline
42web tests
3loops: agent, inner, outer
0model calls in the test suite

Decisions

  • Tests never call a model: the runner is faked, so the suite is fast, free and repeatable.
  • The run log (one JSON line per event) is the source of truth; everything else can be rebuilt from it.
  • It never handles logins: it runs the installed Claude Code with whatever sign-in the user already has.
  • Built spec-first with Claude Code, which authored most commits under my direction.

← All projects