Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/mitulgarg/env-doctor/cuda-installgit clone --depth 1 https://github.com/mitulgarg/env-doctorWrote 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.
[](https://agentmods.dev/commands/mitulgarg/env-doctor/cuda-install)<a href="https://agentmods.dev/commands/mitulgarg/env-doctor/cuda-install"><img src="https://agentmods.dev/badge/commands/mitulgarg/env-doctor/cuda-install.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.03342 |
| Opus 5 | $0.00000 | $0.01671 |
| Sonnet 5 | $0.00000 | $0.00668 |
| Haiku 4.5 | $0.00000 | $0.00334 |
Grade B, and why
cuda-install scanned grade B with 2 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 5d ago.
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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
2. sudo dpkg -i cuda-keyring_1.1-1_all.deb Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
1. wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb How it starts
The opening of the file, as written. The whole thing — 489 lines — stays where its author put it; the contents beside it link to each section on GitHub.
cuda-install
Get step-by-step CUDA Toolkit installation instructions tailored to your platform.
Overview
The cuda-install command automatically:
- Detects your platform (OS, distribution, version, architecture, WSL2)
- Analyzes your GPU driver to determine the best CUDA version
- Provides copy-paste installation commands specific to your system
- Includes post-installation setup (environment variables, verification)
- Shows official download links for manual installation if needed
Usage
Auto-detect from GPU driver (recommended)
env-doctor cuda-install
This will:
- Check your NVIDIA driver version
- Recommend the best CUDA Toolkit version
- Show platform-specific installation steps
Install specific CUDA version
env-doctor cuda-install 12.8
env-doctor cuda-install 12.4
env-doctor cuda-install 12.1
env-doctor cuda-install 11.8
Execute the installation
# Preview what would run (no changes made)
env-doctor cuda-install --dry-run
# Interactive install (asks [y/N] before running)
env-doctor cuda-install --run
# Headless install — skip confirmation (for CI/scripts)
env-doctor cuda-install --run --yes
# Specific version, headless
env-doctor cuda-install 12.6 --run --yes
Get JSON output (for automation/CI)
env-doctor cuda-install --json
env-doctor cuda-install 12.6 --json
# JSON output from a real install run
env-doctor cuda-install --run --yes --json
Returns structured JSON with platform info, recommended version, and install steps for machine processing.
Example Output
Linux (Ubuntu)
$ env-doctor cuda-install
============================================================
CUDA TOOLKIT INSTALLATION GUIDE
============================================================
Detected Platform:
Linux (ubuntu 22.04, x86_64)
Driver: 535.146.02 (supports up to CUDA 12.2)
Recommended CUDA Toolkit: 12.1
============================================================
Ubuntu 22.04 (x86_64) - Network Install
============================================================
Installation Steps:
------------------------------------------------------------
1. wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
2. sudo dpkg -i cuda-keyring_1.1-1_all.deb
3. sudo apt-get update
4. sudo apt-get -y install cuda-toolkit-12-1
Post-Installation Setup:
------------------------------------------------------------
export PATH=/usr/local/cuda-12.1/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-12.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
TIP: Add the above exports to ~/.bashrc or ~/.zshrc
Verify Installation:
------------------------------------------------------------
nvcc --version
Official Download Page:
https://developer.nvidia.com/cuda-12-1-0-download-archive
============================================================
After installation, run 'env-doctor check' to verify.
============================================================
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.
- 5d ago First seen · 489 lines · 0 tokens per session scan B 692041b5adda
cuda-install is a command published in the GitHub repository mitulgarg/env-doctor (173 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,342 tokens. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
observe
部屋を能動的に観察する。3つの基本ブロックを自由に選びながらループし、受動的なスナップショットではなく発見のある観察を行う。.
tapeout
Produce a complete, fab-ready export bundle for a routed board — or refuse loudly. Superset of /kct:manufacturing-readiness: runs the three sign-off pre-gates, then adds a BOM part-number-resolution gate, a per-rule warning-review gate (assembly-affecting warnings block unless explicitly acknowledged), schematic +…
eol-report
EOL/EOS risk report — devices, OS versions, and firmware approaching or past end-of-life/end-of-support, prioritized by criticality.
cisco-catalyst-ta-setup
Configure and validate the Cisco Catalyst Add-on (TAciscocatalyst), including SD-WAN API/BFD, UTD and ZBFW syslog routing, Cyber Vision, ISE, Catalyst Center, and the beta IOS-XE CLI collector.
gum-search
BM25 search the embedded catalog (TTY table, pipe JSON).
rvcsi-calibrate
Learn a v0 per-subcarrier baseline (mean amplitude) from a .rvcsi capture.