Antigravity OpenCode Delegate
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENCODE_BIN | No | Absolute path to the native OpenCode executable. Set this if OpenCode is not discovered automatically; it must not point to a .cmd, .bat, or .ps1 wrapper. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| opencode_doctorA | Read-only diagnostics for local OpenCode 2 binary resolution, CLI version, and (with deep=true) configured model catalog availability. |
| opencode_modelsA | List configured provider/model IDs from local OpenCode 2 without invoking any model. Call this before delegating if the user has not specified an explicit provider/model. |
| opencode_executeA | Run a bounded task in a new session with local OpenCode 2. An explicit provider/model is REQUIRED for every task; never infer a model or rely on CLI defaults. Defaults to isolated read-only project analysis. Returns the requested model (not independently verified), text, session ID, exit status and Git context; reports model failures as errors. |
| opencode_startA | Start an OpenCode task in the background and immediately return a job ID. Poll opencode_status; do not start a duplicate task while the job is running. |
| opencode_statusC | Read the progress or terminal result of an OpenCode background job. |
| opencode_cancelA | Cancel one OpenCode background job and its owned local process tree. Poll status until the job reaches cancelled. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool has a clearly distinct role: doctor diagnostics, model listing, synchronous execution, background start, status polling, and cancellation. The only potentially confusable pair, opencode_execute and opencode_start, is explicitly differentiated by foreground/bounded execution versus background job creation.
All tools use the same opencode_ prefix followed by a clear action or resource noun in snake_case. The naming pattern is predictable and consistent across the entire set.
Six tools is well-scoped for a delegation server covering diagnostics, discovery, execution, and job lifecycle. No tool appears redundant or unnecessary.
The surface covers the core lifecycle: checking the local binary, listing models, executing tasks synchronously or in the background, polling status, and cancelling jobs. Minor gaps exist around session history or detailed log retrieval, but the essential workflows are covered.