awsome-distributed-ai
AGENTS.md484 starsChanged 3 months agoMIT-0View on GitHub
These instructions apply to all AI-assisted contributions to awslabs/awsome-distributed-ai. They complement CONTRIBUTING.md, which remains the authority on contribution format and process. Before proposing a PR, run these checks: Judge a change by its impact, not its diff size. An atomic fix is welcome when it corrects a concrete functional, correctness, or user-facing defect (a broken command, a wrong path, a bug in a script) with proportionate verification. Do not open PRs for edits with no concrete impact (pure style preference,…
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 repository12 other files it gives its agents.
- architectures/sagemaker-hyperpod-eks/slinky-slurm/AGENTS.mdAGENTS.md
- architectures/sagemaker-hyperpod-eks/terraform-modules/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- bash-testingSkill
- build-slurm-imageSkill
- deploy-infrastructureSkill
- deployment-preflightSkill
- deploy-slurm-clusterSkill
- validate-deploymentSkill
- hyperpod-devops-agent-solutionSkill
- hyperpod-incident-rcaSkill
- hyperpod-incident-triageSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Before proposing a PR, run these checks:
- Distinctive: line 20
If an open PR already addresses the same fix, do not open another.
- Distinctive: line 21
If your approach is materially different, explain the difference in the issue.
- Very specific: line 51
No functional impact: write docs-only under ## Test Results.
- Distinctive: line 56
If the work is duplicate or trivial busywork, or you cannot provide the verification required above, do not proceed.
- Very specific: line 96
Every example is self-contained: its own README (prerequisites, copy-pasteable run instructions, known issues), pinned dependency versions …
- Distinctive: line 125
Read the relevant guide before modifying these areas.
≈ “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
Agent Instructions for awsome-distributed-ai
These instructions apply to all AI-assisted contributions to
awslabs/awsome-distributed-ai. They complement CONTRIBUTING.md, which remains the authority on contribution format and process.
1. Contribution Policy
Duplicate-work checks
Before proposing a PR, run these checks:
gh issue view <issue_number> --repo awslabs/awsome-distributed-ai --comments
gh pr list --repo awslabs/awsome-distributed-ai --state open --search "<issue_number> in:body"
gh pr list --repo awslabs/awsome-distributed-ai --state open --search "<short area keywords>"- If an open PR already addresses the same fix, do not open another.
- If your approach is materially different, explain the difference in the issue.
No low-value busywork PRs
Judge a change by its impact, not its diff size. An atomic fix is welcome when it corrects a concrete functional, correctness, or user-facing defect (a broken command, a wrong path, a bug in a script) with proportionate verification. Do not open PRs for edits with no concrete impact (pure style preference, cosmetic rewording), do not bundle unrelated cleanup, and do not pad a focused fix to make it look substantive.
Accountability
- A human submitter must understand and defend the change end-to-end, review every changed line, and run the relevant verification.
- This repository ships runnable reference material, not a library: the test for a change is that the example actually works on the target hardware. CONTRIBUTING.md already requires test cases to be verified at their stated scale ("if you say 256 A100, test on that scale").
- PR descriptions for AI-assisted work must include:
- Why this is not duplicating an existing PR.
- How the change was verified, proportionate to the change:
- New or functionally changed example: an end-to-end run on
the target hardware — cluster type, instance types, and scale
used, with relevant command output or logs under
## Test Results. Running this e2e verification is the PR author's responsibility. - Small functional fix: verification proportionate to the change (a build, a targeted test, or a reviewable demonstration of the fix).
- No functional impact: write
docs-onlyunder## Test Results.
- New or functionally changed example: an end-to-end run on
the target hardware — cluster type, instance types, and scale
used, with relevant command output or logs under
Fail-closed behavior
If the work is duplicate or trivial busywork, or you cannot provide the verification required above, do not proceed. Return a short explanation of what is missing.
2. Repository Layout — where things go
| Directory | Contents |
architectures/ | Cluster-level reference architectures, one per orchestrator (ParallelCluster, PCS, HyperPod Slurm/EKS, EKS) plus shared building blocks (common/, vpc_network/, ldap_server/, accounting-database/) |
examples/training/ | Framework-centric training examples (FSDP, Megatron-LM, NeMo, verl, …) |
examples/use-cases/ | Model- or application-specific examples (fine-tunes, domain pipelines, world models, VLA models, …) |
examples/inference/ | Serving examples, organized by engine (vLLM, SGLang, NVIDIA Dynamo, …) |
micro-benchmarks/ | Low-level performance benchmarks (NCCL tests, expert-parallelism kernels, NVSHMEM, …) |
validation/ | Environment and cluster health validation (healthchecks, env screening) |
observability/ | Monitoring stacks, metrics exporters, profiling (Prometheus/Grafana, Nsight) |
ami/ | Machine image build assets (Packer/Ansible) |
docs/ | Cross-cutting prose documentation (e.g. the EFA cheatsheet) |
Exception: the two
LifecycleScriptstrees, the HyperPod SlurmExtensionsdirectory, andpatching-backup.share deliberately retained at their legacy numbered paths under1.architectures/for SageMaker HyperPod console and documentation compatibility (see1.architectures/README.md). Do not move, rename, or delete them as cleanup.
Placement rules for new content:
- Extend before create (applies repo-wide — examples, micro-benchmarks, and architectures alike). Before adding a new directory, check whether an existing one already covers the same framework, engine, or benchmark. Prefer updating it — a new variant subdirectory, model recipe, or README section — over adding a parallel sibling. A new directory is justified only when its dependencies or execution model differ materially from the closest existing one; name that closest sibling in the PR and explain why extending it is not enough. Existing sibling directories are not presumed duplicates — do not consolidate them retroactively under this rule. Unbounded near-duplicate directories are a maintenance liability.
- A training framework example goes to
examples/training/<framework>/. - A specific model or application (even if it trains) goes to
examples/use-cases/<name>/. - Anything whose purpose is serving goes to
examples/inference/<engine>/<name>/. - Kernel- or transport-level performance measurement goes to
micro-benchmarks/. - Every example is self-contained: its own README (prerequisites,
copy-pasteable run instructions, known issues), pinned dependency
versions (no
latesttags), and everything needed to run it. See "Contributions format" in CONTRIBUTING.md.
3. Development Workflow
There is no repo-wide build or test suite, and pytest cannot verify an example. The only verification that counts is running the example on its target hardware, following its own README, end to end.
Supporting checks — useful, but never sufficient on their own:
- A few examples ship a pytest docker-build smoke test (fixtures come from
the root
conftest.py, e.g.python3 -m pytest examples/training/megatron-lm/ -v). It proves only that the container builds. - Markdown follows the root
.markdownlint.jsonc(npx markdownlint-cli2 "<changed files>"). - CloudFormation/Terraform changes: validate with the tooling documented in
the area you are editing (e.g.
terraform validate, per-area lint scripts). - A change to a shared file (the root
conftest.py, a shared Dockerfile or script, an architecture building block) affects every consumer — enumerate the affected assets and verify each one that the change can break.
4. Domain-Specific Guides
Read the relevant guide before modifying these areas. If a guide conflicts with the requested change, stop and explain rather than proceeding.
- HyperPod EKS Terraform modules:
architectures/sagemaker-hyperpod-eks/terraform-modules/AGENTS.md - Slinky Slurm on HyperPod EKS:
architectures/sagemaker-hyperpod-eks/slinky-slurm/AGENTS.md - HyperPod lifecycle scripts (
LifecycleScripts/base-config) are owned by@awslabs/hyperpod-lcs-dev(see CODEOWNERS) — changes there require that team's review.
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.

