Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.48 KB

File metadata and controls

32 lines (25 loc) · 1.48 KB

PLAN: Teams → Sub-agents Refactor + Environment Compatibility

Goal

Refactor do:rpr from team-based coordination (TeamCreate/SendMessage/TaskCreate) to parallel sub-agents (Agent tool only). This makes it universally compatible across all 4 environments (Claude Code, OpenCode, Gemini CLI, Codex) without conditional logic.

Also add a supportsTeams capability flag to src/environments.js for future use by do:better and other team-heavy commands.

Changes

1. Refactor commands/do/rpr.md — Teams → Sub-agents [DONE]

  • Remove TeamCreate, SendMessage, TaskCreate, TaskUpdate, TaskList references
  • Replace step 4 (spawn a team) with parallel Agent sub-agent calls
  • Remove "Shut down the team after all work is complete" note
  • Keep the small-PR escape hatch ("for small PRs, sub-agents may be overkill")
  • Preserve all other behavior (GraphQL escaping, fork detection, copilot loop, thread resolution)

2. Add supportsTeams to src/environments.js [DONE]

  • claude: supportsTeams: true
  • opencode: supportsTeams: false
  • gemini: supportsTeams: false
  • codex: supportsTeams: false

3. Add tests for the new environment flag [DONE]

  • Update existing environment tests to cover supportsTeams (99/99 pass)

Out of Scope (future work)

  • Refactoring do:better (complex multi-phase team workflow, needs conditional blocks)
  • Transformer-level <!-- if:teams --> conditional rendering
  • Per-environment command variants