Skip to content

feat(discovery): add OpenCode Go protocol adapters - #1048

Merged
seonghobae merged 2 commits into
mainfrom
codex/opencode-go-discovery
Sep 4, 2026
Merged

seonghobae merged 2 commits into
mainfrom
codex/opencode-go-discovery

Conversation

@seonghobae

@seonghobae seonghobae commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • discover the OpenCode Go catalog independently from Zen with the existing OPENCODE_ZEN_API_KEY
  • keep Go provider-account and refresh failure identity separate from Zen
  • route the officially documented Chat Completions models and reuse the existing Chat/Responses conversion seam
  • retain Responses-native, Messages-native, and unknown Go models as evidence-only because the live catalog does not expose protocol metadata and this repository has no reusable Anthropic Messages adapter

Live catalog evidence

A credential-free request to https://opencode.ai/zen/go/v1/models returned 34 rows. Every row had only id, object, created, and owned_by; no endpoint or protocol field was present.

OpenCode's official Go documentation supplies the endpoint grouping used for the minimal Chat Completions allowlist:
https://opencode.ai/docs/go

Tests

  • uv run pytest -q tests/test_opencode_go.py tests/test_model_discovery.py tests/test_provider_catalog_bootstrap.py tests/test_provider_catalog_store.py tests/test_local_mlx.py tests/test_chat_passthrough_capability_isolation.py (230 passed)
  • uvx ruff check --select F --ignore F821 contextual_orchestrator/orchestrator.py contextual_orchestrator/model_discovery.py tests/test_opencode_go.py
  • git diff --check

The final PR diff is 3 files, 95 insertions, and 2 deletions. The prior 298-line adapter was removed. No merge requested or performed.

Signed-off-by: Seongho Bae <me@seonghobae.me>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 2f18825d-de18-4c20-a6ac-ae8fea9d7274

📥 Commits

Reviewing files that changed from the base of the PR and between 17095da and 4254441.

📒 Files selected for processing (3)
  • contextual_orchestrator/model_discovery.py
  • contextual_orchestrator/orchestrator.py
  • tests/test_opencode_go.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Seongho Bae <me@seonghobae.me>
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