Building Multi-Agent Systems: A Practical Guide to Agent Profiles and Kanban Collaboration
This guide explains when multi-agent systems actually add value and when a single agent is enough. It introduces three core concepts—agents, configuration profiles, and a Kanban board—then outlines five scenarios that justify multiple agents, a six-step process for building a collaboration system from scratch, and common pitfalls to avoid. You will learn how to define deliverables, split work by permission boundaries, declare task dependencies, set handoff contracts, and apply retry and observability practices for stable, reproducible agent workflows.
1. Why Use Multiple Agents: From a Single Assistant to a Team
As intelligent coding tools and automated orchestration capabilities evolve quickly, more developers are experimenting with splitting complex work across multiple agents. A common mistake is treating the number of agents as a measure of capability: you create a set of roles first and only later think about what they should do. The result is usually cross-contaminated context, blurred responsibility boundaries, and debugging costs that end up higher than with a single agent.
The value of multi-agent systems does not come from quantity. It comes from three structural benefits: separation of responsibilities, permission isolation, and parallel scheduling. Multiple agents produce a net gain only when the task itself can be split cleanly. Otherwise, you have simply broken one complex problem into several smaller problems that are harder to align.
2. Three Core Concepts: Agents, Profiles, and Kanban
2.1 Agent
An agent is an execution unit with its own persona constraints, skill set, available tool scope, and context memory. Its defining attribute is not its name but its boundary: which data it can read, which capabilities it can invoke, and which files it can modify. Only an agent with clear boundaries produces predictable output.
2.2 Profile
A profile is an agent’s identity and instruction sheet. It typically contains four parts: role definition and output specification, a skill and tool allowlist, data and directory access scope, and session memory or historical context. Creating a profile is equivalent to creating an agent, and switching profiles is equivalent to swapping the executor. In practice, keep profiles as readable text or structured configuration under version control so they are easy to reproduce and audit.
Example structure (pseudo-config, field semantics only):
profile:role: "Data Engineer" # Persona and responsibilitiesskills: ["data scraping", "cleaning", "persistence"]tools_allow: ["file_io:./data/**"] # Tool and path allowlistmemory: "session" # Memory policy: session-level or persistentoutput_schema: "table+summary"
2.3 Kanban
The Kanban board is the visual dispatch console for multi-agent collaboration, essentially a persisted task table. Tasks move through To Do → In Progress → Done and can be bound to a responsible agent, a priority, dependencies, and output artifact paths. It delivers three engineering benefits: state persistence (tasks survive process restarts), dependency-driven execution (successors unlock automatically once prerequisites finish), and process observability (progress, blockers, and failure reasons are visible at a glance).
2.4 Choosing Between Two Collaboration Modes
- Direct dispatch for short tasks: suited to single-step, synchronous work whose results can be verified immediately. Invocation is simple and feedback is direct.
- Kanban scheduling: suited to long-running, multi-stage work that needs tracking and dependency orchestration, with persistence and recovery built in. For a first attempt, learn the Kanban mode first, because it forces you to decompose tasks explicitly—and that step alone improves quality.
3. Five Scenarios That Genuinely Need Multiple Agents
- Highly differentiated skills: the work spans domains, for example “industry research → data collection scripts → visualization report.” The three types of work require completely different tools and output specifications, and a single agent tends to drift in persona and produce more errors.
- Parallelizable subtasks: several independent subtasks run at the same time and are merged at the end—for example, researching the features, pricing, and user feedback of three subjects separately, then producing one unified draft. This can significantly compress total time.
- Permission and security isolation: the internal-materials side is allowed read-only access to local directories with no outbound network access, while the public-information side may only reach public resources and must not touch internal data. Use profile-level allowlists to enforce least privilege.
- Long-cycle, phased delivery: requirements analysis, implementation, testing and verification, and documentation proceed stage by stage, with the board advancing tasks automatically and retaining each stage’s artifacts for traceability.
- Role-based simulation of human collaboration: research, development, review, and documentation roles cross-check one another, with the review role raising rework items against upstream output to close the loop.
Counter-example (no multi-agent needed): looking up a single fact, writing a short script, or changing one configuration value. Adding multiple agents here only increases communication and alignment overhead.
4. Implementation: Building a Collaboration System from Scratch
Step 1, define the deliverable. Write down what the final output is (a report, runnable code, a dataset) and work backward to the stages, so you avoid splitting work for the sake of splitting.
Step 2, split profiles by boundary. Each profile keeps only the tools and path permissions required for its own responsibility, with no cross-authorization. Least privilege is a shared prerequisite for both security and stability.
Step 3, decompose tasks and declare dependencies. Keep task granularity at a level that “can be verified in a single execution.” Too coarse and tasks cannot run in parallel; too fine and scheduling overhead grows.
T1 Requirements and acceptance criteria (Researcher)T2 Data collection (Engineer) depends on T1T3 Result verification (Reviewer) depends on T2T4 Report writing (Writer) depends on T3
Step 4, define the handoff contract. Upstream artifacts land at an agreed path in an agreed format, and downstream agents read only according to the contract—no guessing and no implicit reliance on context. This is the most overlooked and most critical part of a multi-agent system.
Step 5, failure and retry strategy. Set a timeout, a retry limit, and a failure destination (for example, marking the task as “blocked” with a reason) for each task type, so loops cannot consume resources indefinitely.
Step 6, observability. Use general-purpose logging and monitoring/alerting capabilities to track task duration, failure rate, and rework counts. If agents must collaborate across machines, decouple them with a message queue, store artifacts in object storage, and unify the runtime with a container platform.
5. Common Pitfalls and How to Avoid Them
- Too many roles make communication costs explode: keep three to five roles with clear responsibilities.
- Over-sharing context: share only contracts and artifacts, not entire sessions.
- Cyclic dependencies: keep the graph directed and acyclic when decomposing, and add a human confirmation node when necessary.
- Missing acceptance criteria: every task needs a decidable completion condition, otherwise the board’s status becomes inaccurate.
6. Conclusion
The essence of a multi-agent system is turning a complex task into a collaboration process that is bounded, contract-driven, and stateful. First settle the deliverable and the permission boundaries, then fix roles with configuration profiles and let the Kanban board carry scheduling and tracking. On top of general-purpose capabilities from cloud platforms such as Baidu AI Cloud, this is how you build an agent collaboration system that is stable, reproducible, and extensible.
