Skip to content

Add multi-adapter support (claude / codex / opencode)#14

Merged
andreisavu merged 3 commits intomainfrom
andreisavu/abuja
Feb 17, 2026
Merged

Add multi-adapter support (claude / codex / opencode)#14
andreisavu merged 3 commits intomainfrom
andreisavu/abuja

Conversation

@andreisavu
Copy link
Member

Summary

  • Add TRIVIA_ADAPTER env var to select execution adapter (claude, codex, opencode); defaults to claude for backward compatibility
  • Refactor create_adapter() into a multi-adapter factory dispatching to Claude Agent SDK, Codex App Server, or OpenCode ACP backends
  • Make auth checks and isolation config conditional on the selected adapter (only claude needs ANTHROPIC_API_KEY)
  • Add ADAPTER parameter to Makefile targets (make agent ADAPTER=codex)
  • Update integration test scaffolding to forward adapter choice and skip based on adapter prerequisites

Test plan

  • make check passes (format, lint, typecheck, 185 tests at 100% coverage)
  • make agent starts with claude adapter (backward compatible)
  • make agent ADAPTER=codex starts with codex adapter
  • make agent ADAPTER=opencode starts with opencode adapter
  • Eval passes for all three adapters (dispatch-eval with "What is the secret number?" / expected "42")
  • Debug bundles produced and inspectable for each adapter run

🤖 Generated with Claude Code

andreisavu and others added 3 commits February 16, 2026 23:01
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>
@andreisavu andreisavu merged commit 3d7d58f into main Feb 17, 2026
1 check passed
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