Building Multi-Agent Systems: A Practical Guide to Agent Profiles 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. It defines three core concepts—agents as stateful execution units with independent context, profiles as versioned persistent definitions, and a Kanban board as the shared scheduling surface—then walks through the steps to build the system: task decomposition and role modeling, writing profiles with least-privilege permissions, registering capabilities through board-based communication, defining acceptance criteria, and adding persistence and observability. It also covers dependency orchestration, parallel limits, conflict handling, failure recovery, and common pitfalls. You will learn how explicit role boundaries and externalized task state deliver collaboration that is parallel, recoverable, and auditable.

    1. Why a Single Agent Is Not Enough: From “Universal Assistant” to a Division of Labor

    Early AI coding tools mostly followed a single-instance model: one agent handled requirement understanding, code retrieval, implementation, testing, and debugging all at once. As task size grows, this model exposes three structural problems.

    The first is context pollution. Subtasks of different natures share the same conversation memory, and irrelevant retrieved fragments dilute critical constraints, so output quality degrades with each turn. The second is blurred responsibility boundaries. The same prompt template has to handle both architectural decisions and formatting details, and the instructions easily conflict with each other. The third is that failures cannot be isolated. When one stage goes wrong, there is no clear rollback point; the only option is to start over, and a restart loses all progress.

    The core idea of a multi-agent architecture is to split “one executor that can do everything but masters nothing” into “a set of execution units with clear boundaries that can evolve independently and be scheduled in parallel,” and then organize them with an explicit task coordination mechanism. The three concepts below correspond to role definition, capability carrier, and scheduling hub in this system.

    2. Rigorous Definitions of the Three Core Concepts

    2.1 Agent: An Execution Unit with Independent Context

    An agent is not a single function call but a stateful working entity. It has at least four dimensions: persona and responsibility boundaries (what it should and should not do), the available skill set (how it can act), tool and data access permissions (its effective radius), and conversation memory (how much history it perceives).

    The key design principle is “single responsibility.” One agent is responsible for only one type of clearly verifiable output—for example, interface design only, test generation only, or code review only. The narrower the responsibility, the shorter the prompt, the easier the evaluation, and the easier it is to locate the cause of a failure.

    2.2 Profile: The Persistent Definition of an Agent

    A profile is an agent’s “identity credential plus operating manual.” It serializes the four dimensions above into version-controllable structured data. Its value lies in three points: reproducibility (the same profile starts the same role in any environment), portability (switching machines or sessions does not lose the role definition), and auditability (changes to role permissions leave a record).

    A sample profile structure is shown below (field names are generic expressions, not a specific product interface):

    1. profile:
    2. id: reviewer-01
    3. role: Code Reviewer
    4. scope: Review only; do not modify source code
    5. skills:
    6. - Static defect pattern recognition
    7. - Readability and naming consistency checks
    8. permissions:
    9. read: [src/**, docs/**]
    10. write: []
    11. memory:
    12. type: session
    13. ttl_turns: 20

    Creating a profile is equivalent to adding an agent; switching profiles is equivalent to swapping the executor. This layer of abstraction reduces “multi-agent” engineering to “multiple profiles plus one scheduler,” substantially lowering implementation cost.

    2.3 Kanban Board: A Visual Scheduling Console for Multi-Agent Collaboration

    A Kanban board is a shared state whiteboard that turns tasks from abstract intent into trackable entities. It solves three problems a single instance cannot: task visibility (who is doing what and where things are stuck is clear at a glance), persistent progress (state is externalized to storage and survives process restarts), and orchestratable dependencies (downstream tasks flow automatically once upstream tasks complete).

    Typical columns are To Do, In Progress, Pending Acceptance, and Done, with a Blocked column added when necessary. The minimal field set usually includes task ID, title, acceptance criteria, responsible agent, priority, dependency list, status, retry count, and output reference.

    3. Steps to Build a Multi-Agent System

    Step 1: Decompose tasks and model roles. Draw the target workflow as a directed graph whose nodes are deliverables rather than actions—for example, “interface contract,” “implementation code,” “test cases,” and “review conclusion.” Map each deliverable to one role, and avoid giving two roles write access to the same deliverable.

    Step 2: Write a profile for each role. Specify the responsibility boundaries, skill list, read/write permissions, and memory policy. Permissions follow the least-privilege principle: review roles are read-only, implementation roles get write access limited to specific directories, and scheduling roles never touch business code.

    Step 3: Register capabilities and agree on an interaction protocol. Roles do not talk to each other directly; they communicate through board tasks and output references. This makes interactions asynchronous, recordable, and replayable, avoiding the error accumulation caused by chained conversations.

    Step 4: Define acceptance criteria and transition rules. Every task must have a decidable completion condition, or the board degrades into a to-do list. It is recommended to write acceptance criteria as executable checks, such as “unit tests pass with no new warnings.”

    Step 5: Add persistence and observability. Write board state to external storage (such as a relational database or structured files in object storage), and record the timestamp, executor, and reason for each state transition, forming a closed loop with logging services and monitoring alerts.

    4. Collaboration Mechanics: Dependencies, Parallelism, and Conflict Handling

    For dependency orchestration, a “fan-out and fan-in” structure is recommended: one design task fans out into multiple implementation tasks, which then converge into a unified acceptance task. Compared with a serial chain, it shortens the critical path, and a failure in a single branch only requires rerunning that branch.

    For parallel control, the board needs a “capacity limit”—the maximum number of in-progress tasks allowed in the same column. Parallelism without a limit causes resource contention and frequent context switching, which actually reduces overall throughput.

    For conflict handling, rely on two rules: write-permission mutual exclusion (only one role can write to a given path at a given moment) and priority arbitration (high-priority tasks may preempt, but must first return to To Do and then be claimed again, keeping state traceable).

    For failure recovery, because state is externalized, the scheduler only needs to scan unfinished items on the board after a restart to continue; combined with a maximum retry count and blocked markers, this prevents bad tasks from looping indefinitely.

    5. Common Pitfalls and Engineering Recommendations

    The first pitfall is splitting roles too finely, so scheduling overhead exceeds the benefit; it is recommended to keep the number of roles between three and seven. The second is treating the board as a chat area and stuffing it with long free-form text; it should hold only structured fields and output references. The third is unbounded memory growth; set a turn or capacity limit and apply summary compression. The fourth is the lack of human checkpoints; high-risk changes should have a manual acceptance column.

    If you need elastic compute to run multiple agents in parallel, the execution layer can be deployed on a container platform and scaled elastically based on task queue length; artifacts and board state can land in object storage and a relational database respectively, with logs and metrics routed to logging services and monitoring alerts. Baidu AI Cloud offers corresponding product forms across these general capability categories, so you can select based on your existing architectural conventions without changing the upper-layer role and board design.

    6. Summary

    The complexity of a multi-agent system lies not in the “number” of agents but in “boundaries” and “state.” Use profiles to solidify role boundaries, use a Kanban board to externalize task state and dependencies, and use least privilege and acceptance criteria to constrain behavior—this yields parallel, recoverable, and auditable collaboration at relatively low cost. It is recommended to start with two or three roles and a four-column board, validate the transition rules, and then expand gradually.