nvcf / llm-api-gateway
AGENTS.md230 starsChanged 59 days agoApache-2.0View on GitHub
Native Go image-source subtree for the LLM API gateway and rate-limit sync worker. Bazel is the CI build path: CI subproject id: llm-api-gateway. Release wiring publishes both the main gateway image and the rate-limit sync worker image through tools/ci/subproject-validations.yaml, an internal GitLab CI config not present in this public snapshot. - github.com/olric-data/olric is replaced by github.com/max007-008/olric on branch cas. The fork keeps the upstream module path and adds the CompareAndSwap primitive used by rate limiting. - To pick up a…
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,773 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 repository98 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-tooling/AGENTS.mdAGENTS.md
- deploy/helm/cassandra/AGENTS.mdAGENTS.md
- deploy/helm/cloud-functions/AGENTS.mdAGENTS.md
- deploy/helm/cloud-tasks/AGENTS.mdAGENTS.md
- deploy/helm/encrypted-secret-store/AGENTS.mdAGENTS.md
- deploy/helm/icms/AGENTS.mdAGENTS.md
- deploy/helm/notary/AGENTS.mdAGENTS.md
- deploy/helm/nvcf-pki/AGENTS.mdAGENTS.md
- deploy/helm/vanity-gateway/AGENTS.mdAGENTS.md
- deploy/stacks/AGENTS.mdAGENTS.md
- deploy/stacks/observability/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- infra/cassandra/AGENTS.mdAGENTS.md
- infra/openbao/plugins/vault-plugin-secrets-jwt/AGENTS.mdAGENTS.md
- src/compute-plane-services/byoo-otel-collector/AGENTS.mdAGENTS.md
- src/compute-plane-services/ess-agent/AGENTS.mdAGENTS.md
- src/compute-plane-services/image-credential-helper/AGENTS.mdAGENTS.md
- src/compute-plane-services/nvca/AGENTS.mdAGENTS.md
- src/compute-plane-services/request-trace-uploader/AGENTS.mdAGENTS.md
- src/control-plane-services/admin-token-issuer-proxy/AGENTS.mdAGENTS.md
- src/control-plane-services/api-keys/AGENTS.mdAGENTS.md
- src/control-plane-services/cloud-functions/AGENTS.mdAGENTS.md
- src/control-plane-services/cloud-tasks/AGENTS.mdAGENTS.md
- src/control-plane-services/encrypted-secret-store/AGENTS.mdAGENTS.md
- src/control-plane-services/function-autoscaler/AGENTS.mdAGENTS.md
- src/control-plane-services/function-autoscaler/local_env/AGENTS.mdAGENTS.md
- src/control-plane-services/instance-cluster-management/AGENTS.mdAGENTS.md
- src/control-plane-services/nats-auth-callout/AGENTS.mdAGENTS.md
- src/control-plane-services/notary/AGENTS.mdAGENTS.md
- src/invocation-plane-services/grpc-proxy/AGENTS.mdAGENTS.md
- src/invocation-plane-services/http-invocation/AGENTS.mdAGENTS.md
- src/invocation-plane-services/ratelimiter/AGENTS.mdAGENTS.md
- src/libraries/go/lib/AGENTS.mdAGENTS.md
- src/libraries/go/worker/AGENTS.mdAGENTS.md
- src/libraries/java/nv-boot-parent/AGENTS.mdAGENTS.md
- src/libraries/python/nv-cloud-function-helpers/AGENTS.mdAGENTS.md
- src/libraries/rust/nvcf-info/AGENTS.mdAGENTS.md
- src/libraries/rust/stargate/AGENTS.mdAGENTS.md
- src/uis/nvcf-ui/AGENTS.mdAGENTS.md
- tests/bdd/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- tools/ncp-local-cluster/AGENTS.mdAGENTS.md
- ai-tooling/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- deploy/helm/cassandra/CLAUDE.mdCLAUDE.md
- deploy/helm/cloud-functions/CLAUDE.mdCLAUDE.md
- deploy/helm/encrypted-secret-store/CLAUDE.mdCLAUDE.md
- deploy/helm/notary/CLAUDE.mdCLAUDE.md
- deploy/helm/nvcf-pki/CLAUDE.mdCLAUDE.md
- deploy/helm/vanity-gateway/CLAUDE.mdCLAUDE.md
- deploy/stacks/CLAUDE.mdCLAUDE.md
- deploy/stacks/observability/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- infra/cassandra/CLAUDE.mdCLAUDE.md
- infra/openbao/plugins/vault-plugin-secrets-jwt/CLAUDE.mdCLAUDE.md
- src/compute-plane-services/byoo-otel-collector/CLAUDE.mdCLAUDE.md
- src/compute-plane-services/ess-agent/CLAUDE.mdCLAUDE.md
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
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 45
If the CAS work is upstreamed, remove the replace directive and bump the upstream requirement.
- Distinctive: line 47
Do not hand-edit generated protobufs or mocks.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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 - llm-api-gateway
Native Go image-source subtree for the LLM API gateway and rate-limit sync worker.
Layout
- Go module:
github.com/NVIDIA/nvcf/src/invocation-plane-services/llm-gateway - Main gateway:
cmd/llm-api-gateway/main.go - Rate-limit sync worker:
cmd/llm-api-gateway-rate-limit-sync-worker/main.go - Runtime config and handlers live under
internal/
Build and Test
go build ./...
go test ./...
gofmt -w <changed-go-files>
kustomize build kustomize/overlays/localBazel is the CI build path:
bazel test //... --flaky_test_attempts=3CI subproject id: llm-api-gateway. Release wiring publishes both the main
gateway image and the rate-limit sync worker image through
tools/ci/subproject-validations.yaml, an internal GitLab CI config not
present in this public snapshot.
Local Gotchas
github.com/olric-data/olricis replaced bygithub.com/max007-008/olricon branchcas. The fork keeps the upstream module path and adds the CompareAndSwap primitive used by rate limiting.To pick up a new fork commit, run:
go get github.com/max007-008/olric@cas go mod tidy- If the CAS work is upstreamed, remove the
replacedirective and bump the upstream requirement. - Do not hand-edit generated protobufs or mocks. Regenerate them from the owning source.
- Chart and stack changes belong in the chart or stack subtree. Keep runtime env/config names aligned when cross-subtree follow-up is needed.
Naming
- Source subtree:
src/invocation-plane-services/llm-api-gateway - Go module suffix:
llm-gateway - Runtime service:
llm-api-gateway
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.

