Multi-Agent Support (Driver Model) - #16
Merged
Merged
Conversation
Design for making cockpit agent-agnostic via thin adapter layer (driver model). Covers driver interface, capability registry, config changes, coordination via cmux, and 4-phase migration path. Implementation planned for next sprint.
11-task plan covering driver interface, 4 agent drivers (Claude, Codex, Gemini, Aider), capability registry, config migration, launch.ts refactor, doctor probing, generic role templates, and spawn-workspace.sh updates.
TDD: test written first (verified fail), then implementation. 9/9 tests passing covering name, templateSuffix, buildCommand flags (model, autoApprove, promptFile), probe capabilities, JSONL parsing, and raw fallback.
…ilding Wire CapabilityRegistry into the launch action; route each role through its configured agent driver (defaulting to claude) so non-Claude agents (codex, gemini, aider) can be dispatched from cockpit config.
This was referenced Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
modelsconfig auto-migrates toroles)cockpit doctornow shows installed agents with capabilitiesFiles Changed
New (driver system):
src/drivers/types.ts— AgentDriver interface, capabilities, role requirementssrc/drivers/claude.ts— Claude Code driver (extracted from buildClaudeCmd)src/drivers/codex.ts— OpenAI Codex CLI driversrc/drivers/gemini.ts— Google Gemini CLI driversrc/drivers/aider.ts— Aider driversrc/drivers/registry.ts— CapabilityRegistry with probe + validatesrc/drivers/index.ts— Barrel exportsorchestrator/captain.generic.md— Generic captain template (cmux-based)orchestrator/crew.generic.md— Generic crew templateModified:
src/config.ts— Added AgentEntry, RoleAssignment, RoleConfig types + migrationsrc/commands/launch.ts— Uses driver registry instead of hardcoded buildClaudeCmdsrc/commands/doctor.ts— Agent probing + role validation sectionsrc/commands/init.ts— Handles new template namingscripts/spawn-workspace.sh— Multi-agent command buildingorchestrator/*.CLAUDE.md→*.claude.md(renamed)Test plan
tsc --noEmit)cockpit doctorshows Agent Drivers section with Claude detectednpm run build && npm link— CLI works