[KongchangAI]
· 3 min read· 1,561 words

Advanced Vibe Coding: A Practical Guide to Multi-Agent Collaborative Development

Advanced Vibe Coding: A Practical Guide to Multi-Agent Collaborative Development

Split product, development, testing, and Git management into independent AI Agents to simulate real team collaboration across the full development workflow.

The article introduces Bilibili creator Zhenni Dingding's multi-agent development methodology: splitting product, development, testing, and Git management into four independent AI session roles, defined by prompts, to simulate real software team collaboration. The product Agent generates prototypes and outputs the spec; development builds against the spec and visual documents; testing performs acceptance and feedback; Git management handles version and feature branches. The workflow runs from creating four sessions through prototype confirmation, spec output, development, testing, and merging, with final human acceptance. It boosts efficiency but relies on document quality and human checkpoints.

From Solo Work to Team Collaboration: Breaking Down the Multi-Agent Development Workflow

In the field of AI-assisted development, Vibe Coding is evolving from simple code generation into a systematized engineering practice. The third installment of Bilibili creator Zhenni Dingding's tutorial series focuses on how to complete the entire product development workflow through multi-agent collaboration. The core of this methodology is splitting product, development, testing, and version management into independent agent roles, letting AI simulate the collaboration model of a real software team.

In traditional development, the product manager draws prototypes, developers write code, testers do acceptance, and Git manages versions—each with their own responsibilities. In AI tools like Codex and Cloud Code, you can create multiple sessions (chats), each taking on one responsibility, with prompts clarifying role boundaries. This "hiring employees" approach moves AI development from single-point tasks toward process automation.

Development workflow diagram

Four Types of Agent Roles and Their Responsibilities

Product Agent: From Prototype to Requirements Specification

The product Agent is responsible for turning vague ideas into executable interface prototypes. The creator emphasizes that AI-generated prototypes require human review of two key points: first, whether button placement is reasonable, avoiding AI's habitual tendency to add redundant labels and explanatory copy (the so-called "AI flavor"); second, whether the interface prioritizes the features users need most, echoing the previous installment's discussion on layout design. According to the video demonstration, using the "保育design" skill can assist the product Agent in generating prototypes.

After the prototype is confirmed, the product Agent must output a requirements specification (spec document). Here, the "2spec" skill provided by overseas AI development expert Matt is recommended to help AI write standardized spec documents. This document becomes the sole basis for subsequent development and testing, ensuring features stay on track.

Determining testing direction

Vibe Coding is a concept proposed by Andrej Karpathy in early 2025, referring to a programming approach where developers describe intent in natural language and AI generates the code, emphasizing rapid iteration that "follows your gut." It differs from traditional line-by-line manual coding and from low-code platforms; its core is treating AI as the primary coding executor. In the engineering phase, Vibe Coding needs to introduce requirements documents, version control, and test feedback to constrain AI output—otherwise it easily produces unmaintainable code. The multi-agent workflow in this article is an attempt to advance Vibe Coding from personal experimentation to team-level collaboration.

Development Agent: Building on Dual Documents

When the development Agent starts working, it must reference both the product specification and the visual style document (the UI visual constraints established in the previous installment). The product specification indicates which part of the visual specification each specific feature corresponds to, and the development Agent must ensure component usage is consistent with the visual constraints. The creator specifically notes that prototypes may be relatively simple, but both the actual development and testing phases will strictly check against the visual document.

Spec document (requirements specification) is a formal document in software engineering that describes system functionality, constraints, and acceptance criteria. In AI-assisted development, the role of the spec shifts from "for humans to read" to "for Agents to read": it provides the development Agent with functional boundaries and the testing Agent with acceptance criteria. A qualified spec should include user stories, a feature list, input/output definitions, exception handling, and acceptance conditions. Since AI tends to freestyle when constraints are lacking, the granularity of the spec directly determines the stability of multi-agent collaboration; too vague leads to feature drift, while too granular limits implementation flexibility.

Testing Agent: Acceptance and Feedback Loop

After development is complete, the code is handed to the testing Agent for acceptance. If it passes, it proceeds to the next stage; if not, it is sent back to development for revision. In this loop, the testing Agent judges whether features meet expectations based on the spec document, forming a quality closed loop.

Git Management Agent: Version Control and Branching Strategy

