Skip to content

Investigate deterministic orchestration for intra-stage multi-agent pipelines #1817

Description

@maruiz93

What happens

ADR 0018 decided that scripted pipelines — not LLM coordinators — should handle multi-agent orchestration. The pipeline definition format was deferred: "Whether the pipeline is defined using existing infrastructure capabilities or a custom pipeline layer is a separate decision."

The review agent (#1550) currently orchestrates six sub-agents using the Claude Code Agent tool, with the LLM deciding dispatch. The pr-review SKILL.md acknowledges this as a "temporary exception to ADR-0018, pending ADR-0018 amendment." As stages gain more agents (ADR 0020) and new sub-agents are proposed (#1797), the gap between the accepted architecture and the implementation grows.

What should happen

Investigate options for a deterministic pipeline format for intra-stage orchestration, starting with the review agent as the concrete case. Options to evaluate:

  • Claude Code Workflows — provides agent(), parallel(), pipeline(), phase(), and structured output schemas. Does it fit the review agent's orchestration needs? What are the rough edges? OpenCode does not have an equivalent deterministic workflow tool, so this creates a runtime-specific dependency — with feat(runtime): abstract Claude Code behind pluggable agent runtime #1780 abstracting the agent runtime, the portability story needs consideration. See official docs and Anthropic blog post.
  • Custom pipeline layer — a fullsend-native format that could work across runtimes. What would it look like? Is the added maintenance justified?
  • Keep current approach — continue with LLM-driven orchestration via the Agent tool. Is the ADR 0018 exception acceptable long-term, or does reliability degrade as sub-agent count grows?

Context

Activity

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

    agent/reviewReview agentcomponent/harnessAgent harness, config, and skills loadingfeatureFeature-category issue awaiting human prioritizationpriority/mediumNormal priority, plan for next cycleresearchReview or explore external content for insightstriagedTriaged but awaiting human prioritization

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions