How watchandytw/multi-model-team works
multi-model-team is a Claude Code plugin for routing work to local model CLIs, coordinating staffed teams, and combining parallel model answers. Its principal workflow routes a task, invokes a selected backend with fallback to native Claude, then returns the result; the team and reasoning workflows add decomposition/review and panel/judge/synthesis stages. The graph reflects documented capabilities as well as sampled code; some workflow-to-tool wiring is documented but not fully visible in the excerpts.
Main entry points: team.mjs Team Workflow · run.mjs Run CLI · reasoning.mjs Reasoning Workflow · config.mjs Roster Config
Components 21
Claude Plugin
- Slash Commands
commands - Backend Agents
agents
Routing & Config
- Route CLI
src/bin/route.mjs - Decision Engine
src/lib/router.mjs - Task Scoring
src/lib/score.mjs - Roster Config
src/lib/config.mjs - Roster & Tags
config/roster.json
Backend Execution
- Run CLI
src/bin/run.mjs - CLI Invokers
src/lib/backends.mjs
Multi-Model Workflows
- Staffing Parser
src/lib/team-spec.mjs - Team Planning
src/lib/team-plan.mjs - Team Workflow
workflows/team.mjs - Team Dispatcher
src/bin/team.mjs - Reasoning Workflow
workflows/reasoning.mjs - Panel Dispatcher
src/bin/reason.mjs
Status HUD
- HUD State
src/lib/state.mjs - Statusline HUD
statusline/statusline.mjs
Other components
- User
- Claude Code
- Local CLI Backends
- Native Claude
Connections 28
- User → Claude Code: submits task
- Claude Code → Slash Commands: invokes command
- Slash Commands → Team Workflow: starts team
- Slash Commands → Reasoning Workflow: starts reasoning
- Claude Code → Route CLI: requests route
- Route CLI → Roster Config: loads roster
- Roster Config → Roster & Tags: reads
- Route CLI → Decision Engine: decides route
- Decision Engine → Task Scoring: scores task
- Decision Engine → Roster Config: reads routing rules
- Claude Code → Run CLI: runs decision
- Run CLI → Roster Config: loads settings
- Run CLI → CLI Invokers: checks and invokes
- CLI Invokers → Local CLI Backends: runs backend
- Run CLI → Native Claude: hands off on fallback
- Run CLI → HUD State: writes HUD state
- Statusline HUD → HUD State: reads HUD state
- Team Workflow → Staffing Parser: resolves staffing
- Team Workflow → Team Planning: builds task plan
- Team Workflow → Team Dispatcher: dispatches subtasks
- Team Dispatcher → Run CLI: relays CLI tasks
- Team Workflow → Backend Agents: assigns workers
- Team Workflow → Native Claude: uses native workers
- Team Workflow → Claude Code: requests review and synthesis
- Reasoning Workflow → Panel Dispatcher: fans out panel
- Panel Dispatcher → Run CLI: relays CLI panelists
- Reasoning Workflow → Backend Agents: dispatches panelists
- Reasoning Workflow → Claude Code: judges and synthesizes