Kyle Lee shares his experience managing a fleet of AI coding agents across three machines, detailing failures and solutions for scaling and control.
Key Takeaways
- Scaling AI agent fleets requires hierarchical organization to reduce human cognitive load.
- Persisting agent state externally on disk improves reliability and recovery over in-model context compaction.
- Centralized plan approval gateways enable better alignment and automation.
- Multi-machine orchestration demands careful state synchronization and conflict resolution.
- Unified control interfaces like Discord bots can simplify managing distributed AI agents.
Summary
- Kyle runs a fleet of AI coding agents on three machines: a MacBook and two Linux boxes, managing long and short-running tasks.
- Initially overwhelmed by managing multiple agent contexts, he created a hierarchical agent organization with CEO, VP, manager, and worker roles.
- He externalized agent state from model context windows to disk files to avoid slow and lossy context compaction.
- Built a review gateway to approve plans before execution, automating control and reducing manual oversight.
- Encountered multiple failures including improper task delegation, overcrowded tmux panes, memory exhaustion, credential collisions, and machine instability.
- Offloaded tasks from the MacBook to Linux machines to improve resource allocation and reliability.
- Implemented Git-based context syncing and conflict management across machines with per-machine directories and pull requests.
- Consolidated multiple review gateways into a single always-on control point to simplify management.
- Used Discord as a unified remote control interface with one bot per machine for fleet coordination.
- Currently working on solving consistency, handoff abstraction, and resource management challenges, aiming to leverage Kubernetes for infrastructure.
Chapters
- 00:00Introduction and Setup of AI Agent Fleet
- 00:32Real-World Usage and Initial Challenges
- 00:53Overwhelmed by Multiple Agent Contexts
- 01:28Building a Hierarchical Agent Organization
- 01:59Externalizing Agent State to Disk
- 02:43Implementing a Review Gateway for Alignment
- 04:00Failures Encountered on Single Machine
- 06:09Scaling to Multiple Machines and Syncing State
- 07:05Consolidating Control and Using Discord as Router
- 08:06Current Challenges and Future Directions











