feat: Add OpenCode and Antigravity provider adapters - #8
Open
Paslestrange wants to merge 4 commits into
Open
Conversation
added 4 commits
July 10, 2026 15:46
Add native provider support for OpenCode and Antigravity coding agents: - OpenCodeProvider: discovers agents from OpenCode config, sends chat via opencode run, manages sessions - AntigravityProvider: one-shot agy --print interface, stateless Gemini-powered code analyst Both follow the existing provider pattern (CodexProvider, ClaudeCodeProvider) and integrate with the discovery system, config parsing, and roster management.
…eedback)
- Add /api/opencode/{test,chat,interrupt} HTTP endpoints
- Add /api/antigravity/{test,chat,interrupt} HTTP endpoints
- Add handler functions: _handle_opencode_test, _handle_opencode_chat,
_handle_opencode_interrupt, _handle_antigravity_test,
_handle_antigravity_chat, _handle_antigravity_interrupt
- Include 'error' key on non-zero exit codes for API contract consistency
- Sanitize profile names from agent metadata to prevent path traversal
- Add 'desktopAvailable' key for API contract parity with other providers
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 native provider support for two new coding agent harnesses:
OpenCode
Antigravity (agy)
Both follow the established provider pattern (CodexProvider, ClaudeCodeProvider) and integrate with the existing discovery system, config parsing, and roster management.