nacos: Instructions file for Codex

AGENTS.md

nacos AGENTS.md is an instructions file for Codex, OpenCode from alibaba/nacos. It costs 6,338 tokens per session, scanned A, original, Apache-2.0.

A set of contribution instructions for Nacos, a software project, covering its architecture, specifications, and development commands. It requires coding agents to check relevant specifications before changing behavior.

In plain words
What is it for?
Use it when contributing to Nacos and needing guidance on repository structure, required design discussions, specifications, builds, or tests.
Why use it?
It gives agents the repository rules they need before editing code, including when to discuss changes with maintainers and update specifications.

Instructions file for CodexOpenCode ✓ vendor

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is alibaba/nacos's own configuration. It tells Codex and OpenCode how to work on nacos itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nacos configures →

About the project

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.

alibaba/nacos · 33,501 stars · on GitHub · nacos.io

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/alibaba/nacos/develop/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/alibaba/nacos

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for nacos AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/alibaba/nacos/agents-md/github.svg)](https://agentmods.dev/instructions/alibaba/nacos/agents-md)
Your own site
<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.

agentmods 80×15 button for nacos AGENTS.md

Your own site · 80×15
<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>
Per session 6,338 This file is loaded in full into every session.
When invoked 6,338 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash c2837586006a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 463 lines

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-test coverage 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-test coverage, 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.

Read the full file on GitHub · 463 lines

Changes

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.

  1. 2mo ago First seen · 463 lines · 6,338 tokens per session scan A c2837586006a

Subscribe to this mod's changes

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.

Related

nacos AGENTS.md compared with instructions from other repositories

nacos AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nacos AGENTS.mdalibaba/nacosInstructions file34kyesterdayApache-2.0A6,338Codex, OpenCode
graftcode graftcode-dotnet.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA7,060GitHub Copilot
graftcode graftcode-python.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA4,639GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode