Skip to content

Feature: Abstract coordination interface for multi-agent orchestration #204

Description

@trevor-vaughan

Problem

Replicator v0.2.0 provides useful coordination primitives (file reservations, agent messaging, git worktree isolation). The multi-agent orchestration space is evolving quickly — LangGraph, Subtask2, and others are maturing alongside Replicator. Defining an abstract coordination interface would let UF benefit from Replicator's strengths today while staying open to future improvements in the ecosystem.

Proposed Solution

Define a coordination.Interface contract that specifies the required methods for multi-agent orchestration. This allows teams to use Replicator (the default) or plug in their preferred implementation without changing downstream code.

Acceptance Criteria

  • Create a coordination.Interface contract with documented required methods
  • Implement the interface for Replicator as the default provider
  • Document how to implement the interface for alternative providers
  • Enable pluggable implementations via configuration
  • Add integration tests that validate the contract independent of implementation

Activity

  1. jflowers commented on Jun 12, 2026

    @jflowers
    Contributor

    Thanks for the thoughtful suggestion! This touches on an interesting area of the architecture, so I wanted to share some context on how coordination currently works -- it may change how we think about the right abstraction boundary.

    Two complementary layers, not one

    The codebase actually has two coordination systems operating at different granularities:

    Layer What it does How it works
    Orchestration (internal/orchestration/) Manages the feature lifecycle (define → implement → validate → review → accept → reflect) Pure Go, sequential stage pipeline, JSON state files
    Forge (Replicator MCP) Handles intra-task parallelism -- subtask decomposition, file reservations, worker messaging, git worktree isolation Separate MCP server process, called directly by AI agents at runtime

    These are complementary rather than competing. A forge session runs inside a single orchestration stage. The orchestration engine has no awareness of whether a forge is active.

    The coordination boundary is MCP, not Go

    The key architectural detail is that Replicator's forge primitives are consumed as MCP tools by AI agents at runtime -- there is no Go code in internal/ that calls forge, comms, or org tools programmatically. The only Go-level interaction with Replicator is uf init scaffolding the MCP server entry into opencode.json.

    This means a Go-level coordination.Interface would be wrapping a protocol-level interaction in a library abstraction -- an impedance mismatch. The actual "interface" already exists: it's the MCP protocol itself. If someone wanted to swap in an alternative coordination provider, they'd provide an MCP server exposing compatible tool names, which is already pluggable by virtue of how MCP works.

    On LangGraph/Subtask2 comparisons

    These are agent-framework-level orchestration tools rather than drop-in replacements for Replicator's specific primitives (file reservations, git worktree isolation, inter-agent messaging). Swapping between them would require rearchitecting the agent system, not implementing a Go interface.

    Where this leaves us

    The spirit of the suggestion -- staying open to ecosystem evolution -- is good. But I think the right abstraction boundary is already in place at the MCP protocol layer rather than a new Go interface. If the coordination landscape shifts meaningfully, the path forward would be swapping or adding MCP server configurations, not building a Go abstraction over them.

    Happy to discuss further if you see it differently!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions