agentleFS
NVIDIAKnown publisherNVIDIA/Model-Optimizer/AGENTS.md

Model-Optimizer

AGENTS.md5.2k starsChanged 58 days agoApache-2.0View on GitHub

These instructions apply to AI-assisted work in this repository. - Start with README.md for project overview and install. - Use modelopt/ for source, tests/ for focused test coverage, and examples/ or docs/ for usage patterns. - Agent skills live under plugins/modelopt/skills/, the installable plugin's canonical skill tree. .agents/skills and .claude/skills expose those skills through relative symlinks. Shared agent config and scripts remain under .agents/. See .agents/README.md for the convention. - Coding guide: Code development and review require reading and following…

  • Commits and pushes

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 3 mentionsFeb 2026: 2 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 3 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 10 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/Model-Optimizer repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/Model-Optimizer

The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 26

Talked about on GitHub and Bluesky (26 times).

On GitHub · 22

17 more on GitHub

The file

We split this AGENTS.md into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start with README.md for project overview and install.

    line 7
  2. Very specific:

    Use modelopt/ for source, tests/ for focused test coverage, and examples/ or docs/ for usage patterns.

    line 8
  3. Very specific:

    Running tests: Follow the writing and running tests instructions.

    line 24
  4. Distinctive:

    Running pre-commit: Follow the pre-commit hook instructions.

    line 28
  5. Very specific:

    Signed commit: Use git commit -s -S -m "<message>" for commits so they follow the signing your work requirements.

    line 31
  6. Very specific:

    After git commit, stop and wait for the user to say "push", "publish", "ship", or equivalent before running git push, gh pr create, or any …

    line 36
  7. Distinctive:

    Propose the split before opening an oversized PR: When the work in flight is already over budget, offer a series of smaller PRs and, once …

    line 58
  8. Distinctive:

    Split on structure first, features second: Look for a file, directory, or module boundary that carves the change into independent pieces.

    line 61
  9. Distinctive:

    Keep it in draft, say in its description that it is not for merge, link it from each sub-PR, and list the sub-PRs in it.

    line 82
  10. Distinctive:

    Before opening or marking a PR ready for review, read the submitting your code guidance.

    line 88
  11. Very specific:

    Read .github/PULL_REQUEST_TEMPLATE.md and satisfy the checklist.

    line 90
  12. Distinctive:

    Judge each comment on its merits before acting: Check it against the current code — reviewers comment on stale diffs, and bot findings …

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Instructions for ModelOpt

These instructions apply to AI-assisted work in this repository.

Repository orientation

  • Start with README.md for project overview and install.
  • Use modelopt/ for source, tests/ for focused test coverage, and examples/ or docs/ for usage patterns.
  • Agent skills live under plugins/modelopt/skills/, the installable plugin's canonical skill tree. .agents/skills and .claude/skills expose those skills through relative symlinks. Shared agent config and scripts remain under .agents/. See .agents/README.md for the convention.

Coding guidelines

  • Coding guide: Code development and review require reading and following the coding standards in CONTRIBUTING.md; do not skip this step.
  • Use relative paths from the repo root in commands and file references.

Iterative development

  • Running tests: Follow the writing and running tests instructions. For fast initial iteration, choose focused tests for the changed area from tests/.
  • Running pre-commit: Follow the pre-commit hook instructions. Hooks may modify files; review and re-stage those changes before committing.
  • Signed commit: Use git commit -s -S -m "<message>" for commits so they follow the signing your work requirements.
  • Never git push without explicit approval in the current turn. Commit locally is fine; publishing to a remote is not.
  • After git commit, stop and wait for the user to say "push", "publish", "ship", or equivalent before running git push, gh pr create, or any push-option flags like -o merge_request.create.

Updating skills

  • Keep skill edits concise. Skills are loaded into agent context, so every line costs tokens on each use. Add only what changes agent behavior, and prefer tightening existing text over appending new text.
  • Compress before opening the PR. Make a final pass over the skill diff: drop unnecessary explanations and examples, cut redundancy, and merge overlapping guidance.

Sizing and splitting PRs

  • Keep each PR that goes up for review under ~500 added lines of source. Large PRs stall in review; exceed the budget only when the change genuinely cannot be split — a mechanical rename, generated files, or a self-contained drop such as a new example or a new model/backend that has no working intermediate state. Deletions, tests, and docs don't count; check the insertions from git diff --shortstat <base>...HEAD -- . ':!tests' ':!docs' before opening.
  • Propose the split before opening an oversized PR. When the work in flight is already over budget, offer a series of smaller PRs and, once the user agrees, do the split — don't open the big one and ask afterwards.
  • Split on structure first, features second. Look for a file, directory, or module boundary that carves the change into independent pieces. Only when no such boundary exists, split by feature: land the enabling refactor or plumbing first, then one PR per behavior it unlocks.
  • Keep the series acyclic and linearly ordered. A sub-PR may depend only on ones earlier in the series; if two pieces need each other, they belong in the same PR, or their shared part belongs in an earlier one. State the merge order in each description.
  • Prefix titles with [x/N] — e.g. [2/4] Add NVFP4 export path — so reviewers know it is one slice of a planned split, and link the sibling PRs.
  • Optional but strongly recommended: build and ship the series with gh stack (the github/gh-stack extension). gh stack init <branch1 ... branchN> (bottom to top) turns the split branches into a linear stack, gh stack submit pushes them and opens the PRs in order with the stack cross-links added automatically — you still write each [x/N] title and description in its editor — and gh stack sync / gh stack rebase keep the upper slices consistent as the lower ones merge. Pushing and wiring each PR by hand works too.
  • Every sub-PR stands on its own: it builds, it carries unit tests for the code it introduces, and CI passes on it without the later PRs.
  • When a split makes the whole hard to follow, the full change may also go up as a draft PR — for reference only, never as a second review request. Keep it in draft, say in its description that it is not for merge, link it from each sub-PR, and list the sub-PRs in it. Rebase or close it as the series lands.

Contributing and PR readiness

  • Before opening or marking a PR ready for review, read the submitting your code guidance.
  • Read .github/PULL_REQUEST_TEMPLATE.md and satisfy the checklist.
  • PR description: fill the template sections — what changed and why, a usage snippet if it adds an API or flag, and what you actually ran under Testing. Root cause, benchmark numbers, and design rationale belong here. Don't restate the diff file by file.
  • Only changelog-worthy changes get a CHANGELOG.rst entry: new features, backward breaking changes, deprecations, and fixes for critical or known bugs from a previous release. Skip bugs introduced and fixed within the same unreleased cycle.
  • Keep each entry to one or two sentences written for external users: what changed and what they need to do. No internal bug numbers (e.g. NVBug IDs), root-cause analysis, or implementation detail — that belongs in the PR description. File features under the matching **New Features** sub-section used by recent releases (e.g. *Quantization*, *Speculative Decoding*, *Megatron Framework (M-LM / M-Bridge)*, *Misc*) rather than relabeling existing ones.

Responding to PR review feedback

  • Judge each comment on its merits before acting. Check it against the current code — reviewers comment on stale diffs, and bot findings (CodeRabbit, Claude) are claims to verify, not instructions. Weight CODEOWNERS reviewers above bots; if a reviewer reaffirms after your pushback, that settles it.
  • Pick one outcome per thread: address it in a commit, push back citing the code that shows the comment is wrong, or postpone it as out of scope. Report which threads got which when you ask for push approval.
  • Reply in every thread the pushed commits addressed — a sentence on what changed and where. Those replies need no extra approval; pushback and postpone replies do, since no commit backs them. Never resolve threads: that is the reviewer's call.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.