The 4-Agent Engineering Swarm: How 1 Human and 4 AI Models Rebuilt Nwabu OS
How Cecil Garapo and I managed Claude, Codex, Antigravity, and OpenCode to design, code, and 4-way audit an entire studio operating system.
A year ago, I made a decision that felt either visionary or completely reckless: I was going to tear down the entire Python foundation of Nwabu OS—our studio operating system—and rebuild it from the ground up in Rust and SurrealDB.
I didn't have an engineering department or a venture-backed roster of systems developers. The entire human team consisted of two people: myself as the lead builder, and Cecil Garapo supervising my workflows, stress-testing decisions, and keeping architectural drift in check.
To bridge the gap between a two-person team and an enterprise-scale software build, I turned to AI. But not as a casual autocomplete or a glorified copy-paste assistant.
Instead, I set up a disciplined, 4-agent engineering swarm: Claude, Codex, Antigravity, and OpenCode.
Each model was assigned specific, non-overlapping responsibilities based on its distinct cognitive strengths. Over the course of twelve months, this multi-agent loop planned, structured, coded, audited, and verified the systems that now run over 80% of Nafuna Africa's studio operations.
Here is the exact framework we used to run that swarm without letting it descend into chaotic hallucinations.
1. Mapping Cognitive Strengths: Who Did What
The biggest mistake people make with AI-assisted software engineering is treating every model as a general-purpose hammer. Large Language Models have distinct reasoning flavors, memory horizons, and architectural inclinations. If you ask a business-logic model to draft low-level async Rust traits, you get friction. If you ask a code generation specialist to design an end-to-end sales funnel, you get generic abstractions.
We divided the labor intentionally:
| Agent / Model | Primary Superpower | Core Responsibilities in the Swarm |
|---|---|---|
| Claude | Deep logic synthesis & systems planning | Core architectural logic, state machine boundaries, edge-case mitigation, prompt harness contracts. |
| Codex | Domain mapping & business workflows | Translating messy studio realities (campus cohorts, milestones, client invoicing) into strict domain schemas. |
| Antigravity | End-to-end multi-agent execution | Sandboxed workspace execution, local file manipulation, dynamic tooling, compile-cycle orchestration. |
| OpenCode | Independent verification & script grounding | Fast alternative implementations, secondary sanity checks, independent script execution, and unvarnished peer review. |
When a new feature—like our custom delivery milestone engine or automated drip triage—was initiated, it did not go straight to code. Claude laid out the algorithmic logic and concurrency contracts, while Codex structured how that logic connected to real-world business workflows.
Only once the directive was locked did code generation begin.
2. Preventing Context Rot: The Subagent Spawning Pattern
Long AI context windows are deceptive. As a conversation stretches across hundreds of lines of code, test outputs, compiler errors, and casual clarifications, "context rot" sets in. The model begins hallucinating nonexistent struct fields, forgetting early constraints, and generating lazy diffs.
To prevent this, we enforced a strict subagent spawning rule:
- Clean Context Windows: Whenever an agent was tasked with an implementation step, it received a fresh, clean context window.
- Targeted Hand-off: It was handed only the necessary specification, the targeted crate interface, and the exact compilation target.
- Immediate Teardown: Once the subagent produced its code and tests, it handed the artifact back to the orchestrator and was terminated.
By keeping coding sessions isolated and short-lived, hallucinations dropped to near zero. Every subagent was laser-focused on a single slice of the codebase.
3. The 4-Way Auditing Consensus Gate
In traditional software development, code reviews can become rubber-stamping exercises or subjective debates. In an AI-driven development environment, bad code compiles just easily enough to hide catastrophic architectural debt.
Our solution was the Revolving 4-Report Audit:
Before any significant crate module or data migration was marked complete, it had to pass through an auditing gauntlet where all four agents—or a revolving triad—evaluated the exact same diff independently.
Each agent generated an unedited audit report focusing on its strength:
- Report 1 (Logic & Edge Cases - Claude): Did we introduce deadlocks? Are there unhandled
NoneorErrcases in our Rust match expressions? - Report 2 (Business Integrity - Codex): Does this state transition violate how our studio actually handles client approvals or campus enrollments?
- Report 3 (Execution & Tooling - Antigravity): Does this compile cleanly against our workspace crates? Does it honor our zero-line-growth policy on main entrypoints?
- Report 4 (Grounding & Alternative View - OpenCode): Is there a simpler, more idiomatic standard library approach? What did the other three models miss?
I would then sit down with Cecil Garapo to review the conflicting opinions across the four reports. If all four agreed on a vulnerability, it was an immediate fix. If they disagreed on architectural direction, Cecil and I made the final human call.
This consensus gate eliminated the blind spots that inevitably occur when relying on a single AI provider.
4. The Human Anchor: Why Supervision Matters More Than Ever
There is a popular myth circulating in the tech ecosystem that autonomous agents make human leadership obsolete.
Our year rebuilding Nwabu proved the exact opposite.
AI models are extraordinary engines of velocity, but they have zero intrinsic sense of purpose. Left unchecked, an AI will happily spend three days over-engineering an infinitely scalable plugin bus for a feature you don't even need yet.
This is where having Cecil Garapo supervising the workflows was indispensable. Cecil wasn't writing syntax in the IDE; he was the executive anchor. Whenever I was tempted to let the agents take an expansive architectural detour, Cecil's review brought us right back to first principles:
- Does this solve an active operational bottleneck at Nafuna Africa?
- Is this crate interface lean enough to maintain 12 months from now?
- Are the agents solving the real problem, or are they solving a problem they created for themselves?
The combination was unbeatable: Cecil's human oversight + my hands-on prompt orchestration + a disciplined 4-agent swarm.
Looking Ahead to Part 2
Orchestrating agents is only half the battle. If your underlying technology stack is fragile, your agents will simply write fragile code at 10x speed.
In Part 2 of this series, I dive into the technical core: Why we ripped out Python and LangChain, how we engineered a custom agent harness in Rust inspired by the DeepSeek harness whitepaper, and how SurrealDB transformed our data model.
Your story deserves to be heard.
Turn your complex ideas into captivating, culturally authentic campaigns and automated creative workflows.
