Multi-Agent Collaboration in Practice: Building an Agent Team with Kanban Scheduling

    This article explores the design logic and implementation of multi-agent systems. It breaks down core concepts including Agents, Profiles, and Kanban scheduling, explains when to use multiple agents, and provides a step-by-step guide to building a functional collaboration system. It also offers best practices and common pitfalls to avoid when managing complex AI workflows.

    Multi-Agent Collaboration in Practice: Building an Agent Team with Kanban Scheduling

    As large language models (LLMs) become more capable, developers are increasingly moving beyond solving everything in a single chat window and are exploring how multiple specialized agents can collaborate. This article explains the design logic behind multi-agent systems and walks you through building a runnable collaboration framework.

    1. Three Core Concepts

    Before getting hands-on, it is crucial to understand three key terms to avoid getting lost later.

    1. Agent: Your Dedicated Assistant

    An Agent is a runtime unit that carries specific responsibilities. Each Agent has its own “persona” (defined by system prompts), a specific set of skills (the tools it can call), and independent memory (historical conversation context). Multiple Agents do not interfere with each other—a researcher won’t write code, and an engineer won’t polish copy. This isolation is key to reducing error rates.

    2. Profile: The Agent’s ID and Manual

    A Profile is the static definition of an Agent, typically containing the following parts:

    1. {
    2. "name": "researcher",
    3. "role": "Industry researcher, responsible for information retrieval and material organization",
    4. "tools": ["web_search", "note_take"],
    5. "memory_policy": "Keep summary of recent 10 conversation turns"
    6. }

    Understanding one equation is enough: Creating a Profile = Creating an Agent; Switching a Profile = Switching to a different assistant. This brings two engineering benefits:

    • Versionable: Profiles are essentially configuration files that can be put into version control, making persona iterations traceable and rollback-able.
    • Reusable: The same Profile can be loaded repeatedly across different projects and sessions, avoiding the need to redefine the role every time.

    3. Kanban: The Dispatch Center for Multi-Agent Collaboration

    Kanban originates from the visual management concept in lean production and acts as the “task scheduling center” in a multi-agent system. A Kanban board is usually divided into three basic columns:

    To Do → In Progress → Done

    Tasks exist as cards, with each card containing a description, the assigned Agent, priority, and dependencies. Compared to having a master Agent “verbally” assign tasks in a conversation, Kanban has three decisive advantages:

    • Persistent: Task states are persisted to disk, surviving process restarts. Long tasks can continue across multiple sessions.
    • Trackable: Everyone can see the overall progress at any time, making it clear if any part is stuck.
    • Dependency Flow: You can declare that “Task B can only start after Task A is completed.” The system automatically schedules based on dependencies, forming a pipeline.

    The principle for choosing between two task assignment methods is straightforward:

    • Short tasks needing immediate results: Use synchronous delegation (the master Agent directly calls the sub-Agent and blocks waiting for the return)—simple and direct.
    • Long tasks, parallel multi-Agent work, tracking needed: Use Kanban. It is persistent and traceable, making it the preferred method beginners should master.

    2. When Do You Actually Need Multiple Agents?

    Do not blindly stack Agents. The more Agents you have, the higher the coordination cost. The following five scenarios justify splitting tasks:

    1. Highly Differentiated Task Types (The Core Criterion)

    When tasks span multiple domains requiring completely different skills, a single Agent will experience “persona drift”—acting as a researcher one moment and a programmer the next. Contexts pollute each other, and output quality drops significantly.

    Typical example: Completing an “AI Industry Analysis Report” can be split into three roles:

    • Researcher: Calls search tools to filter and organize materials.
    • Engineer: Writes data collection scripts to scrape and save data.
    • Writer: Drafts the report based on the materials, handling structure and formatting.

    2. Parallel Subtasks Requiring Simultaneous Work and Final Aggregation

    When multiple subtasks have no dependencies, parallel execution significantly shortens total time. For example, in competitor research: Agent A checks features, Agent B checks pricing, and Agent C checks user reviews. All three run simultaneously, and a summary Agent finally synthesizes the complete report.

    3. Permission Isolation and Data Security Must Be Separate

    Different tasks require different access permissions for tools and data, which must not overlap. For instance: an intranet Agent only reads internal documents and is forbidden from accessing the internet; an internet Agent can search public web pages but has no access to internal data. Using physically isolated Agents to enforce the principle of least privilege is far more reliable than instructing it in a prompt “not to look around.”

    4. Long-Cycle, Phased Delivery Requiring Progress Tracking

    A typical pipeline for small tool development: Requirement Analysis → Development → Testing → Documentation. Each phase is handed to a specialized Agent, while the Kanban manages state transitions and records, making the whole process traceable.

    5. Cross-Validation Through Specific Role Perspectives

    For example, an adversarial collaboration between an Agent responsible for “writing proposals” and a review Agent responsible for “finding flaws” can significantly improve output quality. This is difficult for a single Agent’s self-reflection to replace stably.

    ❌ Keep It Single-Agent in These Cases

    • The task is singular and can be completed in one conversation turn.
    • Strong contextual dependencies exist between sub-steps; splitting them forces repeatedly passing large amounts of intermediate results.
    • You just want to “look more advanced”—the scheduling and state management complexity introduced by multi-Agent systems is real. Do not pay this cost without benefits.

    3. Hands-On: Four Steps to Build a Collaboration System

    Step 1: Define Each Agent’s Profile

    Write configurations following the “one ID per person” principle. Focus on clearly defining three things: role boundaries (what it does and doesn’t do), tool whitelists, and output format agreements. The stricter the role boundaries, the less likely Agents are to overstep during collaboration.

    Step 2: Initialize the Kanban and Task Cards

    Break down the overall goal into task cards with dependencies. The structure looks like this:

    1. {
    2. "task_id": "T2",
    3. "title": "Scrape competitor public data",
    4. "assignee": "engineer",
    5. "status": "todo",
    6. "depends_on": ["T1"],
    7. "output": "data/competitor.json"
    8. }

    The depends_on field declares the dependency: T2 will not be dispatched until T1 (research material organization) is completed.

    Step 3: Run and Transition

    The scheduler works in the following loop:

    1. Scan the Kanban to find all “To Do” tasks whose dependencies are satisfied.
    2. Dispatch the task to the corresponding Agent and set the status to “In Progress.”
    3. After completion, the Agent produces result files or reports, and the status transitions to “Done.”
    4. Newly unlocked tasks enter the next scheduling round.

    Step 4: Acceptance and Review

    Check whether the outputs of each card meet the agreed format. If necessary, introduce a review Agent for quality control. Tasks that fail are sent back to “To Do” with attached revision comments, forming a closed loop.

    4. Best Practices and Common Pitfalls

    • Split tasks before splitting Agents: Agents serve the task structure; the order cannot be reversed.
    • Be specific about card output agreements: Clearly define output file paths, formats, and acceptance criteria. Otherwise, downstream Agents will receive inconsistent inputs.
    • Control parallelism: Too many parallel Agents amplify the cost of context switching and result merging. Three to five is generally optimal.
    • Avoid overly deep dependency chains: The longer the chain, the more severe the blocking caused by a single point of failure. Try to keep the dependency graph “wide and shallow.”
    • Leverage persistence: For any tasks expected to span across sessions or days, always use Kanban instead of synchronous delegation to avoid starting from scratch after an interruption.

    Conclusion

    The essence of a multi-agent system is not “more chat windows,” but an engineering methodology of responsibility isolation + task scheduling + state persistence. Profiles solve “who does it and what can they do,” while Kanban solves “in what order and how far along it is.” Understanding these two pillars allows you to break down any complex project into a clear collaboration pipeline—from an industry report to a full development project, the methodology is the same. Give it a try: starting with two Agents and three task cards, you will already experience the value of a collaboration system.