You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Abstract coordination interface for multi-agent orchestration #204
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
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:
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!
Activity
jflowers commentedon Jun 12, 2026
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:
internal/orchestration/)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 isuf initscaffolding the MCP server entry intoopencode.json.This means a Go-level
coordination.Interfacewould 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!