anomalyco / anomalyco/opencode
[FEATURE]: v2 API gaps blocking third-party clients
@nexxeln is already working on this.
Since Aug 11, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
I maintain a third-party Rust TUI client for opencode and have been porting it to the v2 server. Five capabilities that v1 exposed have no v2 equivalent, and each blocks a client feature rather than being cosmetic. Checked against the published v2 API docs (https://opencode.ai/v2/docs/api) and packages/protocol/openapi.json at a5d6969f.
-
Symbol search.
GET /api/fs/findacceptstypeoffileordirectoryonly. v1 had/find/symbol, which backed symbol lookup in the file picker. -
Per-session diff. Only
GET /api/vcs/diffexists and it is workspace scoped (modeis required, there is no session parameter). v1 had/session/{id}/diff, which backed a per-session changed-files view. -
Provider connection state.
GET /api/providerreturnsid,name,package,settings,integrationID,disabled. A client cannot tell which providers are actually connected, so it cannot show connected state or gate the model picker on it. -
Model capability flags.
GET /api/modelcapabilities carrytools,input,outputonly. v1 also exposedreasoningandtemperature, which drive badges and filtering in a model picker. -
Protocol version.
server.connectedcarries an untypeddatafield and/experimental/capabilitiesis gone, so a client cannot detect the server protocol version at connect time. That forces a hard cutover instead of supporting v1 and v2 behind detection.
Happy to split these into separate issues if that is easier to track, and happy to be told any of them are intentional removals.
Environment: opencode2 0.0.0-next-17002 on Linux, talking to the HTTP API directly rather than using the bundled TUI.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.