feat(coding_agent_rl): select claude_code/codex harness+adapter pair via SWE_AGENT - #2125
Merged
Merged
Conversation
…arness+adapter pair (cherry picked from commit ffe8c37ccee0cd8f441d61d8c52095fe16a5b264)
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
Make the SWE rollout in
examples/coding_agent_rlagent-agnostic. Thegenerate()orchestrator no longer hard-codes the Claude Code harness + Anthropic adapter; instead the(harness, adapter)pair is selected at import time by theSWE_AGENTenv var.Changes
generate.py:_AGENTSregistry mapping the agent name to its(harness, adapter)pair:claude_code->(ClaudeCodeHarness, AnthropicAdapter)codex->(CodexHarness, OpenAIAdapter)SWE_AGENT(defaultclaude_code) intoHARNESS_CLS/ADAPTER_CLS, with an explicitValueErroron an unknown value.HARNESS_CLS/ADAPTER_CLSeverywhere the concrete classes were previously referenced (CLI install, adapter service, rollout run).run_qwen36_35b_a3b_swe_8nodes.sh:SWE_AGENT(defaultclaude_code) and propagate it into the RayRUNTIME_ENV_JSONso workers see the same selection.Behavior
claude_code), so existing runs are not affected.SWE_AGENT=codexto switch the rollout to the Codex harness + OpenAI adapter.