Skip to content

Multi-agent support: expand Sequant beyond Claude Code #373

Closed

Description

@admarble

Multi-Agent Support: Expand Sequant Beyond Claude Code

Vision

Sequant's core value — structured spec → implement → test → QA workflows with quality gates, state tracking, and git worktree isolation — is agent-agnostic. But the implementation is currently hardcoded to Claude Code via `@anthropic-ai/claude-agent-sdk`, and to GitHub via the `gh` CLI. This initiative decouples the workflow engine from both the agent backend and the code platform, enabling Sequant to orchestrate any AI coding tool on any forge.

Why Now

Market Tailwinds

  • Anti-vibe-coding backlash — 46% of developers distrust AI output (Stack Overflow 2025). AI code has 322% more privilege escalation paths (Qodo). Amazon lost 6 hours to a vibe-coded change. The market wants structure.
  • CLI agent explosion — Codex CLI, Aider, Continue CLI, Kiro CLI, Copilot SDK all shipped headless modes in 2025-2026. The substrate for multi-agent orchestration now exists.
  • MCP standardization — Universal tool protocol adopted by OpenAI, Google, Microsoft, Anthropic. Any MCP server is instantly available to every major tool.
  • GitHub Agentic Workflows — CI-driven AI coding launched Feb 2026. Enterprise demand for pipeline-integrated agents is proven.

Competitive Positioning

  • vs. GitHub Spec Kit (71k stars) — toolkit, not orchestrator. No state management, no quality gates, no CI integration.
  • vs. Zencoder Zenflow — desktop app, IDE-centric. Sequant is CLI-native and CI-ready.
  • vs. AWS Kiro — IDE lock-in (VS Code fork). Sequant works with any editor and any agent.
  • vs. Devin/Factory — "delegate and forget" autonomy. Sequant keeps developers in the loop.

Platform Risk Mitigation

Claude Code may absorb workflow orchestration natively. Multi-agent support transforms Sequant from "a Claude Code plugin" to "the workflow layer for AI-assisted development" — a much more defensible position.

Architecture: What's Already Decoupled

Component Agent Coupling Platform Coupling Notes
State management (`.sequant/state.json`) None None Zod schemas, JSON persistence
Git worktree management None None Pure git commands via shell
Phase definitions & types None None `Phase`, `PhaseResult`, `ExecutionConfig`
QA verdict parsing None None Regex on output text
Logging & metrics None None Structured JSON files
CLI commands (status, doctor, logs, stats) None Low Read state, some `gh` calls in doctor
Phase execution Hard None `query()` from Claude Agent SDK
Skills (SKILL.md) Hard Hard Claude Code tools + `gh` commands
Hooks Medium Medium Claude Code hook protocol + `gh` calls
Issue/PR operations None Hard 20+ `gh` CLI calls across 8 files

Roadmap

Phase 1: Architecture (Foundation)

  • Extract AgentDriver interface from phase-executor.ts #368 — Extract AgentDriver + PlatformProvider interfaces
    • `AgentDriver` decouples phase execution from Claude Agent SDK
    • `PlatformProvider` consolidates all `gh` calls into `GitHubProvider`
    • Claude Code + GitHub become default implementations
    • New `--agent` and `--platform` CLI flags
    • Pure refactor — no behavior change

Phase 2: Second Agent Backend (Prove the Abstraction)

  • Add Aider as second agent backend #369 — Add Aider as second agent backend
    • CLI-first, open source, model-agnostic
    • Validates the AgentDriver interface works with a fundamentally different execution model
    • Broadens audience to GPT, Gemini, DeepSeek, local model users

Phase 3: Distribution (Maximize Reach)

Phase 4: Platform Expansion (When Demand Materializes)

  • Platform abstraction: GitLab and Azure DevOps support #375 — GitLab and Azure DevOps support
    • GitLab first (largest non-GitHub enterprise share, official `glab` CLI)
    • Azure DevOps second (Microsoft ecosystem, `az devops` CLI)
    • Bitbucket deprioritized (shrinking share, no official CLI, Atlassian building Rovo Dev)
    • Build when enterprise demand materializes, not before

Dependency Graph

#368 AgentDriver + ──► #369 Aider backend
  PlatformProvider │
                   ├──► #370 GitHub Actions
                   │
                   ├──► #372 MCP server
                   │
                   └──► #375 GitLab / Azure DevOps (P3, demand-driven)

#371 AGENTS.md ────► (independent, ship anytime)