This is a key role in the multi-agent workflow. The creator emphasizes that serious product development must use Git to manage the code repository. The version numbering convention typically starts at 0.1.0 and increments sequentially. During development, the Git management Agent pulls a feature branch from the version branch, and development works on that branch; upon completion it commits, and after testing passes the feature branch is merged back into the version branch. Once all features are complete, the version branch is merged into the main branch—the most serious operation, meaning it's close to release.

Branch management diagram

The creator points out that many developers feel things get "messier the more they change," and the root cause is precisely the lack of version management. With a Git Agent, you can roll back to historical versions at any time or look up which version a specific feature belongs to.

Git branching strategy is the foundation for implementing version control in the multi-agent workflow. The "version branch → feature branch → merge back to version branch → merge to main branch" approach used in this article is a simplified Git Flow: feature branches isolate the development of a single feature, preventing unfinished code from polluting the version branch; the version branch corresponds to a milestone (e.g., 0.1.0) and carries all features of that version; the main branch always remains in a releasable state. Semantic Versioning (SemVer) specifies major.minor.patch, and the 0.x stage indicates the API is not yet stable. For AI Agents, the value of a branching strategy lies in providing rollback checkpoints, making the "messier the more you change" problem traceable and recoverable.

The Complete Workflow: From Hiring to Delivery

Step one: create four sessions under the project, each setting the scope prompts for the product, development, testing, and Git management Agents. Step two: work with the product Agent to determine the current milestone (typically the first phase corresponds to version 0.1.0) and organize feature points based on user stories. Step three: the product Agent outputs prototypes, which are manually reviewed and iterated until satisfactory. Step four: the product Agent uses the 2spec skill to output the requirements specification. Step five: the development Agent starts development based on the spec document and contacts the Git Agent on its own to pull a branch. Step six: upon completing development, notify the testing Agent; if testing passes, the Git Agent merges the branch and notifies the product Agent; if it fails, development revises. Finally, the product Agent notifies a human for final acceptance.

Hiring the four roles

Throughout the entire workflow, you almost only need to confirm prototypes with the product Agent; the subsequent stages flow automatically. The creator says that capable learners can start practicing immediately, and the next installment will provide a hands-on demonstration.

The Value and Boundaries of Multi-Agent Collaboration

This methodology elevates AI development from "generating code" to "managing processes." Through role division and document-driven workflows, AI teams can simulate real engineering collaboration and reduce communication costs. However, note that prototype review and final acceptance still require human intervention, and AI's tendency toward "over-explanation" needs continuous correction. For complex products, information transfer between Agents depends on document quality, and the accuracy of the spec and visual documents directly determines collaboration efficiency.

From an industry perspective, multi-agent collaborative development is an inevitable trend as Vibe Coding moves toward engineering. It does not pursue the ultimate capability of a single AI, but rather designs processes so that multiple AIs each fulfill their roles and produce stable output. This model is especially friendly to independent developers and small teams, offering a development experience close to that of a professional team at a lower cost.

Practical Advice and Common Issues

For first-time adopters, it is recommended to start with simple feature modules and gradually get familiar with the collaboration rhythm between Agents. Clarifying role boundaries in the prompts is key—for example, the product Agent's prompt should focus on requirements analysis and document output, avoiding overstepping into writing code. The version numbering convention and branching strategy should be agreed upon with the Git Agent early in the project to reduce later confusion.

Common pitfalls include: neglecting prototype review, causing AI to pile up redundant elements; skipping the spec document and letting the development Agent build directly, causing feature drift; and not setting up Git management, making version rollback difficult. The creator's tutorial addresses these pain points and provides actionable solutions.

One-line Summary

Split product, development, testing, and Git management into independent AI Agents to simulate real team collaboration across the full development workflow.

Paragraph Summary

The article introduces Bilibili creator Zhenni Dingding's multi-agent development methodology, whose core is splitting product, development, testing, and Git management into four independent AI session roles, defining responsibilities through prompts, and simulating real software team collaboration. The product Agent generates prototypes and outputs the spec document, requiring manual review of button layout and feature prioritization; the development Agent builds based on the spec and visual documents; the testing Agent performs acceptance per the spec and forms a feedback loop; the Git management Agent executes the version branch and feature branch strategy. The complete workflow starts with creating four sessions, then proceeds through prototype confirmation, spec output, development, testing, and merging, with final acceptance by a human. The article notes that this model improves efficiency but depends on document quality and human intervention at key checkpoints.

#Vibe Coding#multi-agent development#AI Agents#Git branching strategy#spec document#AI-assisted development
Share:

Related articles