Repository navigation
feat(examples): add Claude Code subagent training recipe - #5113
Open
aroshanghias-nvd wants to merge 3 commits into
Open
aroshanghias-nvd wants to merge 3 commits into
aroshanghias-nvd wants to merge 3 commits into
Conversation
Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
aroshanghias-nvd
force-pushed
the
aroshanghias/claude-subagent-example-20261106
branch
from
December 4, 2026 02:15
da2d919 to
c818878
Compare
1 task
aroshanghias-nvd
marked this pull request as ready for review
December 4, 2026 02:16
This branch has not been deployed
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 and why
Add a runnable coordinator/child training example using Gym's existing Claude Code harness, a local Nano Omni model, the existing math verifier, and eight bundled synthetic arithmetic tasks.
all_capturedtrains coordinator and child calls with a shared rollout reward; zero lookahead keeps the numerical validation on-policy.The PR contains configuration, agent profiles, public synthetic data, instructions, and a guide link. It adds no RL production code, harness implementation, dependency pin, or lockfile change. The local subprocess sandbox is intended for these trusted bundled tasks. Background execution, forced compaction, and agent-specific rewards are outside the demonstrated scope.
Refreshed against main after #5432: preserve main's guide changes, use the current
token_capture.forest.enabledand.selection_policykeys, and remove the obsolete requirement to patch Gym separately.Issues
Companion Gym compatibility work: #5771, now included in RL through #5432. Related worker safety/prefix-reuse improvement: #5138.
Convergence / perf / functionality proof
On refreshed head
c818878d5, the recipe resolves and passes MasterConfig and SingleController configuration validation against the current forest schema. All eight arithmetic reference answers were independently checked, and Gym YAML/settings parsing passed. W&B remains enabled and the recipe still requests 20 steps. A paired focused run also passed 292 RL CPU regressions plus the new two-turn Messages capture integration test against pinned Gym91666f9. These checks use the prepared environment (retaining its source/dependency fingerprint warning); no new 20-step training run is claimed.Earlier paired GPU validation used RL
95095b7124f9b2526c12be772b04fac918ba0a47and Gym5911d628c744d0bf43fe1d9ddf3bda72d59b0f9aplus the companion fixes:The example README records the setup, topology, qualification evidence and limits. The current-main refresh is not a repeat of that earlier 20-step GPU run.
Needs upstream changes
No additional Gym changes: main's pin now contains #5771 through #5432. This PR leaves the pin and lockfile unchanged.
#5138 adds safety checks and captured-prefix reuse for late system updates; without its gate, Gym starts a new context root for such a suffix. It can be reviewed separately from these example assets.