Multi-Agent Collaboration: Five Design Principles and a Single-Machine Implementation

    This article examines multi-agent collaboration from an engineering perspective, starting with a practical bottleneck: as developers run multiple LLM agent sessions, human attention rather than compute or model capability becomes the limiting factor. It outlines five design principles for a supervisor-style multi-agent system: a persistent supervisor, independent worker sessions, a single human-facing entry point, scheduled inspections, and persisted task state. It then maps each principle to a single-machine implementation using a dashboard, isolated sessions, decision cards, timer-based checks, and file-based persistence. The article also discusses deliberate trade-offs, additional mechanisms such as acceptance gates and context push, and a three-layer file-based memory system. Readers get a concrete architectural pattern for moving from individual AI assistants to coordinated agent teams while keeping human involvement focused on real decisions.

    Multi-Agent Collaboration: From “AI Assistant” to “AI Team” Engineering Practice

    1. Starting Point: Human Attention Is the First Bottleneck

    As large language models become more capable, it is now common for developers to keep multiple agent windows open at the same time: one writes code, one searches documentation, one runs tests, and one performs reviews. But a counterintuitive phenomenon soon appears: the bottleneck is not compute, and it is not model capability. It is the human.

    Every window waits for you: to paste context, confirm results, and answer its questions. The more windows there are, the more the human becomes an operator pulled between sessions. The switching cost far exceeds the time saved. The first problem a multi-agent system must solve is not “how to make more agents do work,” but “make the human appear only where a human is truly needed.”

    This is the starting point for a type of supervisor-style multi-agent design that has been publicly discussed recently, often referred to as a “Super Agent.” This article first breaks down five core design principles from this type of design, then presents a complete single-user, single-machine implementation, including trade-offs, extensions, and the context and memory system that supports the whole mechanism.

    2. Five Core Design Principles

    Principle 1: A Persistent Supervisor

    The system has a long-running “supervisor” role. It does not execute concrete tasks itself. Instead, it understands requirements, decomposes tasks, dispatches them to workers, aggregates results, and reports to the human. The supervisor is the “brain” of the system and the human’s only point of contact.

    From an architectural perspective, this is a typical orchestrator pattern. Compared with letting multiple agents talk directly to each other in a mesh (O(n²) complexity), a star topology converges all communication at the supervisor. State is traceable, responsibility is clear, and complexity drops to O(n).

    Principle 2: Workers Operate Independently, Division of Labor by Architecture

    Each worker has an independent session and independent context. This is critical: if all workers share the same conversation history, context will rapidly expand and contaminate itself. The test agent’s error logs can drown out the coding agent’s design notes.

    Division of labor does not rely on “reminders in the prompt.” It relies on the architecture itself: each worker sees only its own task brief and its own memory space, so it naturally cannot cross boundaries. This is the engineering principle of “enforce behavior through mechanisms” rather than “hope for behavior through prompts.”

    Principle 3: A Single Door to the Human

    When multiple workers operate in parallel, if every worker that has a question directly interrupts the human, the human’s attention is fragmented. Therefore, the design specifies that all requests requiring human decisions are routed to the supervisor, which presents them through a single entry point—for example, a “waiting for your decision” card.

    After the human answers on the card, the answer is routed directly back to the worker that asked the question. The human does not need to find the corresponding session in the middle. This turns “the human looking for context” into “context finding the human,” and it is the core optimization for attention economy.

    Principle 4: Scheduled Inspections

    The supervisor cannot wake up only when the human speaks. It needs to periodically inspect the status of each worker: who is making progress, who is blocked, and who has completed work and is waiting for acceptance.

    A key engineering detail is that inspections should “not wake the model when nothing has changed.” If a worker’s state has not changed since the last inspection, there is no need to consume another large-model call—skip it directly. This is both cost control and a debounce design that prevents the inspection itself from producing meaningless output.

    Principle 5: Persisted State and Pause/Resume

    Tasks can span hours or days. The human may need to shut down the machine, attend a meeting, or sleep. Therefore, the system must support persisting task briefs, each worker’s progress, and pending decisions, so it can pause at any time and resume from the checkpoint instead of starting over.

    This requires strictly separating “volatile session state” from “persistent task state.” The latter is written to disk as files, while the former can be rebuilt at any time.

    The Five Principles Together

    Principle Problem Solved
    Persistent supervisor No one coordinates; the human is forced to act as coordinator
    Independent worker sessions Context contamination and context explosion
    Single interaction entry point Attention fragmented by multiple interruptions
    Scheduled inspections No one follows up on progress; stalls go undetected
    Persisted state Cannot pause; tasks are tied to continuous online presence

    Together, the goal is one sentence: the agent team runs automatically, and the human only makes real decisions.

    3. Single-Machine Implementation: Mapping Each Principle

    Below is an implementation approach for “one person, one computer,” mapped one by one to the five principles above.

    1. Supervisor Session + Supervisor Dashboard

    Implement a persistent supervisor session and pair it with a dashboard. The dashboard lists all tasks, each worker’s status (in progress / blocked / pending acceptance / completed), and the number of current pending decisions. The dashboard is the human’s instrument panel for observing the team, and it is the physical carrier of the “single door” principle.

    2. One Independent Session per Worker

    When dispatching a task, create a new session for each worker. The initial context injects only two things: the worker’s task brief and a context push (described later). Sessions are physically isolated from one another.

    1. workspace/
    2. ├── tasks/
    3. │ └── task-001/
    4. │ ├── brief.md # Task brief
    5. │ ├── journal.md # Work journal
    6. │ ├── decisions.md # Decision log
    7. │ └── handbooks/ # Worker handbooks
    8. └── inbox/
    9. └── pending.md # Pending decisions ("waiting for you")

    3. “Waiting for Your Decision” Cards with Answers Routed Directly to Workers

    When a worker encounters a question that requires a human decision, it does not interrupt the human directly. Instead, it writes a record to the pending list. During inspection, the supervisor finds pending items and generates cards on the dashboard. After the human answers, the system writes the answer into that worker’s context and wakes it to continue. The human never needs to know which worker the answer should go to.

    4. Scheduled Inspections (Simplified)

    Implement a timer (for example, every 5 minutes) with the following inspection logic:

    1. for each worker:
    2. read its journal file
    3. if file mtime has not changed since last inspection:
    4. continue # no change, do not wake the model
    5. else:
    6. call supervisor model to assess progress: in progress / blocked / completed pending acceptance
    7. update dashboard

    5. Task Brief, Journal, Handbook + Pause/Resume

    The three files under each task directory form a complete archive: the task brief defines the goal, the journal records the process, and the decision log captures conclusions. Pausing means stopping all sessions. Resuming means rebuilding worker context from the “task brief + context push” and continuing from the checkpoint.

    4. Trade-offs and Extensions

    What We Deliberately Left Out

    • Cloud compute-storage separation: The single-machine version has no cross-machine scheduling requirement. All state is stored on the local disk, avoiding the significant complexity of distributed state synchronization.
    • Event triggers, topic direct channels, and background auto-repair: These three depend on a more complex event bus. The initial version uses scheduled inspections plus explicit reporting as a replacement. It is sufficient and controllable.

    Four Additional Pieces

    1. Gate-based acceptance: A worker self-reporting “completed” does not count. The supervisor must check each acceptance criterion in the task brief item by item and release the task only after it passes. If it fails, the task is returned with reasons. Multiple gates can be configured, such as supervisor acceptance followed by final human acceptance.
    2. Context push: When a new session starts, automatically inject relevant historical decisions and summaries of upstream outputs into the context to solve the “amnesia on duty” problem.
    3. Worker handbooks: Prewrite operation manuals for each role type (coding, testing, review)—responsibility boundaries, output format, and escalation paths—so worker behavior is predictable.
    4. Guard: Intercept and alert on out-of-band changes by workers (modifications outside the task brief’s scope). In practice, even if a one-line out-of-scope requirement is left at the end of a task brief, the guard should be able to identify and report it rather than silently execute it.

    5. Supporting Foundation: A Three-Layer Memory System

    The whole mechanism runs on a simple file-based memory system with three layers:

    • Work journal (journal): An append-only record of “what was done and why.” It is the raw material for inspections and context pushes.
    • Index: A global index of tasks and artifacts, allowing the supervisor to locate things quickly without reading all history.
    • Decision log (decisions): Records only conclusions, not process—technical choices, interface agreements, and rejected options—to prevent the same issue from being discussed repeatedly.

    Memory is written to files rather than relying on model context. In exchange, context can be rebuilt at any time, capacity is not limited by the context window, and state is naturally persistent—which connects directly back to Principle 5.

    6. Conclusion

    The essence of multi-agent collaboration is not stacking more model calls. It is redesigning the boundary of human-machine division of labor: the supervisor coordinates, workers execute, the memory system sustains continuity, inspections follow up, gates enforce quality, and the human appears only where judgment is truly needed. With five principles and a file-based memory system, a single machine is enough to start, and each layer can evolve toward more complex distributed forms as needed.