AI Engineer23 min
Your Team's Agents Are All Shipping to the Same Code at Once - Patrick Debois, Tessl
Conference Presentation
The Tension: Solo vs. Multiplayer Software Factories
- Current State Evolution: Transitioning from serial "solo factories" (single developer/agent on a laptop) to "multiplayer factories" where multiple humans and agents collaborate on a shared codebase and ticket board.
- Core Conflict: The simultaneous demand to merge into
mainfrequently clashes with the need for agents to collaborate without conflict, requiring a shift from serial flows to concurrent delivery. - Productivity Paradox: While enabling multiplayer factories increases pull request (PR) volume by a factor of 10, it introduces significant friction in merging, rebasing, and CI/CD stability.
- Performance Impact: Concurrent agent activity causes CI/CD systems to become slower and more costly due to the volume of test reruns and merge conflicts.
- Workload Increase: Beyond feature development, teams must now manage "agent incidents" (agent-to-agent conflicts) and factory maintenance (skill and loop improvements), all requiring human approval.
Strategic Shift: From Continuous to Concurrent Delivery
- Concurrency as Routine: The goal is to flip concurrency from an exception handling problem into the standard operating model for both humans and agents.
- Granular Task Splitting: Instead of parallel execution, work is split strategically (e.g., by authentication vs. payment modules) using the Abstract Syntax Diagram (ASD) graph to identify non-conflicting code paths.
- Agent Claiming Mechanism: Agents execute a "plan mode" where they claim specific tickets and announce intended file changes, preventing other agents from overlapping during the planning phase.
- Isolation via Work Trees: Agents operate within isolated "frozen" environments, including their own machine state, API versions, database snapshots, test data, and digital twins to prevent external world interference.
- Conflict Resolution Strategies:
- Wait/Retry: Agents requeue and wait for a resource to become available.
- Plan Renegotiation: Agents dynamically adjust plans to avoid interference during execution.
- Semantic Merging: Moving from line-by-line merging to function-level merging, allowing agents to automatically resolve or fix conflicts.
- Predictive Adaptation: Agents anticipate future changes by other agents and adapt their own code proactively.
- Intent Verification: Agents analyze merge intent (not just code lines) to detect semantic conflicts where code changes do not collide but business logic (e.g., currency units vs. reporting formats) becomes inconsistent.
Infrastructure and Merge Management
- Speculative Merge Trains: A new infrastructure concept where all incoming PRs are analyzed for compatibility in pairs; compatible changes are allowed to land immediately while incompatible ones are flagged, speeding up the overall queue.
- Adversarial Review: Automated agents perform code reviews prior to human intervention to reduce failure rates and improve context for human reviewers.
- Risk-Based Review Policies:
- Low Impact: Documentation or limited-scope changes may bypass full human review or utilize automated sign-off.
- High Impact: Critical areas (e.g., authentication) require strict human oversight and rigorous testing.
- Mitigation Focus: Architectural decisions prioritize fast rollback strategies and data restore capabilities to make the cost of failure "cheap."
Human-Agent Collaboration and Organizational Dynamics
- Shared Context Boards: Transitioning from isolated task boards to a central multiplayer board where humans and agents share visibility into all active changes and tasks.
- Agent in Chat: Agents join organizational chat channels to refine tickets using input from multiple team members (sales, marketing, support), clarifying requirements and transforming tickets into actionable plans.
- Cross-Functional Integration: Non-engineering roles (marketing, support) can experiment with and kickstart features using the same engineering loops, reducing the "vibe coding" gap with production standards.
- Human-in-the-Loop (Hybrid Mode):
- When an agent stalls, a new IDE instance launches with the agent's exact context for human intervention.
- Once the human resolves the blockage, the session is handed back to the agent to resume execution.
- Decision Ledger: All decisions made by humans or agents are logged on a shared ledger, creating a traceable history of who made what decision and when, queryable for future sessions.
- Reduced Review Friction: Automating the reduction of choices for agents to present only viable options, reducing the cognitive load on human reviewers.
Future Outlook and Operational Risks
- Radiating Change: High-velocity code generation creates a communication burden; teams must develop "translation" mechanisms to ensure non-technical domains (marketing, support) keep pace with code changes.
- New Team Role: The emergence of a "factory team" (similar to platform engineering) responsible for maintaining coding agents, ensuring skills and context are up-to-date, and monitoring the overall coding fabric.
- Autonomous Personal Agents: Future agents will act as personal delegates, making decisions and providing answers to other agents, moving towards full task delegation.
- Warning: The speaker advises teams to "brace themselves," noting that current multiplayer factories are still in a nascent stage with significant dynamics yet to be stabilized.
- Resources: The speaker references a site on "concurrent CD" for tracking tools and techniques and invites collaboration via LinkedIn for feedback on their implementation of loops and skills.