feat: route native Codex sub-agents to Claude with subscription parity - #49
Merged
Conversation
Owner
Author
Code Review — Cycle 1Full summary withheld (public repository).
Full report: /Users/dean/Sandbox/croxy/.devflow/docs/reviews/feat-bidirectional-parity/2026-09-08_2113/review-summary.md (not committed; ask the author) |
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.
What
Native Codex sub-agents can select Claude models while their OpenAI parent continues on OpenAI. The opt-in gateway routes Sonnet, Opus, Fable, and configured Claude aliases through the existing Claude subscription, preserving native agent orchestration, tool execution, and permissions.
init/doctor/models --client codex|all.--client allfor all supported clients, retainingbothas a compatibility alias. Returns structured setup failures, requires explicit trust for custom upstreams, and reports merged configuration sources. Documents all ingress keys, route labels, and model JSON shapes. Supported Node versions are^22.15.0 || >=24, with CI coverage configured for the Node 22 floor and Node 24.Existing Claude Code → Codex routing remains available and default setup still targets Claude Code. Native binaries and feature settings are not patched. Collaboration namespace adaptation applies across reverse-enabled Codex sessions, including their OpenAI turns; existing opaque histories remain untouched. Translation failures do not switch models or billing modes.
Why
The existing bridge supported only Claude Code → Codex. This adds native delegation in the reverse direction while keeping credential boundaries, transport behavior, continuation limits, and configuration provenance explicit. User-level configuration supports normal native Codex launches; project configuration overrides it, and explicit configuration bypasses the merge.
Validation
npm run typecheckand all 852 tests pass.npm run buildand installed-tarball smoke pass, including both-client setup, reverse model listing, and forward/reverse-enabled health checks.Durable restart/compaction, setup undo, explicit API authentication for translated inference, and broader content/tool support remain outside this parity change.
Related issues
Shared follow-ups: #45, #46, #47, #48. These remain open.
Checklist
npm run typecheckpassesnpm testpasses