Multi-Agent Architecture Design: Agent Collaboration and Kanban-Based Scheduling
This article explains how to design a multi-agent system by separating three concepts that are often confused: agents, profiles, and kanban boards. It covers when multiple agents are actually worth the added cost, how to implement kanban-based collaboration through task decomposition, state transitions, artifact handoffs, persistence, and merge strategies, and where short-task delegation is the better choice. It also lists common anti-patterns and practical optimization tips for building stable, recoverable, and scalable agent collaboration.
1. Three Core Concepts, Clearly Separated
Before discussing multi-agent collaboration, it helps to separate three concepts that are easy to confuse: the agent, the profile, and the kanban board. Most design confusion comes from treating the runtime entity, the configuration data, and the scheduling medium as the same thing.
1.1 Agent: An Execution Unit with Its Own Context
An agent is the runtime entity that actually performs work. It has its own persona constraints, available skill set, tool-calling permissions, and session memory. The key property is isolation: one agent’s context does not automatically leak into another, so behavior boundaries stay clear and errors do not cross-contaminate.
1.2 Profile: The Persistent Definition of an Agent
A profile is the agent’s identity and instruction sheet. It is usually stored as a structured file describing the role, skill list, tool allowlist, model parameters, and memory location. Creating a profile is equivalent to instantiating an agent; switching profiles is equivalent to swapping the executor. Separating configuration from runtime means capabilities can be versioned, reused, and replaced without touching the scheduling logic.
An illustrative profile structure (field semantics only, not a specific product interface):
profile:name: researcherrole: literature retrieval and material organizationskills: [search, summarize, deduplicate]tools: [web_fetch, file_write]memory: sessionlimits:max_steps: 40timeout_seconds: 900
1.3 Kanban: A Visual Scheduling Board for Multiple Agents
A kanban board is a persistent whiteboard. Work is broken into cards that move through To Do → In Progress → Done, with an owner and prerequisite dependencies attached. Its value is threefold: progress is visible to both humans and agents; state is persisted and survives process restarts; and dependency-driven transitions are supported, so a successor card automatically becomes runnable once its prerequisites are done.
1.4 Where Each Collaboration Mode Fits
- Short-task delegation: suited to single-step, synchronous subtasks whose results are returned directly. It is simple to call and gives immediate feedback, but it is not persistent.
- Kanban scheduling: suited to long chains, multiple roles, and work that needs tracking and dependency orchestration. It is persistent, observable, and recoverable. Beginners should learn the kanban model first, because it turns collaboration into an explicit data structure and state machine.
2. When You Actually Need Multiple Agents
Multiple agents are not the default answer. Splitting work adds context-transfer cost, result-merging cost, and debugging complexity. Only the following five types of scenarios genuinely pay off.
2.1 Highly Differentiated Task Types
When a task spans several specialized domains with almost no skill overlap, a single agent tends to suffer persona drift and rising error rates. For example, “industry research → data collection script development → visualization report writing” can be handled by a retrieval agent, an engineering agent, and a writing agent respectively, each with shorter prompts, stronger constraints, and more stable output.
2.2 Parallelizable Subtasks
If several subtasks have no data dependency between them, they can run concurrently and be merged at the end, so the wall-clock gain from multiple agents is significant. The test is simple: can each subtask produce its output independently, without reading the others’ intermediate results?
2.3 Permission Isolation
Different stages have very different tool-permission needs. Assigning high-privilege operations (writing files, calling external APIs) and low-privilege operations (reading, summarizing) to different agents shrinks the risk surface and makes auditing easier.
2.4 Context Length and Memory Pressure
A long workflow quickly inflates a single session’s context, diluting critical information. Splitting agents by stage, so each carries only the context it needs, is an effective way to control noise.
2.5 Role-Based Mutual Review
Separating generation from review creates a producer–reviewer structure: the review agent checks the output against a checklist, then sends it back to the producer for revision, closing the loop.
Counter-example: if the task is essentially single-step, linear, and needs no special permissions, adding agents only brings extra scheduling overhead and merging error. A single agent with a clear prompt is the better choice there.
3. Putting Kanban Collaboration into Practice
3.1 Task Decomposition and Card Granularity
Keep card granularity at the scale of “one role can finish it in one pass and it can be accepted independently.” Too coarse overloads the executor’s context; too fine raises scheduling overhead. Each card should contain at least: goal, inputs, deliverables, acceptance criteria, owner, and prerequisites.
{"card_id": "C3","title": "Generate visualization report","owner": "writer","depends_on": ["C1", "C2"],"acceptance": ["contains data charts", "conclusions cite sources"],"status": "todo"}
3.2 State Machine and Dependency Transitions
A simple state machine is enough to drive collaboration: a to-do card becomes runnable once all its dependencies are complete; the executor claims it, moves it to in progress, and writes progress; once the output passes acceptance, the card is marked done and triggers its successors. On failure, the card enters a blocked state with the reason recorded, avoiding infinite retries.
3.3 Hand Off Artifacts, Not Context
Agents should pass a file path, a structured summary, and verification information to each other, rather than an entire conversation history. This compresses context and makes intermediate artifacts auditable and re-runnable.
3.4 Persistence and Recovery
Kanban state must be written to disk (a local file or structured storage both work). After a restart, the scheduler rebuilds the in-memory view and resumes from the in-progress cards. Set timeouts and maximum step counts on unfinished cards to prevent them from getting stuck.
3.5 Conflict and Merge Strategy
When parallel branches produce the same file, use namespace isolation (separate directories per card ID), then have a merge agent deduplicate and order the results in the merging stage, so branches do not overwrite each other.
4. The Boundary of Short-Task Delegation
For synchronous subtasks like “look up one fact, do one format conversion, run one validation,” direct delegation is simpler: the caller waits for the return, with no persistence and no dependency graph. A practical rule is to set a threshold: when the expected step count is low, there are no side effects, and no audit is needed, use delegation. Once a write operation, a cross-stage dependency, or a need for human traceability appears, switch to the kanban board.
5. Common Anti-Patterns and Optimization Tips
- Roles that are too fine-grained: the agent count balloons and merging costs more than it gains. Divide by skill family, not by step.
- Repeated prompt stacking: extract shared constraints into a common specification file and keep only the differences in each profile.
- Missing acceptance criteria: cards cannot be judged complete and the flow stalls. Every card needs a deliverable definition that can be verified by machine or by a human.
- No observability: use a general logging service plus monitoring and alerting to collect card duration, failure rate, and retry count, and tune with data.
- Introducing complex dependencies too early: get a linear pipeline working first, then add branches and rollbacks gradually.
6. Summary
The core of a multi-agent system is not “more agents” but “clearer boundaries, more visible state, and more disciplined handoffs.” First use profiles to fix roles and permissions, then use a kanban board to turn tasks into a trackable state machine, and use delegation to close short tasks quickly. In cloud environments such as Baidu AI Cloud, you can combine object storage for intermediate artifacts, a message queue for card event notifications, and logging and monitoring services for observability, in order to build a stable, recoverable, and scalable agent collaboration solution.
