Building Multi-Agent Systems: A Practical Guide to Agent Configuration and Kanban Collaboration

    This guide explains why single-agent designs break down as task complexity grows, and how a multi-agent architecture solves the problem through strict isolation, explicit state, and observable execution. It defines three core concepts (agents, configuration files, and the kanban board), specifies a four-state task machine with dependency flow rules, and walks through six implementation steps. You will also find common pitfalls to avoid, including shared context, overlapping responsibilities, a degraded kanban board, and over-automation. The result is a stable, observable, restart-safe multi-agent collaboration system built on common cloud environments.

    1. Why a Single Agent Is Not Enough: From “All-in-One Assistant” to “Division of Labor”

    Early AI coding and automation assistants mostly used a monolithic design: one agent handled requirement understanding, solution breakdown, code implementation, and verification regression. As task complexity increased, this model exposed three structural problems.

    The first is context pollution. When sub-tasks of different natures share the same session memory, early exploratory discussions, rejected proposals, and temporary debugging output keep occupying the context window, so later reasoning is disturbed by irrelevant information.

    The second is blurred capability boundaries. The larger an agent’s skill set becomes, the worse its stability often is on any single task; overly concentrated permissions also amplify the impact of mistakes.

    The third is that the process is not observable. A monolithic execution is a black-box chain: outsiders can only see the final result, with no way to tell which step a task is stuck on, who is responsible, or whether it is blocked.

    The core idea of a multi-agent architecture is to split “one very capable but very crowded assistant” into “a group of specialized, observable collaborators.” The benefits are not just parallel speedup; more importantly, they include clear responsibility boundaries, non-interfering contexts, traceable execution, and isolated single-point failures.

    2. Rigorous Definitions of Three Core Concepts

    2.1 Agent: An Execution Unit with an Independent Context

    An agent is the direct owner of a task. Whether an execution unit qualifies as an independent agent does not depend on its name, but on whether it has three mutually isolated things: a role definition (who it is, what it is good at, and what it does not do), skills and tool permissions (which capabilities it can invoke), and session memory (what it remembers). If any one of the three is shared, isolation is broken and the value of multi-agent design is weakened accordingly.

    2.2 Configuration File: A Declarative Definition of an Agent

    A configuration file is an agent’s “identity credential + user manual.” It usually exists as structured text, separated from code and manageable under version control. Its value lies in lifting the agent’s definition out of runtime state: creating a configuration file is equivalent to adding an agent, switching configuration files is equivalent to changing the executor, and modifying a configuration file is an auditable change to that agent’s behavior.

    A minimal usable configuration file typically contains the following fields (illustrative):

    1. agent:
    2. name: reviewer # Unique identifier
    3. role: Code reviewer # Role definition
    4. focus: # Areas of focus
    5. - Boundary conditions and exception paths
    6. - Interface contract consistency
    7. tools: # Tool and permission allowlist
    8. read: [repo, logs]
    9. write: []
    10. memory:
    11. scope: session # Memory isolation level
    12. ttl: 2h
    13. limits:
    14. max_steps: 40
    15. require_confirm: true # High-risk actions require human confirmation

    There are three design points: first, permissions follow the principle of least privilege, and reviewer-type roles are read-only by default; second, the memory scope is declared explicitly to avoid implicit sharing; third, step limits and confirmation policies act as brakes on automation.

    2.3 Kanban Board: The Shared State Layer for Multi-Agent Collaboration

    The kanban board is a visual task dispatch console for multi-agent collaboration, essentially a shared task table with state constraints. It lifts “who is doing what, how far along it is, and what is blocking it” out of each agent’s private memory to a public level, delivering three key properties: real-time progress visibility, no loss across process restarts, and task flow based on dependencies.

    The kanban board and agents are orthogonal: agents are executors, and the board is the coordination medium. Agents do not talk to each other directly; they hand off work by reading and writing board entries. This “board-centric” collaboration model significantly reduces coupling between agents.

    3. Task State Machine and Dependency Flow Design

    Whether the board runs reliably depends on how rigorously states are defined. The recommended minimal state set has four states:

    • Todo: registered, either unassigned or assigned but not started;
    • Doing: claimed by an agent, with the claimant and heartbeat time recorded;
    • Review: execution finished, waiting for a reviewer role or human confirmation;
    • Done: accepted, with artifact links archived.

    Two constraints must be written into the scheduling logic: first, only one executor is allowed per entry at any given moment, and claiming uses compare-and-update semantics to prevent two agents from duplicating work; second, a successor entry can be claimed only after all of its prerequisites have entered the done state.

    Dependencies are best expressed as a directed acyclic graph, with cycle detection performed at the registration stage. An illustrative structure:

    1. {
    2. "id": "T3",
    3. "title": "Implement the paginated query API",
    4. "state": "todo",
    5. "owner": null,
    6. "depends_on": ["T1", "T2"],
    7. "acceptance": ["Unit tests pass", "Contract documentation updated"],
    8. "artifacts": []
    9. }

    The acceptance field is the key to preventing “fake completion”: it turns subjective judgment into a checkable list, and the reviewer role only needs to verify item by item.

    4. Implementation Steps

    Step 1: List the roles. Divide responsibilities into four categories: planning, implementation, verification, and review. Keep the number of roles between three and five; too many significantly increases coordination overhead.

    Step 2: Write a configuration file for each role, specifying read/write permissions and the memory isolation level, and put it under version control so behavior changes are traceable and rollback-able.

    Step 3: Set up the kanban board and define states and transition rules. Get linear dependencies working first, then introduce parallel branches.

    Step 4: Break down tasks and register dependencies. The granularity should be “one agent can close the loop in a single pass”; too coarse blocks parallelism, while too fine raises scheduling costs.

    Step 5: Define conflict and exception handling policies: a claim that times out automatically falls back to todo, consecutive failures reaching a threshold escalate to a human, and high-risk write operations require mandatory confirmation.

    Step 6: Integrate general observability. Feed execution logs and metrics into logging services and monitoring alerts, and display blocking duration and failure rate on the board.

    5. Common Pitfalls and How to Avoid Them

    Context is still shared, which is the highest-frequency cause of failure. If all roles read and write the same memory, isolation is meaningless; scope memory by role and set expiration times.

    Overlapping responsibilities cause rework. When two roles are both allowed to modify the same set of files, conflicts are almost inevitable; write permissions should belong exclusively to implementation-type roles.

    The board degrades into a static checklist. If states stay in doing for a long time with no one moving them forward, introduce heartbeat and timeout fallback mechanisms.

    Over-automation. Irreversible actions such as deletion, release, and bulk changes should retain a human confirmation step, keeping automation within a rollback-able scope.

    6. Summary

    The feasibility of multi-agent collaboration does not depend on the number of agents, but on whether isolation is thorough, states are explicit, dependencies are acyclic, and acceptance is checkable. By defining roles with configuration files, carrying shared state on a kanban board, and constraining flow with a state machine, you can build a stable, observable, restart-recoverable multi-agent collaboration system on top of common cloud environments (such as a container platform combined with object storage and logging services).