Draft
Split engine provider selection from harness execution and route Claude/Codex via reflected CAPI endpoints#45490
Conversation
…t routing Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…ne.provider override Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Split engine harness/provider concerns and route Claude/Codex via /reflect endpoints
Split engine provider selection from harness execution and route Claude/Codex via reflected CAPI endpoints
Jul 14, 2026
Copilot created this pull request from a session on behalf of
pelikhan
July 14, 2026 13:28
View session
Collaborator
|
@copilot add smoke-github-Claude that uses github to run Claude code |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Implemented in |
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.
This change separates inference-provider concerns from harness-runner concerns in the agentic engine flow, enabling Claude Code and Codex to run against GitHub Copilot CAPI-backed endpoints discovered at runtime. It also introduces explicit provider override semantics so workflows can select provider behavior without coupling to a specific harness implementation.
Provider override semantics (
engine.provider)engine.providerparsing as a first-class provider override for non-inline engines, while preserving existingengine.model-providercompatibility.engine.runtime+engine.providerobject behavior intact (id/auth/requestpath).Engine abstraction split (provider vs harness)
Known provider normalization
github,anthropic,openai) and mapped GitHub aliases consistently (includinggithub_models).Claude/Codex runtime endpoint routing from
/reflect/reflectpayloads.openai-proxybase_urland exporting corresponding env overrides.Targeted test coverage updates
engine.provideroverride behavior