Repository navigation
Description
Summary
Create a set of foundational skills to improve coding agents at using NeMo Gym. These skills cover the core product surface area. We should evaluate agents with and without the skills loaded and compare output quality.
Scope constraint: Each skill should assume the user knows what they want to do, but not how to do it in Gym. Skills teach Gym-specific implementation patterns, not ML fundamentals or environment design theory.
Skill design principles:
- Skills reference docs for detailed schemas/patterns rather than duplicating docs content
- Each skill is self-contained (no skill depends on another skill's files)
- Trigger phrases cover the realistic range of how users prompt their coding agents
Foundational Skills
1. nemo-gym-create-environment (P0)
Replaces: The "native benchmark" branch of add-benchmark
Triggered by: "create environment", "new environment", "new benchmark", "add benchmark", "new resources server", "build environment", "custom environment"
Scope: Creating a new environment from scratch -- tasks, task format, writing verify() logic, configuring tools and state, configuring the agent, environment, and tasks together, quality validation. The skill should have a brief "where's your data?" section early in the workflow: (1) you have existing data, convert to Gym format (2) You need to create tasks -- design guidance (what makes good tasks for your domain), point to examples like calendar's README for SDG pipeline approaches
Example prompts:
- Create a new environment that tunes a model's proactive asking ability, balancing when to ask for more detail vs making assumptions.
- I want a new resources server for SQL generation that runs queries against a test database
Verification methodology:
- Verifier design matches task type (judge)
- Valid config linking tasks, agent, resources server
- Baselining section produces meaningful pass rates on reference models
2. nemo-gym-integrate-benchmark (P0)
Replaces: The "external benchmark" branch of add-benchmark
Triggered by: "integrate benchmark", "wrap benchmark", "port benchmark", "add existing benchmark", "integrate X into Gym", "wrap X library", "add X benchmark to Gym"
Scope: Wrapping an existing 3rd-party benchmark library that already has its own tasks, harness (optional), and scoring (e.g., OSWorld, AndroidWorld, EnterpriseOps Gym). This can be used to integrate any external environment to gym, with some additional steps required to reproduce public results if the environment is a benchmark.
Example prompts:
- Integrate EnterpriseOps Gym into NeMo Gym
- Add OSWorld to NeMo Gym
Verification methodology:
- Dependency management in
requirements.txt - Reproduce benchmark results before/after integration
3. nemo-gym-training (P0)
Triggered by: "RL training", "train model", "GRPO", "NeMo RL", "VeRL", "Unsloth", "fine-tune with Gym", "training with environments", "RL training setup", "train with my environment"
Scope: RL training using NeMo Gym with supported (integrated) training frameworks.
Deferred: SFT
Example prompts:
- Train Nemotron 3 Nano on {{env-name(s)}} environment with {{ NeMo RL, VeRL, Unsloth }}
- How do I configure training with multiple environments for {{ NeMo RL, VeRL, Unsloth }}
4. nemo-gym-evaluation (P0)
Triggered by: "evaluate model", "evaluate agent", "run benchmark", "collect rollouts", "reward profiling", "benchmark results", "compare models", "compare agents", "analyze results", "pass@k", "why is reward 0"
Scope: evaluate model and agents on existing or custom benchmark. Specify agent, model, tasks / benchmark, scorer, metrics
Example prompts:
- Evaluate Claude Code with Sonnet 4.6 on SWE bench
- Evaluate Nemotron 3 Super on SWE Bench with OpenHands, KiloCode, OpenCode
5. nemo-gym-verification-and-scoring (P0)
Triggered by: "write verifier", "implement verify", "reward function", "scoring logic", "LLM as judge", "reward model", "verification strategy", "how to verify", "design verifier", "reward signal"
Scope: Designing and implementing verification/scoring for environments. Covers choosing the right verification pattern for a domain, implementing it correctly in Gym, and validating verifier quality. This is a cross-cutting concern referenced by create-environment, training, and evaluation.
Example prompts:
- Design verifier for these tasks?
- How do I do LLM as a judge?
6. nemo-gym-async-patterns-and-performance (P1)
Triggered by: "async pattern", "concurrency", "httpx to aiohttp", "performance", "scale", "connection pool", "Ray pattern", "high concurrency"
Scope Diagnostic and implementation guide for NeMo Gym's async HTTP, Ray, and concurrency patterns. Complements the environment skills (which reference this for details) without duplicating their constraint checklists.
Includes:
- HTTP client decision tree: request() vs ServerClient.post() vs NeMoGymAsyncOpenAI
- httpx-to-aiohttp adapter pattern (template from tavily_search)
7. nemo-gym-integrate-environment-framework (P2)
Triggered by: "integrate environment framework", "{{environment framework}} adapter"
Scope: Adapting an existing environment framework (e.g. Harbor, OpenEnv, Verifiers) that provide tooling to author new environments and a collection of environment/hub. this enables the environments developed with another framework to be combined with and runnable from NeMo Gym
- Ray async integration (awaitable futures vs legacy run_in_executor)
- Advanced concurrency patterns (multiprocessing.Process + signal.SIGALRM in math_with_code, sidecar process lifecycle in ns_tools)
- Diagnosing scale failures: connection pool exhaustion, Ray socket path length (107-byte limit), event loop blocking, DummyCookieJar behavior
- Semaphore sizing heuristics
Verification Approach
- Correctness -- Does the generated code actually work and meet user request?
- Completeness -- Does it cover the full workflow or stop partway?
- Convention compliance -- Does it avoid known anti-patterns (httpx, unsafe metadata access, missing error handling)?
- Quality of guidance -- For ambiguous prompts, does it ask the right clarifying questions or make reasonable defaults?
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDetails Todo
Activity
[-]feat: foundational agent skills[/-][+]epic: foundational agent skills[/+][-]epic: foundational agent skills[/-][+]epic: nemo gym agent skills[/+]ffrujeri commentedon Jul 16, 2026
To bootstrap design conversations, and help break it into concrete sub-issues, a few questions to make sure I understand the intent and requirements, starting with the the evaluation sentence, since it probably shapes the most work:
The Verification Approach lists
four great dimensions (correctness, completeness, convention compliance, quality of
guidance) — are those the rubric? And for each, are we thinking executable checks
(e.g., the generated environment passes
gym env test, the config resolves viagym env resolve, baselining produces sane pass rates) or judged checks (LLM/humanrubric), or a mix per dimension? Convention compliance feels lintable; quality of
guidance probably doesn't.
#1256 already gives us
skills.path+skills_refstamping, and the repo already ships aclaude_code_agentharness — soall the primitives exist to dogfood: a "Gym-dev-bench" environment where the tasks are
Gym-development prompts, the runner is
claude_code_agentin an isolated workspace(fresh Gym checkout at a pinned SHA — or a bare pip-install, the #1365 persona), the
ablation variable is
skills.path(foundational skills vs. empty), and a resourcesserver
verify()grades the result. Is that the intent, or a lighter one-off study(headless agent runs + manual/scripted grading)? The former is more work but leaves a
reusable asset and doubles as the demo for the #1494 improvement loop. (Full
disclosure: this is the shape I prototyped in the #2010 design spike —
benchmarks/agent_skills/+ a checks-based verifier + a sandboxedclaude_code_agentrunner — and closed because it was too big for one review. Ifthe shape is right, I'd re-land it in small pieces; concrete breakdown in a
follow-up comment below.)
A possible default: 3–5 tasks per
P0 skill seeded from this epic's "Example prompts" (~15–25 tasks total), each graded
by a mix of executable checks and a rubric judge, e.g.:
gym env resolvesucceeds,gym env testpasses,verify()scores canned good/bad rollouts correctly, no anti-patterns (httpx, sync/run)Does that match what you had in mind? Two things it surfaces: (a) cost — these are
long-horizon agent runs (create-environment tasks plausibly 30–60 min each), so with
n repeats for stochasticity (say pass@1 avg-of-4) the full matrix is ~25 tasks × 2
arms × 4 ≈ 200 runs; we probably want a cheap core suite that runs regularly and an
expensive tier run once per skill revision. (b) isolation — every rollout mutates a
repo, so each needs its own worktree/container. And a process question: how do we
avoid quietly overfitting the skills to these eval prompts?
"Without skills" still means the agent sees
CLAUDE.md and can read
fern/docs — both already encode many of the sameconventions. Are we comparing skills vs. that, or do we also want a
docs-only/CLAUDE.md-only arm to know where the lift actually comes from?
Claude Code only, or also Codex (the
.codexduplication in #1652 suggests it's a real target)? And do we care about the skill
lift on strong models, weaker models, or both — skills often help smaller models
disproportionately, which changes what "success" looks like.
Does a skill need a positive delta to ship? What if
it's accuracy-neutral but cuts tokens/turns/wall-clock — is efficiency part of
"quality"?
A possible breakdown in sub-issues could be
Two tracks + one closing issue. Track A = skill content (markdown, no framework code).
Track B = eval infrastructure (small PRs to
claude_code_agent/ a new resourcesserver). Tracks are independent; C1 needs both.
feat: Migrate agent skills to a shared canonical directory. (#2007)
feat: Migrate agent skills to a shared canonical directory. (NVIDIA-N…