TensorRT-Model-Connect
AGENTS.md290 starsChanged 45 days agoApache-2.0View on GitHub
- Treat GitHub as the active repository for this project: https://github.com/NVIDIA/TensorRT-Model-Connect.git. - Use the local github remote for fetch, push, PR, and CI operations. - Do not push project changes to any non-GitHub legacy remote unless the user explicitly asks for that repository. - The GitHub default branch is main. - Do not push directly to GitHub main. - Start new work from github/main on a short-lived branch. - Push the branch to the GitHub remote and open a pull…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository13 other files it gives its agents.
- website/static/llms.txtllms.txt
- debug-trt-mismatchSkill
- doc-syncSkill
- fp16-trt-networkSkill
- optimize-model-precisionSkill
- pr-babysitterSkill
- profile-modelSkill
- review-trtmc-prSkill
- setup-trtmc-environmentSkill
- submit-github-bug-issueSkill
- submit-github-prSkill
- transform-modelSkill
- write-git-messagesSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Treat GitHub as the active repository for this project: https://github.com/NVIDIA/TensorRT-Model-Connect.git.
- Very specific: line 7
Use the local github remote for fetch, push, PR, and CI operations.
- Distinctive: line 8
Do not push project changes to any non-GitHub legacy remote unless the user explicitly asks for that repository.
- Distinctive: line 14
Do not push directly to GitHub main.
- Very specific: line 15
Start new work from github/main on a short-lived branch.
- Distinctive: line 18
Wait for GitHub CI before merging.
- Very specific: line 25
Avoid commit messages containing Claude.
- Distinctive: line 29
Keep GitHub Pages dedicated to the documentation website.
- Distinctive: line 30
Do not publish CI reports to GitHub Pages unless the user explicitly changes that decision.
- Distinctive: line 62
Do keep validation criteria meaningful and aligned with the behavior under test.
- Distinctive: line 64
Write repository documentation, code comments, user-facing messages, and PR text in English.
- Distinctive: line 67
Never change the test passing criteria for the purpose of passing CI.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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.
Files
Agent Instructions
Repository Target
- Treat GitHub as the active repository for this project:
https://github.com/NVIDIA/TensorRT-Model-Connect.git. - Use the local
githubremote for fetch, push, PR, and CI operations. - Do not push project changes to any non-GitHub legacy remote unless the user explicitly asks for that repository.
Branch And PR Flow
- The GitHub default branch is
main. - Do not push directly to GitHub
main. - Start new work from
github/mainon a short-lived branch. - Push the branch to the GitHub remote and open a pull request targeting
main. - Wait for GitHub CI before merging.
- Merge with squash or rebase, matching the repository ruleset.
- Sign off every commit introduced by a pull request with DCO using
git commit --signoff; ensure theSigned-off-byemail matches the commit author. - Preserve or re-add valid sign-offs when amending, rebasing, or cherry-picking commits, and never sign off on another author's behalf.
- Avoid commit messages containing
Claude; the GitHub ruleset rejects them.
GitHub Pages
- Keep GitHub Pages dedicated to the documentation website.
- Do not publish CI reports to GitHub Pages unless the user explicitly changes that decision.
Model-Family Ownership And Execution Philosophy
- The model family is the unit of ownership, fault isolation, and horizontal scale. One team or agent must be able to implement, validate, change, and revert one family without changing or coordinating with another.
- Each model family owns all model-specific code: configuration and weights, mathematical topology, engine composition, runtime orchestration, and model validation.
- Duplicate model-specific code by design. Duplication keeps model-specific defects, merge conflicts, and rollbacks family-local; code similarity never justifies a cross-family abstraction.
- Shared code is limited to model-agnostic contracts and mechanics. It contains no model topology, model semantics, model orchestration, model-specific validation logic or evidence, or family-specific behavior.
- Generic family code defines only the mathematical computation graph and runtime orchestration. TensorRT owns all lowering to GPU execution, including fusion, tactic and kernel selection, scheduling, code generation, and hardware or version adaptation.
- Generic family semantics do not depend on GPU, SM, CUDA, driver, or TensorRT version. Platform-specific failures are project topology or orchestration defects, or upstream TensorRT issues.
- Platform specialization is limited to complete network offload, such as TensorRT Edge-LLM, and TVM-FFI BYOK kernel bindings. Target-specific plans, timing caches, and compiled kernels do not make the model family specialized.
- Existing family-owned GPU helper kernels outside TVM-FFI BYOK violate this architecture and are temporary migration debt, not a supported specialization.
Dos And Don'ts
- Do keep validation criteria meaningful and aligned with the behavior under test.
- Write repository documentation, code comments, user-facing messages, and PR text in English. Preserve non-English model inputs, tokenizer data, and test fixtures when they are required to validate multilingual functionality.
- Never change the test passing criteria for the purpose of passing CI. If you believe the test is faulty, escalate to a human
Repo Skills
- Codex skills packaged for this repo are registered through
.agents/plugins/marketplace.json. - The
trtmc-agent-skillsplugin is markedINSTALLED_BY_DEFAULTand exposes repo-local skills fromplugins/trtmc-agent-skills/skills/. - If a skill below is not listed in the active runtime skills, load
plugins/trtmc-agent-skills/skills/<name>/SKILL.mddirectly and follow it. Registration is through the Codex plugin path, so other agent runtimes do not list these; an empty runtime skill list is not evidence that no skill covers the task. - Consult the skill that matches the task before starting it:
| Task | Skill |
| Onboard a Hugging Face model, or extend a family, to produce a bundle | transform-model |
| TensorRT output disagrees with the reference, or validation fails numerically | debug-trt-mismatch |
| FP16/BF16 dtype threading and explicit FP32 boundaries | fp16-trt-network |
| Evaluate a precision or quantization format for a model | optimize-model-precision |
| Diagnose runtime cost, or produce performance evidence | profile-model |
| Prepare a build or validation environment on an unfamiliar host | setup-trtmc-environment |
| Publish a change as a pull request | submit-github-pr |
Monitor PR CI, diagnose failed checks, rebase onto github/main | pr-babysitter |
| Turn a finding into a GitHub issue | submit-github-bug-issue |
| Draft or review commit messages, PR titles, PR descriptions, merge messages | write-git-messages |
| Keep the website, skills, commands, and architecture docs aligned | doc-sync |
<!-- Collaborative review anchor: batch 2. -->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
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.

