Skip to content

feat: add multi-agent support (Opencode, VS Code Terminal)#61

Open
Drepheus wants to merge 3 commits intopablodelucca:mainfrom
Drepheus:feature/multi-agent-support
Open

feat: add multi-agent support (Opencode, VS Code Terminal)#61
Drepheus wants to merge 3 commits intopablodelucca:mainfrom
Drepheus:feature/multi-agent-support

Conversation

@Drepheus
Copy link

@Drepheus Drepheus commented Mar 1, 2026

Adds support for multiple agent types beyond Claude Code, making the extension work with Opencode and generic VS Code terminals.

  • Add AgentType system ('claude-code', 'opencode', 'vscode-terminal')
  • Create agentTypeRegistry.ts with per-type config (launch cmd, transcript dir, parser)
  • Create opencodeParser.ts for Opencode JSONL transcript parsing
  • Update agentManager.ts to support launching/restoring/persisting typed agents
  • Add adoptExistingTerminal() for connecting running terminals as agents
  • Update BottomToolbar with agent type picker dropdown
  • Extend toolUtils.ts with Opencode tool-to-animation mappings
  • Backwards compatible: defaults to 'claude-code' for existing agents

Changes
New files:

agentTypeRegistry.ts — Central registry with per-agent-type config (launch command, transcript directory, parser selection)
opencodeParser.ts — JSONL transcript parser for Opencode sessions (handles multiple formats)
Modified files:

types.ts — Added AgentType union type and agentType field to AgentState/PersistedAgent
constants.ts — Terminal name prefixes for each agent type
agentManager.ts — Multi-type agent launching, restoring, persisting, plus adoptExistingTerminal()
fileWatcher.ts — Parser dispatch based on agent type
PixelAgentsViewProvider.ts — agentType in message handling
BottomToolbar.tsx — Agent type picker dropdown
useEditorActions.ts — handleOpenAgent(agentType) replacing handleOpenClaude()
toolUtils.ts — Opencode tool-to-animation mappings
Backwards Compatible
Defaults to 'claude-code' for existing persisted agents. No breaking changes.

Drepheus added 3 commits March 1, 2026 12:48
- Add AgentType system ('claude-code', 'opencode', 'vscode-terminal')
- Create agentTypeRegistry.ts with per-type config (launch cmd, transcript dir, parser)
- Create opencodeParser.ts for Opencode JSONL transcript parsing
- Update agentManager.ts to support launching/restoring/persisting typed agents
- Add adoptExistingTerminal() for connecting running terminals as agents
- Update BottomToolbar with agent type picker dropdown
- Extend toolUtils.ts with Opencode tool-to-animation mappings
- Backwards compatible: defaults to 'claude-code' for existing agents
@LightZirconite
Copy link

Up
I want Github Copilot CLI or Extension

@Drepheus
Copy link
Author

Drepheus commented Mar 5, 2026

Up I want Github Copilot CLI or Extension

working on it - having a tracking issue.

@MDSevrainChea
Copy link

Hi, didn't see a PR was already done and I opened an issue
#67

Please this is 🔥

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.

3 participants