Add multi-adapter support (claude / codex / opencode)#14
Merged
andreisavu merged 3 commits intomainfrom Feb 17, 2026
Merged
Conversation
Allow selecting the execution adapter via TRIVIA_ADAPTER env var (or `make agent ADAPTER=codex`). This demonstrates WINK's portability across harnesses. Default remains claude for backward compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The skip logic only checked ANTHROPIC_API_KEY but the agent also supports CLAUDE_CODE_USE_BEDROCK for authentication. Accept either. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reflect that the same agent runs on Claude, Codex, and OpenCode adapters. Update Quick Start, Configuration Reference, architecture diagram, development commands, and troubleshooting sections. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
TRIVIA_ADAPTERenv var to select execution adapter (claude,codex,opencode); defaults toclaudefor backward compatibilitycreate_adapter()into a multi-adapter factory dispatching to Claude Agent SDK, Codex App Server, or OpenCode ACP backendsANTHROPIC_API_KEY)ADAPTERparameter to Makefile targets (make agent ADAPTER=codex)Test plan
make checkpasses (format, lint, typecheck, 185 tests at 100% coverage)make agentstarts with claude adapter (backward compatible)make agent ADAPTER=codexstarts with codex adaptermake agent ADAPTER=opencodestarts with opencode adapterdispatch-evalwith "What is the secret number?" / expected "42")🤖 Generated with Claude Code