Skip to main content
Registration is now open! Early-bird pricing available through May 5, 2026. Register now

All Accepted Demos

Agent 4: Teamwork and Collaboration for Vibe-Coding

Peter Zhong (Replit & Carnegie Mellon University), Jacky Zhao (Replit), Edouard Sioufi (Replit), James Austin (Replit), Bri Pool (Replit), Luis Héctor Chávez (Replit), Adi Dahiya (Replit), Will Ernst (Replit), Dawei Feng (Replit), Devin Halladay (Replit), Toby Ho (Replit), Zade Kaylani (Replit), Imen Kedir (Replit), Vaibhav Kumar (Replit), Zhen Li (Replit), Haya Ode (Replit), Nicholas Ondo (Replit), Darsh Patel (Replit), Alec Wang (Replit), Jordan Walke (Replit), Ibrahim Sheikh (Replit), Poorva Potnis (Replit), Michele Catasta (Replit)

Architectural Patterns & Composition Engineering & Operations

Summary

A multi-agent coding architecture for vibe-coding that decomposes tasks into a DAG, executes them on isolated forked environments, and merges via incremental rebasing.

Description

As AI coding agents grow more capable, a natural path to scaling their throughput is to apply the same collaborative patterns — branching, parallel development, and merging — that human engineering teams have long relied on. However, multi-agent concurrency amplifies coordination challenges such as merge conflicts, duplicated work, and semantic inconsistencies, particularly on platforms like Replit where users describe intent in natural language rather than formal specifications. We present Agent 4's teamwork architecture, which addresses these challenges through three layers: a centralized planning agent decomposes user requests into a dynamic directed acyclic graph of tasks, using codebase exploration and an interview-driven workflow to minimize downstream conflicts. Isolated task agents execute each unit of work on a fully forked copy of the application state — filesystem, database, and configuration — enabled by Replit's copy-on-write storage infrastructure, while lightweight intra-task subagents exploit finer-grained parallelism on a shared filesystem. A multi-layered validation pipeline comprising type checking, replayable regression tests derived from a REPL-based browser testing engine, and automated code review guards against logical drift before changes are merged back via an incremental rebasing strategy.

ACM CAIS 2026 Sponsors