Skip to content

epic: nemo gym agent skills #1235

Open
1 of 2 issues completed
Open

Description

@cwing-nvidia

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

  1. Correctness -- Does the generated code actually work and meet user request?
  2. Completeness -- Does it cover the full workflow or stop partway?
  3. Convention compliance -- Does it avoid known anti-patterns (httpx, unsafe metadata access, missing error handling)?
  4. Quality of guidance -- For ambiguous prompts, does it ask the right clarifying questions or make reasonable defaults?

Sub-issues

Sub-issues

1 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    repo-tooling
    on May 10, 2026
  2. changed the title [-]feat: foundational agent skills[/-] [+]epic: foundational agent skills[/+] on May 18, 2026
  3. removed
    repo-tooling
    on May 18, 2026
  4. changed the title [-]epic: foundational agent skills[/-] [+]epic: nemo gym agent skills[/+] on Jun 1, 2026
  5. ffrujeri commented on Jul 16, 2026

    @ffrujeri
    Contributor

    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:

    1. what does "compare output quality" mean concretely?

    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 via
    gym env resolve, baselining produces sane pass rates) or judged checks (LLM/human
    rubric), or a mix per dimension? Convention compliance feels lintable; quality of
    guidance probably doesn't.

    1. Is the eval itself a Gym environment?

    #1256 already gives us skills.path +
    skills_ref stamping, and the repo already ships a claude_code_agent harness — so
    all the primitives exist to dogfood: a "Gym-dev-bench" environment where the tasks are
    Gym-development prompts, the runner is claude_code_agent in 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 resources
    server 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 sandboxed
    claude_code_agent runner — and closed because it was too big for one review. If
    the shape is right, I'd re-land it in small pieces; concrete breakdown in a
    follow-up comment below.)

    1. What's the task suite and how is it graded?

    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.:

    Skill under test Example task Graded by
    create-environment "New resources server for SQL generation against a test DB" gym env resolve succeeds, gym env test passes, verify() scores canned good/bad rollouts correctly, no anti-patterns (httpx, sync /run)
    integrate-benchmark "Integrate " reproduces the benchmark's published numbers within tolerance
    training "Configure GRPO for env X with NeMo RL" config validates + smoke-scale dry run starts (full RL too expensive to grade)
    evaluation "Evaluate model M on env Z, report pass@k" correct numbers on a fixture env with known answers
    verification-and-scoring "Design an LLM judge for these tasks" verifier discriminates a labeled set of good/bad trajectories

    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?

    1. What exactly is the baseline?

    "Without skills" still means the agent sees
    CLAUDE.md and can read fern/ docs — both already encode many of the same
    conventions. 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?

    1. Which agents and models?

    Claude Code only, or also Codex (the .codex
    duplication 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.

    1. What's the acceptance bar?

    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 resources
    server). Tracks are independent; C1 needs both.

    Track A: skill content                Track B: eval infrastructure
    ──────────────────────                ─────────────────────────────
    A0 land PR #2007 (.agents/skills/)    B1 agent: per-rollout workspace
    A1 routing map                        B2 agent: hand workspace to verify()
     ├─ A2 skill: verification-scoring    B3 server: agent_skills (verify=run checks)
     ├─ A3 skill: create-environment      B4 data: task suite v0 (10 rows)
     ├─ A4 skill: integrate-benchmark     B5 script: compare two skill runs
     ├─ A5 skill: training                       │
     └─ A6 skill: evaluation                     │
            └────────────────┬───────────────────┘
                    C1 run with/without + publish report
    
  6. moved this from Dev Todo to At Risk in NeMo Gym 0.5.0 - Aug 5on Jul 29, 2026
  7. moved this from At Risk to Descoped in NeMo Gym 0.5.0 - Aug 5on Jul 29, 2026
  8. moved this from Dev Todo to Details Todo in NeMo Gym 0.7.0 - Oct 7on Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions