Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/nrwl/nx/agents-mdgit clone --depth 1 https://github.com/nrwl/nxWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02038 | $0.02038 |
| Opus 5 | $0.01019 | $0.01019 |
| Sonnet 5 | $0.00408 | $0.00408 |
| Haiku 4.5 | $0.00204 | $0.00204 |
Grade A, and why
nx AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.
When responding to queries about this repository:
- Suggest relevant commands from the "Essential Commands" section when applicable
- Highlight Nx's focus on monorepos and its key features like smart task execution, code generation, and project graph analysis
- Mention the plugin ecosystem and support for various frameworks when relevant
- Emphasize the importance of running the full validation suite before committing changes
Always strive to provide accurate, helpful responses that align with the best practices and workflows described in this file.
Documentation Contributions
When working on Nx documentation, all documentation content lives in the astro-docs/ folder. This is the new Astro-based documentation site built with Starlight.
Important: Before making any documentation changes, read the astro-docs/README.md file for detailed guidance on:
- Project structure and architecture
- Content types (regular docs, dynamic plugin docs, CLI docs)
- Available Markdoc tags for rich content
- Development workflow and commands
- Sidebar management
Quick Reference
- Documentation content:
astro-docs/src/content/docs/ - Use
.mdoc(Markdoc) or.mdxformat for documentation files - Run
nx serve astro-docsto start the local dev server - Sidebar structure is defined in
astro-docs/sidebar.mts
GitHub Issue Response Mode
When responding to GitHub issues, determine your approach based on how the request is phrased:
Plan-First Mode (Default)
Use this approach when users ask you to:
- "analyze", "investigate", "assess", "review", "examine", or "plan"
- Or when the request is ambiguous
In this mode:
- Provide a detailed analysis of the issue
- Create a comprehensive implementation plan
- Break down the solution into clear steps
- Then please post the plan as a comment on the issue
Immediate Implementation Mode
Use this approach when users ask you to:
- "fix", "implement", "solve", "build", "create", "update", or "add"
- Or when they explicitly request immediate action
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 235 lines · 2,038 tokens per session scan A 4870fbbef558
nx AGENTS.md is an instructions file published in the GitHub repository nrwl/nx (29,291 stars, last pushed yesterday), licensed MIT. It adds 2,038 tokens to every session, about $0.0102 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
turborepo AGENTS.md
Instructions for vercel/turborepo, covering agents.md, architecture, keeping documentation up to date, pull request guidelines and always run pre-commit/pre-push hooks.
moon AGENTS.md
Instructions for moonrepo/moon, covering agents.md, repository layout, prerequisites, rust workflow and conventions.
zuke AGENTS.md
Instructions for zuke-build/zuke, covering agents.md, using zuke — the api, without guessing, tech stack, typescript 7 / tsgo and coding guidelines (non-negotiable).
unity-cross-platform-local-build-orchestrator AGENTS.md
Instructions for sinanata/unity-cross-platform-local-build-orchestrator, covering agents.md, what this project is, golden rules (do not violate), use it and interface.
unity-cross-platform-local-build-orchestrator copilot-instructions.md
Instructions for sinanata/unity-cross-platform-local-build-orchestrator: This repository follows the cross-tool AGENTS.md standard. Read /AGENTS.md for the full guide: the script/CLI interface, the config workflow, and the operating rules.
moon CLAUDE.md
Instructions for moonrepo/moon, a project described as: A build system and monorepo management tool for the web ecosystem, written in Rust.