nemo-helix: Command for Claude Code

.claude/commands/pre-commit.md

pre-commit is a command for Claude Code from NVIDIA-NeMo/nemo-helix. It costs 5 tokens per session (106 once invoked), scanned A, original, Apache-2.0.

A command that runs every pre-commit hook in the repository. Pre-commit hooks are automated checks that run before changes are committed to version control.

In plain words
What is it for?
Use it to run the repository's checks on all files with uv run pre-commit run -a. A clean run means the command made no file changes.
Why use it?
It catches lint problems and can fix formatting across the repository in one step, rather than requiring each hook to be run separately.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is NVIDIA-NeMo/nemo-helix's own configuration. It tells Claude Code how to work on nemo-helix 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 nemo-helix configures →

Reuse

Borrowing it

Nothing to install: this file belongs to NVIDIA-NeMo/nemo-helix. 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/nemo-helix/main/.claude/commands/pre-commit.md
Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/nemo-helix

Made for: Claude Code.

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 pre-commit

README.md
[![agentmods](https://agentmods.dev/badge/commands/nvidia-nemo/nemo-helix/pre-commit/github.svg)](https://agentmods.dev/commands/nvidia-nemo/nemo-helix/pre-commit)
Your own site
<a href="https://agentmods.dev/commands/nvidia-nemo/nemo-helix/pre-commit"><img src="https://agentmods.dev/badge/commands/nvidia-nemo/nemo-helix/pre-commit/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 pre-commit

Your own site · 80×15
<a href="https://agentmods.dev/commands/nvidia-nemo/nemo-helix/pre-commit"><img src="https://agentmods.dev/badge/commands/nvidia-nemo/nemo-helix/pre-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 106 The whole file, excluding the scripts and references it only reads on demand.
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.00005 $0.00106
Opus 5.5 $0.00002 $0.00042
Sonnet 5.5 $0.00001 $0.00021
Haiku 4.5 $0.00001 $0.00011

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

Security

Grade A, and why

pre-commit 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.

.claude/commands/pre-commit.md · 13 lines

What it actually says

Run all pre-commit hooks in repository to lint

  • Do so with uv run pre-commit run -a
  • Do this to both lint and fix formatting of files
  • A clean run means nothing was updated.
  • Ty checks may have to be fixed manually
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 First seen · 13 lines · 5 tokens per session scan A 2da2402ac60e

Subscribe to this mod's changes

pre-commit is a command published in the GitHub repository NVIDIA-NeMo/nemo-helix (160 stars, last pushed today), licensed Apache-2.0. It adds 5 tokens to every session and 106 once invoked, about $0.0000 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-12-05.

Related

pre-commit compared with commands from other repositories

pre-commit next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pre-commitNVIDIA-NeMo/nemo-helixCommand160todayApache-2.0A5Claude Code
caveman-commitJuliusBrussee/cavemanCommand125k3d agoApache-2.0A11Claude Code
commitechoVic/blade-codeCommand18119d agoMITA8Claude Code
step6-shipsrnichols/plan-forgeCommand71mo agoMITA26GitHub Copilot
dream-applyconorbronsdon/agent-memory-kitCommand29d agoMITA20Claude Code
step1-preflight-checksrnichols/plan-forgeCommand71mo agoMITA33GitHub Copilot
gitops-driftkubestellar/kubestellar-mcpCommand2todayApache-2.0A0Claude Code