Skip to content

feat: Add OpenCode and Antigravity provider adapters - #8

Open
Paslestrange wants to merge 4 commits into
eliautobot:mainfrom
Paslestrange:feat/opencode-antigravity-providers
Open

feat: Add OpenCode and Antigravity provider adapters#8
Paslestrange wants to merge 4 commits into
eliautobot:mainfrom
Paslestrange:feat/opencode-antigravity-providers

Conversation

@Paslestrange

Copy link
Copy Markdown

Adds native provider support for two new coding agent harnesses:

OpenCode

  • Multi-provider coding agent with TUI, serve, and one-shot modes
  • Discovers agents from OpenCode config directory
  • Sends chat via opencode run CLI with session resume support
  • Config at ~/.config/opencode/
  • Env vars: VO_OPENCODE_BIN, VO_OPENCODE_HOME, VO_OPENCODE_WORKSPACE_ROOT, VO_OPENCODE_MODEL

Antigravity (agy)

  • Gemini-powered autonomous code analyst
  • One-shot agy --print interface — stateless, no session persistence
  • Optimized for structured reviews, audits, and quick implementations
  • Data at ~/.gemini/antigravity-cli/
  • Env vars: VO_ANTIGRAVITY_BIN, VO_ANTIGRAVITY_HOME, VO_ANTIGRAVITY_PRINT_TIMEOUT

Both follow the established provider pattern (CodexProvider, ClaudeCodeProvider) and integrate with the existing discovery system, config parsing, and roster management.

Pascal 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
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.

1 participant