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

    This guide explains why single-agent setups break down on long tasks and how multi-agent systems solve the problem through three core concepts: agents with narrow responsibilities, version-controlled configuration files, and a shared kanban board. You will find a step-by-step build process, including role splitting by workflow stage, least-privilege tool permissions, card contracts with acceptance criteria, and scheduling rules, along with the key engineering concerns around context passing, rollback, persistence, observability, and cost control. The article also lists common pitfalls to avoid and outlines how to build a restartable, traceable, and incrementally scalable automation workflow.

    1. Why a Single Agent Is Not Enough

    Most AI coding and automation projects start with one general-purpose assistant doing everything: reading requirements, writing code, running tests, and producing documentation. As the task chain grows longer, a single agent exposes three structural problems.

    The first is context pollution. Different tasks bring conflicting tech stacks, terminology, and constraints. Once all of them are packed into the same session memory, the model’s attention is diluted and output quality degrades with each turn.

    The second is blurred responsibility boundaries. When one role handles both architecture decisions and detailed implementation, the evaluation criteria pull against each other, making it hard to optimize prompts and tool sets for a specific stage.

    The third is invisible progress. When a long task is interrupted, the progress lives only in the session context. It is lost on restart, and no second person can take over.

    The essence of a multi-agent approach is to split “one all-capable assistant” into “a group of single-responsibility execution units that can evolve independently,” then orchestrate them with an externalized task carrier. The three concepts below map to these three layers.

    2. Clear Definitions of the Three Core Concepts

    Agent: An Execution Unit With a Single Responsibility

    An agent is an execution unit with its own persona, skill scope, and memory space. Its key property is not being “smarter” but being “more focused.” An agent responsible for requirement clarification only needs tools to read code and ask questions, while an agent responsible for testing needs execution and assertion capabilities. Once responsibilities are narrowed, prompts can be shorter and stricter, and failure modes become more concentrated and easier to locate.

    Configuration File: The Identity and Manual of an Agent

    A configuration file turns an agent’s abstract definition into version-controllable text. It typically contains four parts: identity and behavior rules, a whitelist of available skills and tools, memory and context policy, and the default output format. Its engineering value comes from three properties: reusability (the same configuration starts different instances across tasks), auditability (changes go through code review), and switchability (a different role can take over the same task without rewriting the workflow). Creating a configuration is equivalent to adding an agent; switching configurations is equivalent to replacing the executor.

    The following is an illustrative configuration structure. Field names only explain their purpose and do not represent the interface of any specific product:

    1. agent:
    2. name: reviewer
    3. role: Code review; outputs only an issue list and suggestions, never modifies files directly
    4. tools: [read_file, search_symbol, run_static_check]
    5. memory:
    6. scope: task # Session-level; reclaimed when the task ends
    7. carry_over: false # Does not inherit the upstream agent's raw conversation
    8. output:
    9. format: checklist # Structured output, easy for downstream parsing
    10. must_include: [file, line, severity, suggestion]

    The most important fields here are carry_over and output.format. The former determines whether context leaks across roles; the latter determines whether agents can hand off work in a machine-parseable way. Together they are the dividing line between a multi-agent system that runs reliably and one that does not.

    Kanban Board: An Externalized Task Scheduling and Collaboration Interface

    A kanban board is a shared task whiteboard for all agents. Tasks exist as cards and move through “To Do -> In Progress -> Done.” Each card records the assignee, priority, dependencies, and an artifact summary. It solves three problems that conversation alone cannot: state persistence (no loss on restart), progress visibility (a human can step in at any time), and dependency-driven execution (successors are triggered automatically once prerequisites are complete).

    One common misconception needs clarifying: a kanban board is not a “chat group” between agents. Agents should not collaborate by shouting at each other in natural language; they should collaborate through card states and structured artifacts. The former is not reproducible and hard to debug; the latter can be replayed and tested.

    3. Steps to Build a Multi-Agent System

    Step 1: Split Roles by Workflow Stage

    Do not split by “department”; split by “process step.” A usable minimal combination is: a planner who breaks requirements into cards with acceptance criteria; an implementer who codes a single card; a verifier who runs checks and fills in the conclusion; and a reviewer who summarizes risks. Keep the number of roles between four and six. More roles significantly amplify coordination costs.

    Step 2: Apply Least Privilege to Each Role

    A tool whitelist is a security boundary, not a convenience setting. Write access goes only to the implementer, execution access only to the verifier, and the planner has only read and card-creation permissions. This way, even if an agent makes a wrong judgment, the blast radius is limited to a single stage.

    Step 3: Define the Card Contract

    Every card must contain a decidable completion condition; otherwise the “Done” state cannot be confirmed by a machine. Recommended fields:

    1. {
    2. "id": "T-102",
    3. "title": "Add boundary cases for config parsing",
    4. "assignee": "verifier",
    5. "depends_on": ["T-101"],
    6. "acceptance": ["New cases cover empty input", "Zero static check warnings"],
    7. "artifact": "Test report path or conclusion summary"
    8. }

    depends_on drives dependency flow, acceptance provides the basis for automated acceptance, and artifact lets downstream work continue without tracing back through the upstream conversation.

    Step 4: Set Scheduling Rules

    The scheduler needs only three rules: first, always pick the highest-priority task with no unmet dependencies; second, only one executor is allowed per card at any given moment, avoiding concurrent write conflicts; third, when a card enters In Progress, a lease timestamp must be written. If it is not updated before the timeout, the card reverts to To Do, preventing a task from being “occupied forever.”

    4. Key Engineering Issues in Collaboration

    Context passing. Upstream writes only conclusions, diff summaries, and key paths to the card, not the full conversation. This controls context size and prevents irrelevant information from interfering with downstream judgment.

    Conflicts and rollback. When the verifier rules a card as failed, the card should revert to To Do with the failure reason attached, rather than retrying repeatedly inside the original executor’s context. Rollback is a convergence mechanism; retries often amplify deviation.

    Persistence and recovery. Card states must be stored in external storage. After a process restart, the scheduler rebuilds the view and continues. This is also the prerequisite for “no loss on restart.”

    Observability. Record the time, executor, duration, and result of every state transition to form a replayable trace. When a quality issue appears, you can pinpoint the specific role and specific card instead of vaguely tuning a global prompt.

    Cost control. Set turn and resource limits per card. When a limit is exceeded, mark the card as needing human intervention, preventing the automated flow from spinning idle on a few hard problems.

    5. Common Pitfalls

    One is treating the number of agents as a capability metric, where overlapping roles cause duplicated work and mutual vetoes. A second is letting agents negotiate in natural language, making the process non-reproducible. A third is cards lacking acceptance criteria, rendering the completion state meaningless. A fourth is all roles sharing the same memory, which degrades into a single agent at a higher cost. A fifth is missing a human gate, letting high-risk changes land without confirmation.

    6. Summary

    The complexity of multi-agent collaboration lies not in “many” but in “clear boundaries, parseable handoffs, and persistent state.” First split roles by workflow stage and use configuration files to lock down responsibilities and permissions. Then use a kanban board to carry tasks, dependencies, and artifacts. Finally, fill in rollback, recovery, and observability mechanisms. This yields a restartable, traceable, and incrementally scalable automation collaboration system. If you need elastic compute and state storage support, you can use a container platform to host execution units, object storage to hold cards and artifacts, and logging plus monitoring and alerting services for tracing. These general capabilities are sufficient to cover most implementation scenarios.