taugrid
AGENTS.md62 starsChanged 18 days agoMITView on GitHub
TauGrid is a cloud-native AI infrastructure platform for GPU workloads on Kubernetes. It provides the tau CLI, workload queueing (Kueue), Ray cluster orchestration (KubeRay), GPU health monitoring, and observability. The repo is organized as a multi-module Go monorepo with a Python SDK. The top-level Makefile provides repository-wide validation, installation, and documentation entry points: Each component can also be built and tested from its own directory: Portal frontend source is in portal/frontend/ (React, TypeScript, React Router, TanStack Query). Include rebuilt embedded…
- Installs packages
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 33,398 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 repositoryOne other file it gives its agents.
- taugridSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- could be automatic: a setting could enforce it
- Very specific: line 145
Update version/appVersion in the three Chart.yaml files and the two first-party dependency versions in charts/taugrid/Chart.yaml.
- Distinctive: line 147
Update their image tags, the controller Kustomize image, the CLI default chart version, install examples, and version assertions.
- Very specific: line 149
Run scripts/ci/vendor-taugrid-dependencies.sh charts/taugrid, Helm lint and unit tests for the three charts, cd cli && go test …
- Very specific: line 152
Before tagging, add cli/releases/vX.Y.Z.md.
- Very specific: line 211
Never edit generated CRDs manually — use make manifests in the controller
- Distinctive: line 214
Prefer MCR-hosted base images for Docker builds.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
AGENTS.md
This file provides guidance to AI coding agents when working with code in this repository.
What This Is
TauGrid is a cloud-native AI infrastructure platform for GPU workloads on Kubernetes. It provides the tau CLI, workload queueing (Kueue), Ray cluster orchestration (KubeRay), GPU health monitoring, and observability. The repo is organized as a multi-module Go monorepo with a Python SDK.
Build and Test Commands
The top-level Makefile provides repository-wide validation, installation, and documentation entry points:
make build # build first-party Go components
make test # run Go, offline E2E, and Python tests
make lint # lint Go and Python source
make check # build, test, lint, and check license headers
make install-tau # install the CLI and optional Python SDK
make install-tau-cli # install the CLI only
make install-tau-sdk # install the Python SDK in the active Python
make install-taugrid-portal # install the Portal CLI
make tau-docs-check # build and validate the documentation siteEach component can also be built and tested from its own directory:
CLI (cli/)
cd cli
make build # produces bin/tau and bin/tau-gen
make test # go test ./...
make lint # go vet + gofmt + staticcheck v0.8.2
make test-kind-e2e # Kind-based smoke test
make test-integration # integration tests (requires built binary, 15m timeout)Core library (core/)
cd core
go test ./...
go vet ./...Portal (portal/)
cd portal
make build # builds React assets and bin/taugrid-portal; requires Node.js 22 + npm
make test # Go tests
make lint # frontend typecheck + go vet + gofmt + staticcheck v0.8.2
make frontend-dev # Vite development server
make frontend-build # regenerate checked-in internal/portalapi/assetsPortal frontend source is in portal/frontend/ (React, TypeScript, React Router,
TanStack Query). Include rebuilt embedded assets with frontend source changes;
CI checks for stale output. Direct Go commands use the checked-in assets.
Tau core controller (controllers/tau-core/)
cd controllers/tau-core
make build # produces bin/tau-core-controller
make test # go test -race -count=1 ./...
make lint # go vet + gofmt
make generate # regenerate API deepcopy
make manifests # regenerate CRDs (controller-gen v0.20.0)
make test-kind-e2e # Kind-based integration testGPU monitoring (monitoring/gpu-health-checker/, monitoring/gpu-metrics-collector/)
cd monitoring/gpu-health-checker
make test # CGO_ENABLED=1 go test ./...
make lint # golangci-lint run ./...Python SDK (sdk/python/python/)
cd sdk/python/python
python3 -m venv .venv && source .venv/bin/activate
pip install -e '.[dev]'
python -m pytest # run tests
python -m ruff check . # lint (ruff 0.16.1)Portable end-to-end module (tests/e2e/)
cd tests/e2e
AI_RUNTIME_E2E=0 go test -count=1 ./... # offline tests; never contacts a cluster
go vet ./...The top-level make check always forces AI_RUNTIME_E2E=0. Run real-cluster
tests only when explicitly requested and only after verifying the kubeconfig:
cd tests/e2e
AI_RUNTIME_E2E=1 go test -v -timeout 15m ./...Helm Charts (charts/)
helm lint charts/<chart>
helm dependency build charts/<chart>
helm template test charts/<chart> --namespace taugrid-system >/dev/null
# Unit tests require the helm-unittest plugin (not built into Helm):
helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v1.1.1 # Helm 3
helm plugin install oci://ghcr.io/helm-unittest/helm-unittest/unittest:1.1.1 --verify=false # Helm 4
helm unittest charts/<chart> # if tests/ existDocumentation site (site/)
cd site
make check # builds Hugo site + runs link/content/accessibility checks
make serve # local dev server with draftsRunning a Single Test
# Go — run one test by name in any module
cd cli && go test -run TestFoo ./internal/jobrender/...
cd controllers/tau-core && go test -race -run TestReconcile ./internal/controller/...
# Python SDK
cd sdk/python/python && python -m pytest tests/test_foo.py -k test_barCI Validation
CI runs on every PR to main (.github/workflows/taugrid-validation.yml). It builds, formats, vets, lints, and tests each Go module independently. The Python SDK has its own workflow triggered on sdk/python/** changes. Helm charts validate on charts/** changes against Helm 3 and 4.
Key CI settings: GOFLAGS=-mod=readonly, GOTOOLCHAIN=local. Tests run with -count=1 (no caching). The controller module uses -race.
TauGrid Release Version Bump
TauGrid uses one release version for the taugrid, taugrid-core, and
tau-core-controller charts plus the tau, taugrid-portal, and
tau-core-controller images. Helm and MCR use X.Y.Z; the Git tag uses
vX.Y.Z. The tag publishes the tau and tau-gen CLI binaries plus the
independently versioned Python SDK wheel; gpu-monitoring and adx-mon keep
their own release versions.
- Update
version/appVersionin the threeChart.yamlfiles and the two first-party dependency versions incharts/taugrid/Chart.yaml. - Update their image tags, the controller Kustomize image, the CLI default chart version, install examples, and version assertions.
- Run
scripts/ci/vendor-taugrid-dependencies.sh charts/taugrid, Helm lint and unit tests for the three charts,cd cli && go test ./internal/cli, andpython3 scripts/check-license-headers.py. - Before tagging, add
cli/releases/vX.Y.Z.md. After merge, push the annotated tag; the TauGrid release starts automatically and publishes the CLI binaries plus the independently versioned Python SDK wheel. Retry it by dispatching the workflow from the same tag ref with the same tag input.
Architecture
Module dependency graph
The core/ module is the shared library. Both cli/ and portal/ depend on it via a replace directive pointing at ../core. The controller and monitoring modules are independent Go modules.
CLI (cli/)
Two binaries: tau (user-facing CLI built with cobra) and tau-gen (code generation tool). Internal packages under cli/internal/ handle discrete concerns:
jobrender/rayjobrender— render Kubernetes Job and RayJob manifestsclusteraccess— AKS credential acquisitiondataset/datasetingest— dataset management and ingestionworkspace/workspaceconnection— workspace lifecyclequeueresolve/queuequota— Kueue queue selection and quota displaystorage/storageprobe— blob storage operationsresume— checkpoint-based job resumption
Core (core/)
Shared domain types and clients:
runconfig— run configuration schema (shared contract between Python SDK and Go CLI)kube— Kubernetes client helperskueueapi— Kueue API interactionsexperiment/expkusto/exptelemetry— experiment tracking and telemetrytopology— GPU/node topologyqueue/resourceprofile— queue definitions and resource profilesversion— build version injection (used by ldflags)
Controller (controllers/tau-core/)
Standard Kubernetes controller pattern:
api/v1alpha1/— CRD types (generates deepcopy and CRD manifests)internal/controller/— reconciliation logicconfig/crd/— generated CRD YAML
Portal (portal/)
Experiment tracking and observability portal:
internal/expstore— experiment data persistenceinternal/portal/portalapi— web UI serving and APIinternal/autocapture/expcapture— automatic metric capture
Python SDK (sdk/python/python/)
Package name: tau. Researchers write Python; the Go CLI remains the Kubernetes executor. The SDK's run configuration must stay compatible with core/runconfig.
Conventions
- Go toolchain: 1.27.4 (see
.go-version); modules require Go 1.27.2; Microsoft Go builders and release pipelines use 1.27.4-1 - Shipped Go binaries embed
ms_tlsmldsacert=0to avoid TLS resets from middleboxes that reject ML-DSA certificate signature advertisements; preserve theruntime.godebugDefaultlinker assignment - Linting: staticcheck v0.8.2 for cli/core/portal; golangci-lint v2.14.0 for monitoring modules
staticcheck.confat repo root disables specific style checks (ST1000, ST1003, ST1005, ST1016, ST1020-ST1023, S1016) — do not re-enable without fixing all findings- Python: requires 3.10+, lint with ruff
- Do not add comments to source code, tests, scripts, configuration, or manifests. Express intent through clear names, types, structure, tests, and documentation. Preserve only required legal notices and compiler or tool directives such as shebangs, build tags, generated-file markers, cgo preambles, and narrowly scoped lint suppressions.
- Never edit generated CRDs manually — use
make manifestsin the controller - AI agents must run
python3 scripts/check-license-headers.pybefore committing source changes. Use./scripts/add-license-headers.pyonly for Microsoft-authored files, preserve all existing copyright notices, and never add a Microsoft copyright notice to third-party code. - Container images go through MCR; never publish from a contributor PR
- Prefer MCR-hosted base images for Docker builds. Verify the tag exists and supports the required runtime and architectures; document exceptions when no compatible MCR base is available.
- Integration tests must not require Azure subscriptions or private network access unless explicitly marked maintainer-only
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.

