agentleFS
NVIDIAKnown publisherNVIDIA/deepops/AGENTS.md

deepops

AGENTS.md1.5k starsChanged 5 months agoBSD-3-ClauseView on GitHub

This file is the entry point for AI agents (and new humans) operating this repository. DeepOps deploys and manages GPU clusters — Slurm or Kubernetes on NVIDIA GPU servers — using Ansible. Everything here is driven by playbooks against an inventory you control; there is no server component. Load only what the task needs: this file for orientation and the golden paths, docs/ for depth, skills/ for step-by-step procedures with failure handling. The doctor must report "ok": true (or you…

Trending

Quiet since June.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the NVIDIA/deepops repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/deepops

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

See all 23

Talked about on GitHub (23 times).

On GitHub · 23

18 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 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 repository6 other files it gives its agents.

The file

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

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Validate, don't assume: Run the doctor before deploying and the matching validator after.

    line 63
  2. Very specific:

    Ansible fact caching can serve stale facts: when an inventory hostname is reused for a different machine or after an OS reinstall.

    line 89
  3. Very specific:

    Run before pushing: git diff --check, YAML parse on changed files, ./scripts/deepops/ansible-lint-roles.sh, and a focused ansible-playbook …

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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

DeepOps agent operating guide

This file is the entry point for AI agents (and new humans) operating this repository. DeepOps deploys and manages GPU clusters — Slurm or Kubernetes on NVIDIA GPU servers — using Ansible. Everything here is driven by playbooks against an inventory you control; there is no server component.

Load only what the task needs: this file for orientation and the golden paths, docs/ for depth, skills/ for step-by-step procedures with failure handling.

Repository map

PathPurpose
playbooks/Entry points. slurm-cluster.yml and k8s-cluster.yml are the two top-level cluster deploys; subdirectories hold component playbooks.
roles/Ansible roles (NVIDIA drivers, container toolkit, DGX software, monitoring, Slurm, storage).
config.example/Template configuration. Copy to config/ and edit; never edit config.example/ for a deployment.
config/Your site configuration and inventory (git-ignored; created by you).
scripts/validation/Machine-readable preflight and post-deploy validation. Start here to know if anything worked.
scripts/Setup and helper scripts (setup.sh installs Ansible and dependencies).
submodules/kubesprayKubernetes deployment engine. Must be initialized before Kubernetes work.
docs/Topic documentation: deepops/, slurm-cluster/, k8s-cluster/, container/, airgap/.
skills/Reusable agent procedures with preconditions, commands, expected output, and failure branches.

First-time setup (once per provisioning machine)

git submodule update --init --recursive
./scripts/setup.sh                      # installs Ansible + Galaxy dependencies
cp -r config.example config             # then edit config/inventory
python3 scripts/validation/deepops_doctor.py --json   # verify before deploying

The doctor must report "ok": true (or you must understand every failure) before you run any cluster playbook. With --remote it also proves SSH reachability to every inventory host.

Golden path: Slurm GPU cluster

# inventory groups: slurm-master, slurm-node (see config.example/inventory)
ansible-playbook -l slurm-cluster playbooks/slurm-cluster.yml
python3 scripts/validation/validate_slurm.py --json    # run on a cluster node

The validator must report "ok": true with gpu_job_ok: true. See skills/deploy-slurm-cluster/ for the full procedure and failure branches.

Golden path: Kubernetes GPU cluster

# inventory groups: kube_control_plane, etcd, kube_node (see config.example/inventory)
ansible-playbook -l k8s_cluster playbooks/k8s-cluster.yml
python3 scripts/validation/validate_k8s.py --json --cuda-smoke

The validator must report "ok": true with cuda_smoke_ok: true. See skills/deploy-k8s-gpu-cluster/ for the full procedure and failure branches.

Rules for operating this repository

  1. Validate, don't assume. Run the doctor before deploying and the matching validator after. A playbook finishing with failed=0 is not the success signal; the validator's "ok": true is.
  2. Never run a cluster playbook against an unreviewed inventory. These playbooks install drivers, change container runtimes, and can reboot machines. Confirm the inventory lists exactly the intended hosts (ansible-inventory --list, or the doctor's host count) first.
  3. Driver installs can reboot nodes. Schedule accordingly; never point a first-time deploy at hosts with active users or workloads.
  4. Preview when unsure. ansible-playbook --check --diff -l <host> shows most pending changes without applying them (some tasks don't support check mode). Use --limit to scope any run.
  5. Playbooks are idempotent; reruns are the normal recovery path. After a transient failure (package mirror timeout, network blip), rerun the same playbook. A converged rerun reports changed=0.
  6. Configuration lives in config/, not in role defaults. Override variables in config/group_vars/; do not edit roles for site-specific values.

Gotchas that look like failures but are not

  • nvidia-smi over SSH reports "No devices were found" on Slurm nodes. DeepOps hides GPUs from ordinary SSH sessions on cluster nodes; GPUs are visible inside Slurm jobs. Test with srun --gpus=1 nvidia-smi, or validate_slurm.py, never with bare SSH nvidia-smi.
  • Ansible fact caching can serve stale facts when an inventory hostname is reused for a different machine or after an OS reinstall. Rerun with --flush-cache.
  • Open vs proprietary NVIDIA kernel modules matter per GPU generation. Turing and newer support the open kernel modules; older GPUs (e.g. Pascal) need nvidia_driver_ubuntu_use_open_kernel_modules: false. A wrong choice produces nvidia-smi: No devices were found after a clean-looking install. See skills/diagnose-driver-install/.
  • Kubernetes playbooks fail on syntax/imports if submodules/kubespray is not initialized — the error mentions missing kubespray_defaults roles, not submodules. Run git submodule update --init --recursive.

Contributing changes

Run before pushing: git diff --check, YAML parse on changed files, ./scripts/deepops/ansible-lint-roles.sh, and a focused ansible-playbook --syntax-check for changed playbooks. Public CI runs lint, setup, and molecule checks on every PR. Deployment-affecting changes need GPU-backed validation evidence in the PR body.

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.