unbounded
AGENTS.md46 starsChanged 9 days agoApache-2.0View on GitHub
Project Unbounded is an open source initiative to enable Kubernetes users to run worker Nodes anywhere and connect them back a running control plane. This allows you to run workloads in any environment, including on-premises, in the cloud, and at the edge, without being limited by the location of your control plane. This section says what each top-level directory is for. Look in the directory to see what it contains. - api/ - API types: Kubernetes CRD types and gRPC…
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 repository5 other files it gives its agents.
- cmd/inventory/AGENTS.mdAGENTS.md
- cmd/orca/AGENTS.mdAGENTS.md
- internal/AGENTS.mdAGENTS.md
- internal/helpers/AGENTS.mdAGENTS.md
- unbounded-agent-qemu-vm-e2eSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
14 rules. About 1 is common, 7 are distinctive, and 6 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 46
Keep component code private by default.
- Very specific: line 49
Run make fmt before committing.
- Very specific: line 50
Use make help for component targets and make -C hack/net help for network deployment commands.
- Distinctive: line 56
Keep Rust code and its test fixtures with the component that owns them.
- Very specific: line 57
Use make help to find formatting, Clippy, and test targets for the component you changed.
- Very specific: line 62
Do not use em-dashes (—) in comments, strings, or any source/config files.
- Very specific: line 64
Write American English, not British.
- Distinctive: line 77
Add tests for new behavior.
- Distinctive: line 86
Read a test's assertions before citing it as a constraint.
- Distinctive: line 88
Read the enclosing block, not the matched line.
- Distinctive: line 94
When code and prose disagree, report both with citations rather than silently following either.
- Common: line 108
Commit secrets, credentials, or tokens.
- Distinctive: line 110
Use destructive git operations unless explicitly requested.
- Very specific: line 111
Add a package under internal/ unless it is an approved convention or a helper in internal/helpers/<name>.
≈ “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
Project Overview
Project Unbounded is an open source initiative to enable Kubernetes users to run worker Nodes anywhere and connect them back a running control plane. This allows you to run workloads in any environment, including on-premises, in the cloud, and at the edge, without being limited by the location of your control plane.
Repository Structure
This section says what each top-level directory is for. Look in the directory to see what it contains.
api/- API types: Kubernetes CRD types and gRPC protobuf schemas, one directory per group and version, such asapi/machina/v1alpha3/. Runmake generateafter changing them.bin/- build output.bpf/- eBPF C programs for network encapsulation (compiled with clang).clients/- client libraries in other languages, such as the Python Racer client and vLLM plugin inclients/python/.cmd/- one directory per component. See "Components" below.demo/- example environment setups, such asdemo/nebius-ssh/.deploy/- Kubernetes manifests, one directory per component or plugin, such asdeploy/machina/.make helplists the-manifeststargets that render them.designs/- design documents and internal planning.docs/- the public web site only. Do not put design documents or internal notes here.e2e/- end-to-end tests, one directory per suite. Build them with-tags e2e.frontend/- React/TypeScript web UI for network topology (built with Vite).hack/- development tools and scripts. These are not components.cmd/- Go development tools, such as forge andrender-manifests.scripts/- shell scripts.scratch/- space for quick Go experiments.
images/- container image definitions.internal/- shared code that no single component owns. Readinternal/AGENTS.mdbefore adding anything here.pkg/- Go libraries that other repositories import, such aspkg/racersdk. Export only what they need.plugins/- integrations that are separate Go modules.plugins/karpenter/must not import the root module. It keeps its own copy of the API fields it uses, and its tests check them against the generated CRDs.tmp/- temporary files. Use it instead of/tmp.
Components
A component is one directory under cmd/, such as cmd/machina or cmd/racer. It can hold Go, Rust or both. The
network binaries (cmd/unbounded-net-*, cmd/unbounded-ipam, cmd/unping, cmd/unroute) count as one component.
Some component code still lives in internal/ and pkg/. For example, internal/gantry belongs to cmd/gantry.
#1175 moves it into cmd/.
Go
Keep component code private by default. To share code, follow Where new code goes.
- Run
make fmtbefore committing.make testruns lint and tests locally.make buildcompiles the root Go module. - Use
make helpfor component targets andmake -C hack/net helpfor network deployment commands. - Karpenter has its own Go module. Use
make karpenter-fmtto format it andmake karpenterto lint, test and build it. Do not rungolangci-lint fmtinsideplugins/: it reformats the whole repository.
Rust
- Keep Rust code and its test fixtures with the component that owns them.
- Use
make helpto find formatting, Clippy, and test targets for the component you changed. If there is no target, use the crate's own build or test instructions.
Coding Standards
- Do not use em-dashes (
—) in comments, strings, or any source/config files. Use a plain ASCII hyphen (-) or rephrase the sentence instead. - Write American English, not British. Use
behavior,initialize,labeled,catalog,defense,judgment, notbehaviour,initialise,labelled,catalogue,defence,judgement. This applies to comments, doc strings, identifiers, user-facing strings, and Markdown, in every language in the repo.make lintcatches the common cases in Go viamisspell, but its dictionary is not exhaustive: it missesjudgementandacknowledgement, and it does not look at shell or Markdown at all. Treat it as a backstop, not the rule.make fmtrunsgolangci-lint --fix, somisspellrewrites Go sources in place. When a British spelling is deliberate, it needs an exclusion in.golangci.yamlor the nextmake fmtwill silently undo it. Exceptions are external contracts only, such as the GitHub Actionscancelled()expression and theLICENCEfilename patterns inhack/cmd/noticethat match upstream third-party files.
Testing Standards
- Add tests for new behavior. Cover success, failure, and edge cases.
Sources of Truth
- Code is authoritative. Design docs (
designs/), site docs (docs/), comments, commit messages, and PR or issue text describe intent and drift from the code over time. Treat them as leads to verify, not as evidence. - Establish what the code does before reading what it is said to do: the implementation first, then its tests for the contract as actually enforced, then the prose for intent. Read the prose too; do not skip it, and do not trust it.
- Verify before asserting:
- Read a test's assertions before citing it as a constraint. A test named for a resource may assert a floor ("must grant") rather than a ceiling ("must not grant").
- Read the enclosing block, not the matched line. A container in a pod spec may be an init container; a flag default may be unreachable.
- Confirm a symbol is reachable before assuming it takes effect. An
-Xldflag on a package the binary never imports is silently ignored.
- Cite
file:linefor any claim about behavior that a decision rests on. If a claim cannot be cited, say it is an inference. - When code and prose disagree, report both with citations rather than silently following either. The doc may be stale, or the code may be the bug, and which it is changes the work. Ask when the answer would change what gets built; offer to fix it when it is merely stale.
Boundaries
- Ask first
- Large cross-package refactors.
- New dependencies with broad impact.
- Destructive data or migration changes.
- Removal of _test.go or Test* functions or subtests.
- Adding a project-wide convention in
internal/<name>. - Proceeding when a design doc or comment contradicts the code.
- Never
- Commit secrets, credentials, or tokens.
- Edit generated files by hand when a generation workflow exists.
- Use destructive git operations unless explicitly requested.
- Add a package under
internal/unless it is an approved convention or a helper ininternal/helpers/<name>. - Go outside the project boundary, for example, DO NOT edit files in user's home directories, add or edit files in /tmp or anywhere else on the host filesystem.
Miscellaneous
- DO NOT give time or effort estimates for work in this project. For example, do not say "this is a half day project" or "this will take a week". You are a computer. You are not a person with a concept of human scheduling and time.
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.

