AI SystemsIn Production Use

Agent Orchestration System

A multi-agent setup that runs long engineering jobs on its own, and recovers when they fail.

A lead model plans the work and routes tasks to cheaper models by difficulty. Coding agents work in parallel, progress is checkpointed, and everything is controlled from Telegram.

Inside Agent Orchestration SystemExample
ORCHESTRATOR Lead modelplans · hard tasksTelegramcontrol channelFast modelroutine tasksSQLitecheckpointsWorktree agentsparallel buildsLocal modelcheap checks

What it does

What it does

  • Breaks a large engineering task into sub-tasks and assigns each to the right model tier
  • Runs several coding agents in parallel, each in its own git worktree
  • Checkpoints every step to SQLite so a failed run resumes instead of restarting
  • Reports progress and takes commands through a Telegram bot

How it works

How it works

  1. PlanThe orchestrator splits the job into tasks with clear inputs and outputs.
  2. RouteHard tasks go to the strongest model; routine ones go to faster, cheaper tiers.
  3. BuildAgents work in parallel worktrees, so they never overwrite each other.
  4. CheckpointState is saved after each step. Token expiry or session limits trigger auto-retry.
  5. ControlStatus, approvals and new jobs all go through Telegram.

Capabilities

Key capabilities

  • Tiered, cost-aware model routing
  • Parallel git-worktree agents
  • SQLite checkpoint and recovery
  • Token-expiry detection with auto-retry
  • Telegram control channel
  • Nightly self-review cycle

Stack

Built with

  • Python
  • Claude Code
  • SQLite
  • Git worktrees
  • Telegram Bot API

Want a system like this?

I can build it around your strategy, or teach you to build it yourself.