Gym: Instructions file for Codex

AGENTS.md

Gym AGENTS.md is an instructions file for Codex, OpenCode from NVIDIA-NeMo/Gym. It costs 5,153 tokens per session, scanned A, original, Apache-2.0.

Shared instructions for AI coding assistants working on NVIDIA NeMo Gym, including its quality standards, architecture, and environment setup.

In plain words
What is it for?
Use them when changing environments or agents, reviewing generated code, running tests and pre-commit checks, or preparing a signed contribution.
Why use it?
They keep changes focused and require real agent rollouts and local checks, helping reveal problems that ordinary unit tests may miss.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is NVIDIA-NeMo/Gym's own configuration. It tells Codex and OpenCode how to work on Gym itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Gym configures →

About the project

NVIDIA-NeMo/Gym is a library and infrastructure for evaluating and improving models and agents inside environments, where each environment defines tasks, agent interaction, verification, and execution state. It is for teams running reproducible evaluations or training at scale across settings such as code execution, tool calling, and sandboxes, and the catalogue entries provide skills and instructions for working with it.

NVIDIA-NeMo/Gym · 1,320 stars · on GitHub · docs.nvidia.com

Reuse

Borrowing it

Nothing to install: this file belongs to NVIDIA-NeMo/Gym. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/NVIDIA-NeMo/Gym/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/Gym

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Gym AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nvidia-nemo/gym/agents-md/github.svg)](https://agentmods.dev/instructions/nvidia-nemo/gym/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/nvidia-nemo/gym/agents-md"><img src="https://agentmods.dev/badge/instructions/nvidia-nemo/gym/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Gym AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nvidia-nemo/gym/agents-md"><img src="https://agentmods.dev/badge/instructions/nvidia-nemo/gym/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,153 This file is loaded in full into every session.
When invoked 5,153 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.05153 $0.05153
Opus 5.5 $0.02061 $0.02061
Sonnet 5.5 $0.01031 $0.01031
Haiku 4.5 $0.00515 $0.00515

Measured today against content hash 76cfed4742b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Gym AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 303 lines

How it starts

The opening of the file, as written. The whole thing — 303 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Unified root instructions for AI coding assistants (Cursor, Claude, Codex, OpenCode, Copilot, and similar).

CLAUDE.md is a symlink to this file so Claude Code and other tools share one source of truth.

Humans: see Development Setup → Use of AI and LLM Tools (maintainer response policy) and Agent Skills.

Quality bar

  • Prefer focused changes. Do not make unrelated "drive-by" edits. If a drive-by fix is worth keeping, open a separate issue or PR.
  • Intentional synthetic scaling of environments is fine when scoped via an issue or focused PR; do not dump unreviewed bulk diffs.
  • You (the human author) own every line submitted. Treat model output as untrusted until reviewed.
  • For behavior-changing environment or agent work: run representative real smoke rollouts with a model and inspect agent and verifier behavior. Green unit tests alone are not enough. Metadata-only catalog or manifest changes and docs-only changes do not require model compute.
  • Before opening a PR, run the local checks that mirror CI: tests (skip or N/A for docs-only), pre-commit run --all-files, and DCO sign-off (git commit -s). Cryptographic -S signing is optional and not required.
  • AI-generated tests must assert real behavior; avoid vacuous pass-through tests.
  • Prefer the vetted skills under .agents/skills/ (see Agent Skills).
  • For session lifecycle and routing terms (lock, fence, close retry window, saved reply, release, owner, episode session), use the names in the Sessions section of fern/versions/latest/pages/about/concepts/key-terminology.mdx and do not add synonyms.
  • Docs live under fern/versions/latest/pages/. Bleeding-edge nav is fern/versions/main.yml. See fern/README.md and the nemo-gym-docs skill.
  • Do not introduce licenses incompatible with Apache-2.0. New source files need the standard NVIDIA SPDX header.

Read the full file on GitHub · 303 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +3 lines · +59 tokens per session 76cfed4742b9
  2. yesterday Changed · +26 lines · +559 tokens per session ffc73f0042b7
  3. 2d ago Changed · +13 lines · +324 tokens per session bf458832d7d0
  4. 3d ago Changed · +3 lines · +87 tokens per session 83e22971aca8
  5. 6d ago Changed · +13 lines · +266 tokens per session fb98e5eb0f54
  6. 10d ago Changed · +9 lines · +134 tokens per session e6e2805eaa85
  7. 16d ago Changed · +31 lines · +692 tokens per session 3acc3aea8dd7
  8. 29d ago Changed · +5 lines · +85 tokens per session c0d374d99036
  9. 1mo ago Changed · +35 lines · +658 tokens per session f9efdad44b78
  10. 2mo ago First seen · 165 lines · 2,289 tokens per session scan A 5556d6287ced

Subscribe to this mod's changes

Gym AGENTS.md is an instructions file published in the GitHub repository NVIDIA-NeMo/Gym (1,320 stars, last pushed today), licensed Apache-2.0. It adds 5,153 tokens to every session, about $0.0206 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Gym AGENTS.md compared with instructions from other repositories

Gym AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Gym AGENTS.mdNVIDIA-NeMo/GymInstructions file1.3ktodayApache-2.0A5,153Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode