Skip to content

feat(agent): support multiple configured agents in the coordinator#2999

Open
dcu wants to merge 1 commit into
charmbracelet:mainfrom
dcu:multi-agents
Open

feat(agent): support multiple configured agents in the coordinator#2999
dcu wants to merge 1 commit into
charmbracelet:mainfrom
dcu:multi-agents

Conversation

@dcu

@dcu dcu commented May 24, 2026

Copy link
Copy Markdown

Summary

  • Enable the coordinator to build and manage all configured agents dynamically, rather than hardcoding only the coder agent.
  • Add Coordinator.SetMainAgent() to switch the active agent at runtime.
  • Add App.InitAgent(agentID) as a generic initialization method, deprecating InitCoderAgent().
  • Update RunNonInteractive() to accept an optional agentID parameter.

Test plan

  • Run go test ./internal/agent/... ./internal/app/... ./internal/cmd/... — 337 tests pass
  • Verify no breaking changes for existing single-agent usage

💘 Generated with Crush

This change enables the coordinator to build and manage all configured
agents dynamically, rather than hardcoding only the coder agent.

Key changes:
- NewCoordinator now builds all configured agents and selects a default
- Added agentPrompt() for dynamic prompt lookup by agent ID
- Added Coordinator.SetMainAgent() to switch the active agent at runtime
- Added App.InitAgent(agentID) as a generic initialization method
- Updated App.RunNonInteractive() to accept an agentID parameter
- Deprecated App.InitCoderAgent() in favor of InitAgent(config.AgentCoder)

💘 Generated with Crush

Assisted-by: Crush:accounts/fireworks/models/kimi-k2p6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant