feat: add multi-agent support (Opencode, VS Code Terminal)#61
Open
Drepheus wants to merge 3 commits intopablodelucca:mainfrom
Open
feat: add multi-agent support (Opencode, VS Code Terminal)#61Drepheus wants to merge 3 commits intopablodelucca:mainfrom
Drepheus wants to merge 3 commits intopablodelucca:mainfrom
Conversation
- 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
|
Up |
Author
working on it - having a tracking issue. |
|
Hi, didn't see a PR was already done and I opened an issue Please this is 🔥 |
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.
Adds support for multiple agent types beyond Claude Code, making the extension work with Opencode and generic VS Code terminals.
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.