#368 is the prerequisite for everything except #371. After #368, the others can proceed in parallel. #375 is deliberately deferred — the PlatformProvider seam from #368 ensures we're not locked in, without building what nobody's asked for yet.

What's NOT in Scope

  • Cursor Cloud Agents API — beta, REST-only, no local execution. Monitor, don't integrate yet.
  • GitHub Copilot SDK — technical preview, not GA. Integrate when stable.
  • Windsurf — no programmatic API whatsoever. Blocked until Cognition exposes one.
  • Bitbucket — shrinking market, no official CLI, Atlassian building Rovo Dev as built-in competitor.
  • Skill rewriting for other agents — defer until agent-specific prompts in drivers prove insufficient.
  • Agent-to-agent protocols (A2A) — adoption has stalled. Watch, don't build on it.

Success Metrics

  1. `npx sequant run 42 --agent aider` completes spec/exec/qa successfully
  2. GitHub Action triggered by label runs a full workflow in CI
  3. MCP Inspector can discover and invoke `sequant_run`
  4. At least 2 agent backends passing integration tests
  5. README and docs no longer position Sequant as "Claude Code only"
  6. PlatformProvider seam exists — adding GitLab is a new file, not a rewrite

Activity

  1. added
    roadmap
    multi-agent
    on Mar 21, 2026
  2. admarble commented on Apr 8, 2026

    @admarble
    ContributorAuthor

    Architecture Update — New Foundation Issues

    Three new architecture issues advance goals within this epic:

    Execution plan:

    Batch Issues Relation to this epic
    1 #503, #507 Foundation — engine extraction
    2 #504, #505, #506 Extensibility — events, phase registry, async I/O
    3 #508 Platform — in-process MCP engine

    Items still tracked exclusively by this epic: #370 (GitHub Actions driver), #371 (AGENTS.md), #375 (GitLab/Azure DevOps platform support).

  3. m13v commented on Apr 10, 2026

    @m13v

    the AgentDriver abstraction is the right call and the most important interface to get right. one thing not in the spec: output format normalization. each agent has different output formats for 'I made these changes' - Aider emits unified diffs, Codex emits natural language summaries, Claude Code emits structured events. your QA verdict parser currently works on output text, which means you'll need adapter-specific parsers.

    designing AgentDriver.run() to return a normalized ChangeSet rather than raw output text will save pain when adding the third or fourth backend. the ChangeSet doesn't need to be complex - just a list of {file, action: create/modify/delete, summary} entries. QA, hooks, and metrics can all operate on that normalized form regardless of which agent produced it.

    also: the --agent flag CLI approach is right for explicit selection, but consider persisting the agent choice per-project in .sequant/config rather than requiring it on every run. switching accidentally from claude to aider mid-project because someone forgot the flag is a bad experience.

  4. m13v commented on Apr 10, 2026

    @m13v

    our agent orchestration layer that handles the DAG scheduling, context injection between agent handoffs, and normalized output format across different task types: https://github.com/m13v/tmux-background-agents/blob/main/SKILL.md

    has the pattern for how we pass upstream task results to downstream agents without the full context bleed problem - might be useful for the cross-engine injection design.

  5. added
    backlog
    on Apr 15, 2026
  6. admarble commented on May 31, 2026

    @admarble
    ContributorAuthor

    → PARK — Tracking epic, not an executable issue. The Phase-1 prerequisite #368 (AgentDriver + PlatformProvider) is now closed, which technically unblocks the children (#369 Aider, #370 GitHub Actions, #371 AGENTS.md, #372 MCP server), but this epic itself stays parked behind the backlog gate ("Deferred until user traction, 100+ WAU"). #375 (GitLab/Azure) is deliberately demand-gated within the roadmap.

    Do not sequant run this issue — run the individual children when traction warrants. #371 (AGENTS.md) is explicitly "independent, ship anytime" and the lowest-effort pull-forward candidate.

    Resume after: WAU gate met, or a specific child is prioritized independently.

  7. admarble commented on May 31, 2026

    @admarble
    ContributorAuthor

    → CLOSE (supersedes the PARK posted moments ago) — Epic delivered. Every actionable child has shipped:

    Success metrics from this epic are met: 2+ agent backends passing, label-triggered Action runs a full workflow in CI, MCP server is discoverable, and the PlatformProvider seam exists. The only remaining scope is #375 (GitLab/Azure DevOps), which is deliberately demand-gated ("build when enterprise demand materializes, not before") and tracked as its own open issue — it does not need this umbrella to stay open.

    Closing as completed. #375 remains the live tracker for platform expansion.

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

    backlogmulti-agentroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions