Nacos is a platform that lets cloud-native applications discover services, check their health, and manage service configuration dynamically. It is used with microservices and services such as Dubbo, gRPC, Spring Cloud, and Kubernetes, including centralized configuration and DNS-based routing.
Borrowing it
Nothing to install: this file belongs to alibaba/nacos. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/alibaba/nacos/develop/AGENTS.mdgit clone --depth 1 https://github.com/alibaba/nacosWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/alibaba/nacos/agents-md)<a href="https://agentmods.dev/instructions/alibaba/nacos/agents-md"><img src="https://agentmods.dev/badge/instructions/alibaba/nacos/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/alibaba/nacos/agents-md"><img src="https://agentmods.dev/badge/instructions/alibaba/nacos/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.06338 | $0.06338 |
| Opus 5.5 | $0.02535 | $0.02535 |
| Sonnet 5.5 | $0.01268 | $0.01268 |
| Haiku 4.5 | $0.00634 | $0.00634 |
Grade A, and why
nacos 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 2mo 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 — 463 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to AI coding agents (Claude Code, Cursor, GitHub Copilot, etc.) when working with the Nacos repository. For human contributors, see CONTRIBUTING.md.
AI Contribution Guidelines
- Do NOT post AI-generated comments on issues or PRs. Discussions are for humans only.
- Discuss before implementing: Ensure the implementation direction is agreed upon with maintainers in the issue comments before starting work.
- Spec-first coding is mandatory: Before changing behavior, APIs, SDKs,
plugins, storage, runtime flow, or domain semantics, AI agents MUST read the
relevant specs under
specs/and treat them as the rule source for the implementation. - Discuss spec-impacting changes before coding: If a change touches behavior covered by an existing spec, or exposes a gap between the code and the spec, AI agents MUST discuss the implementation direction and the required spec update with maintainers before starting the code change.
- Update specs with the design: Any design proposal that changes or clarifies spec-covered behavior MUST include the corresponding spec updates in the same change set. When the design is large or controversial, prefer a spec/design-only PR first, then follow with implementation PRs.
- API IT impact comes first: Before adding, changing, deleting, or
deprecating any HTTP API, AI agents MUST analyze the affected
test/openapi-testcoverage and update the API IT scenario matrix, test cases, and coverage registry in the same change set. If the functional path cannot be exercised in standalone IT, cover boundary/error scenarios and document the reason. - Java SDK IT impact comes first: Before adding, changing, deleting, or
deprecating any public Java SDK interface, factory, model, listener behavior,
lifecycle behavior, or exception mapping, AI agents MUST analyze and update
test/java-sdk-testcoverage, including scenario documentation. If the end-to-end success path is impractical, cover SDK parameter validation, boundary behavior, and controlled exceptions. - Disclose AI usage: When a significant part of a commit is AI-generated, add a trailer to your commit message:
Assisted-by: Claude Code - Follow CONTRIBUTING.md for all contribution processes.
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.
- 2mo ago First seen · 463 lines · 6,338 tokens per session scan A c2837586006a
nacos AGENTS.md is an instructions file published in the GitHub repository alibaba/nacos (33,501 stars, last pushed yesterday), licensed Apache-2.0. It adds 6,338 tokens to every session, about $0.0254 per session on Opus 5.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.
nacos AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nacos AGENTS.mdalibaba/nacos | Instructions file | 34k | yesterday | Apache-2.0 | A | 6,338 | Codex, OpenCode |
| graftcode graftcode-dotnet.instructions.mdgrft-dev/graftcode | Instructions file | 967 | 1mo ago | none | A | 7,060 | GitHub Copilot |
| graftcode graftcode-python.instructions.mdgrft-dev/graftcode | Instructions file | 967 | 1mo ago | none | A | 4,639 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |