agent_crew icon indicating copy to clipboard operation
agent_crew copied to clipboard

feat: Provider selector + OpenCode model list in Team Builder

Open sre-helmcode opened this issue 9 months ago • 1 comments

Summary

Add provider selection UI and OpenCode model list to the Team Builder wizard.

Scope

Types (src/types/index.ts)

  • New type: AgentProvider = 'claude' | 'opencode'
  • Add provider: AgentProvider to Team interface
  • Add provider?: AgentProvider to CreateTeamRequest
  • Rename claude_md → instructions_md in Agent, CreateAgentInput interfaces

TeamBuilderPage (src/pages/TeamBuilderPage.tsx)

Step 1 — Provider Selector:

  • Two cards: Claude Code / OpenCode with descriptions
  • Selected before agent configuration (determines available options)

Step 2 — Model Dropdown (dynamic by provider):

  • Claude: inherit, sonnet, opus, haiku (existing)
  • OpenCode (grouped):
    • Anthropic: Claude Sonnet 4, Claude Opus 4, Claude Haiku 3.5
    • OpenAI: GPT-4o, o3-mini
    • Google: Gemini 2.5 Pro, Gemini 2.5 Flash
    • Local: Ollama - Llama 3, LM Studio - Default

Step 2 — Dynamic labels:

  • Claude: "CLAUDE.md Content"
  • OpenCode: "AGENTS.md Content"

Step 3 — Review:

  • Show selected provider
  • Preview file paths adapted (.opencode/agents/ vs .claude/agents/)

TeamsListPage + TeamMonitorPage

  • Provider badge next to team name (blue for Claude, green for OpenCode)

API Client (src/services/api.ts)

  • Adapt to new field names (instructions_md)

Acceptance Criteria

  • [ ] Provider selector appears in Step 1 of team creation
  • [ ] Model dropdown changes based on selected provider
  • [ ] Labels adapt dynamically (CLAUDE.md vs AGENTS.md)
  • [ ] Provider badge shows in team list and monitor views
  • [ ] Existing Claude team creation flow unchanged
  • [ ] All unit tests pass

Dependencies

  • Backend must support provider field (#39)

References

  • Plan: PLAN_OPEN_CODE.md → Issue 5
  • Section: 10 (Frontend)

sre-helmcode avatar Feb 27 '26 19:02 sre-helmcode

Completed and merged. Provider selector, OpenCode model list, leader model selection, deploy error banner, and provider-aware instruction paths all implemented.

sre-helmcode avatar Feb 28 '26 21:02 sre-helmcode