AgentNetworkProtocol AGENTS.md

Repository guidelines for a project that publishes agent-network protocol documents, examples, and maintenance scripts. They describe where different kinds of files belong and which protocol changes are owned by this project.

In plain words
What is it for?
Use it when adding or editing protocol specifications, drafts, translations, examples, blog material, or maintenance scripts. It helps decide where new work belongs.
Why use it?
They reduce the risk of putting documents, profiles, or product-specific rules in the wrong place. They also clarify the boundary between shared protocol work and individual products.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/agent-network-protocol/agentnetworkprotocol/agents-md
Clone the repo
git clone --depth 1 https://github.com/agent-network-protocol/AgentNetworkProtocol

Made for: Codex, OpenCode.

Per session 714 This file is loaded in full into every session.
When invoked 714 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00714 $0.00714
Opus 5 $0.00357 $0.00357
Sonnet 5 $0.00143 $0.00143
Haiku 4.5 $0.00071 $0.00071

Measured yesterday against content hash 154a16b5b15b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

AgentNetworkProtocol 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 yesterday.

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 · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Guidelines

Project Structure & Module Organization

  • Root contains protocol specifications and white papers (e.g., 01-*.md, 06-*.md, 07-*.md, 08-*.md).
  • vnext/ and chinese/vnext/ hold candidate drafts for core protocols 01–09.
  • docs/ and docs/chinese/ hold guides, links, and community operations.
  • chinese/ mirrors core documents in Chinese plus research notes and process docs.
  • blogs/ and blogs/cn/ store long-form articles; blogs/images/ holds blog assets.
  • images/ and standard/ provide shared figures and standards references.
  • examples/ contains sample ADP assets and API interface YAMLs.
  • scripts/ includes dependency-free Python and JavaScript utilities for repo maintenance.

Protocol Ownership Boundary

  • Profile specifications indexed by this repository belong to the ANP protocol set. Do not add an implementation-owned profile outside the anp.* namespace to the ANP Profile index merely because it transports ANP messages or uses ANP capability discovery.
  • Vendor or product-private protocols, fixtures, storage limits, client scheduling rules, and UI watchdogs stay in the owning product repository. ANP documents may describe the generic extension mechanism without adopting a private profile as an ANP specification.

Build, Test, and Development Commands

This repository is documentation-first and has focused tests for maintenance automation.

  • Run maintenance scripts with UV:
    • uv run python scripts/add_copyright.py
    • uv run python scripts/rename_images.py
    • uv run python scripts/replace_spaces_with_hyphens.py
  • Test contributor avatar automation with node --test tests/update_contributors.test.js.

Coding Style & Naming Conventions

  • Documentation is Markdown; keep headings concise and sectioned with ##/###.
  • Use descriptive, kebab-case filenames for new documents and assets when possible.
  • For Python scripts, follow Google Python Style; keep comments and logs in English.
  • Prefer clear, action-oriented titles like add, update, docs: in commit messages.

Read the full file on GitHub · 59 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. yesterday First seen · 59 lines · 714 tokens per session scan A 154a16b5b15b

Subscribe to this mod's changes

AgentNetworkProtocol AGENTS.md is an instructions file published in the GitHub repository agent-network-protocol/AgentNetworkProtocol (1,407 stars, last pushed 4d ago), licensed Apache-2.0. It adds 714 tokens to every session, about $0.0036 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.