I Run a Fleet of AI Agents Across Three Machines. Here's What Broke. - Kyle Jaejun Lee, KRAFTON

· Source: AI Engineer · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Cloud Computing & IT Infrastructure · Depth: Intermediate, medium

Summary

Kyle Jaejun Lee, an engineer at KRAFTON, details his experience running a fleet of AI coding agents across three machines (MacBook, Linux A, Linux B) and the challenges encountered. Initially, managing multiple agents manually led to human cognitive overload. To scale, Lee implemented a hierarchical agent structure (CEO, VP, manager, worker) with scoped contexts and approval boundaries, storing agent state in disk files rather than model context windows. He also built a review gateway for plan approval. When scaling to multiple machines, issues arose, including agents failing to delegate, out-of-memory errors, credential collisions, and job loss on laptop sleep. Solutions involved a CLI harness for forced delegation, separating machine-specific state with Git for context transfer, collapsing review gateways into one central point, and using Discord as a single router for fleet control. Lee acknowledges remaining challenges like consistency and resource management, pointing towards Kubernetes for underlying infrastructure.

Key takeaway

For AI Engineers or MLOps teams scaling multi-agent systems, recognize that manual orchestration and in-model context management are critical bottlenecks. You should implement hierarchical agent structures with externalized, disk-based state to ensure persistence and scalability. Centralize review processes and leverage existing infrastructure solutions like Kubernetes for compute, secrets, and tools, rather than reinventing these foundational layers. This approach prevents cognitive overload and enables robust, distributed agent operations.

Key insights

Managing multiple AI agents requires structured orchestration to overcome human cognitive bottlenecks.

Principles

Method

Implement a hierarchical agent structure with disk-based workspaces for state, a central review gateway for approvals, and Git for inter-machine context transfer. Clear and reload model context instead of compacting.

In practice

Topics

Best for: AI Engineer, MLOps Engineer, AI Architect

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by AI Engineer.