Skip to content

bug: /debate command delegates to debate-orchestrator agent instead of managing the debate itself #231

@avifenesh

Description

@avifenesh

Problem

The /debate command (plugins/debate/commands/debate.md) fully resolves all parameters and then delegates the entire debate execution to a debate:debate-orchestrator agent (Phase 3). This means:

  1. The command does the hard work (parsing, interactive resolution, tool detection) and then hands off to an agent that just re-reads everything from the prompt.
  2. The orchestrator agent is an unnecessary extra layer — it runs the debate by calling the consult skill in a loop, which the command itself could do directly.
  3. Spawning an opus agent for every debate adds latency and cost.
  4. The design intention is that the command itself manages the debate between external agents (Gemini, Codex, etc.), not that it spawns an internal intermediary.

Expected Behavior

The /debate command should manage the debate flow directly:

  • Load the debate skill for prompt templates
  • Call the consult skill for each external tool per round
  • Synthesize the verdict itself as the judge

This eliminates the debate:debate-orchestrator agent as an intermediary. The "external agents" in the debate are the external AI CLIs (gemini, codex, etc.) — not an internal agentsys agent.

Files Affected

  • plugins/debate/commands/debate.md — Phase 3 should run the debate directly
  • plugins/debate/agents/debate-orchestrator.md — can be removed or repurposed as documentation

Impact

Simpler architecture, lower latency, no orphaned agent spawn on platforms where Task subagent routing is unreliable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions