Building Multi-Agent Systems: A Practical Guide to Agent Configuration and Kanban Collaboration
This guide explains why single agents struggle with complex engineering workflows and how a multi-agent architecture solves the problem by separating capabilities from process. It defines three core concepts—agents as independent execution units, declarative configuration profiles, and a shared Kanban board for scheduling and visualization—then walks through five implementation steps, common collaboration topologies, troubleshooting approaches, cloud deployment considerations, and a final checklist for moving from demo to sustainable engineering practice.
1. Why a Single Agent Falls Short on Complex Engineering Tasks
In real development and operations scenarios, tasks rarely close the loop in a single question-and-answer exchange. A single requirement may involve information retrieval, solution breakdown, coding, test validation, and result aggregation at the same time. These stages have clear sequential dependencies, and they also require executors with different areas of expertise and different permission boundaries. If you pile all of these responsibilities onto one agent, three problems quickly surface:
- Persona and skills contaminate each other, prompts grow longer and longer, and conflicting instructions pile up.
- The context window gets crowded out by irrelevant information, diluting critical constraints.
- The execution process is invisible, so a mid-way failure forces a complete restart.
The starting point of a multi-agent architecture is to decouple “capabilities” from “process”: push capabilities down into independent execution units, and lift the process up to a unified scheduling layer. This keeps each unit lean and focused while making overall progress observable and recoverable.
2. Rigorous Definitions of Three Core Concepts
Agent: An Execution Unit with Its Own Context
An agent is the smallest execution entity that takes on a specific responsibility. It has its own role definition, skill set, tool invocation scope, and memory space, and it does not share implicit state with other agents. The value of this independence lies in replaceability and parallelism: when one stage underperforms, you can adjust it on its own; multiple independent stages can move forward simultaneously.
Configuration Profile: A Declarative Definition of an Agent
A configuration profile is the agent’s “identity and manual.” It is usually carried as structured text or a configuration file, describing the role goal, input/output conventions, available tools, permission level, and memory policy. It is declarative: creating a profile is equivalent to adding an execution unit, and loading a different profile is equivalent to switching the executor. Separating definition from runtime yields two direct benefits—configurations can be version-controlled and reviewed, while the runtime environment stays stateless and easy to scale horizontally.
An illustrative profile structure is shown below (the fields are generic examples, not a specific product interface):
agent:name: reviewergoal: Review submitted code and provide actionable change suggestionsskills: [static_analysis, test_design]tools:read_repo: truewrite_fs: false # read-only, least privilegememory:scope: session # session | task | nonemax_turns: 8io_contract:input: patch_setoutput: review_report
Kanban Board: The Scheduling and Visualization Medium for Multi-Agent Collaboration
A Kanban board is a shared task whiteboard. It breaks work into cards that flow through “To Do → In Progress → Done,” with optional extended columns for blocked, review, and rollback states. It carries four responsibilities: binding tasks to executors, making status visible in real time, expressing dependencies, and preserving state after a restart. Because state lives externally on the board rather than inside any single agent’s memory, a process crash or version upgrade will not lose overall progress.
3. Implementation Steps for Building a Multi-Agent Collaboration System
Step 1: Split Roles by Responsibility, Not by Tech Stack
The recommended role division follows process boundaries. For example, a planner handles breakdown and acceptance criteria definition, a retriever handles information gathering, an implementer produces output, a verifier handles testing and regression, and an aggregator converges conclusions. The splitting principle is “single responsibility plus a clear input/output contract.” Avoid giving two roles write access to the same artifact; otherwise, the cost of conflict merging will quickly exceed the benefits of parallelism.
Step 2: Constrain Tools and Data Boundaries with Least Privilege
Each profile is granted only the tools necessary to fulfill its responsibility. Read-only roles are forbidden from writing files, implementer roles are restricted to writable directories, and operations involving external systems go through message queues or asynchronous task submission to avoid long blocking. Sensitive credentials never enter profiles or prompts; they are injected uniformly by the runtime’s key management mechanism.
Step 3: Break Tasks into Independently Verifiable Cards
Card granularity is measured by “independently verifiable.” Each card should include a goal, inputs, deliverables, acceptance criteria, and estimated complexity. Too coarse and it is hard to parallelize; too fine and scheduling overhead and context-switching costs rise. In practice, you can have the planner produce a task tree first, then have the scheduling layer generate the initial board based on dependencies.
Step 4: Drive Flow with Dependencies and Priority
Dependencies determine order; priority determines resource allocation. Cards without dependencies run in parallel, and cards with dependencies automatically enter the To Do column once their prerequisites are complete. To avoid starvation and deadlock, set a per-card retry limit and timeout; once exceeded, the card moves to the blocked column and triggers an alert.
Step 5: Design Memory Hierarchy and Reclamation Policies
Layering memory can significantly improve both effectiveness and cost: session memory holds short-term constraints for the current task, task memory holds an index of intermediate artifacts across steps, and long-term knowledge is externalized to a retrieval service rather than stuffed into prompts. You must explicitly define reclamation rules—for example, archiving after task completion and summarizing/compressing once the turn limit is exceeded—to prevent the context from expanding indefinitely.
4. Collaboration Patterns and Scheduling Essentials
There are three common collaboration topologies. A serial pipeline suits scenarios with clear stages and high quality requirements; it is simple to implement but has limited throughput. Centralized scheduling has the planner dispatch work and the aggregator converge results; it offers strong controllability and suits processes with stable task boundaries. Decentralized negotiation lets multiple execution units autonomously claim cards around a shared board; it delivers high throughput but requires stronger conflict control and idempotency design.
Regardless of the topology, three engineering constraints must be enforced: write artifacts to a unified location and distinguish versions by content identifier to guarantee idempotency; write key state changes to a logging service for replay and diagnosis; and introduce a human confirmation step for operations with external side effects, keeping irreversible actions within human decision boundaries.
5. Common Problems and Troubleshooting Approaches
Repeated rework usually stems from missing acceptance criteria or overly coarse card granularity. Execution results overwriting each other comes from unisolated write permissions or non-standardized artifact paths. Loss of overall progress indicates that state is kept only inside execution units rather than externalized to the board. Rapidly rising costs are often due to unreclaimed memory and untrimmed retrieval results. A stalled process generally means a blocked card lacks a timeout and escalation mechanism. The recommended troubleshooting order is: first check board status and logs, then check profile permissions and contracts, and finally tune prompts and memory policies.
6. Integration with General Cloud Capabilities
If you need to deploy this system to a cloud environment, you can reuse general capability categories: a container platform hosts stateless execution units and scales them elastically, object storage holds task artifacts and profile versions, a message queue decouples long-running tasks, logging and monitoring/alerting services provide observability, and a key management service handles unified credential injection. In such scenarios, Baidu AI Cloud typically provides support through combinations of these general product categories; for specific specifications and pricing, refer to the official documentation.
7. Go-Live Checklist
Confirm each item below: Are roles single-responsibility with clear input/output contracts? Are profiles declarative, reviewable, and rollback-capable? Do permissions follow the least-privilege principle? Are cards independently verifiable? Are dependency and timeout policies complete? Does memory have a reclamation limit? Is state fully externalized? Do key actions have auditing and human confirmation? Only after checking each item can a multi-agent system move from a demo to a sustainable engineering practice.
