Borrowing it
Nothing to install: this file belongs to agentmessaging/agent-identity. 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/agentmessaging/agent-identity/main/CLAUDE.mdgit clone --depth 1 https://github.com/agentmessaging/agent-identityWrote 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/agentmessaging/agent-identity/claude-md)<a href="https://agentmods.dev/instructions/agentmessaging/agent-identity/claude-md"><img src="https://agentmods.dev/badge/instructions/agentmessaging/agent-identity/claude-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/agentmessaging/agent-identity/claude-md"><img src="https://agentmods.dev/badge/instructions/agentmessaging/agent-identity/claude-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.02648 | $0.02648 |
| Opus 5.5 | $0.01059 | $0.01059 |
| Sonnet 5.5 | $0.00530 | $0.00530 |
| Haiku 4.5 | $0.00265 | $0.00265 |
Grade E, and why
agent-identity CLAUDE.md scanned grade E with 4 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 2d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
keys/private.pem # Ed25519 private key (chmod 600) Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
3. **Remote `curl | bash`** — `install.sh` falls back to downloading scripts from `raw.githubusercontent.com/agentmessaging/agent-identity/main/scripts/` when its sibling `scripts/` dir is absent. Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
# Run any command directly from the repo without installing Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
3. **Remote `curl | bash`** — `install.sh` falls back to downloading scripts from `raw.githubusercontent.com/agentmessaging/agent-identity/main/scripts/` when its sibling `scripts/` dir is absent. How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What this repo is
A pure-Bash reference client for the Agent Identity (AID) protocol — OAuth 2.0 authentication for AI agents using Ed25519 cryptographic identities. It is distributed three ways from this single repo:
- Standalone CLI —
install.shcopies thescripts/aid-*.shfiles to~/.local/bin. - Claude Code plugin — see
.claude-plugin/plugin.jsonand theagent-identityskill atskills/agent-identity/SKILL.md. - Remote
curl | bash—install.shfalls back to downloading scripts fromraw.githubusercontent.com/agentmessaging/agent-identity/main/scripts/when its siblingscripts/dir is absent.
There is no compiled artifact, no package manager, no test suite, no linter for the CLI: edits to scripts/*.sh are the deliverable. The one exception is verifier/, a separate zero-dependency Node package (the relying-party side of docs/federation.md): cd verifier && npm test (Node 20+, no install step). gateway/ is a second one, the reference hosted gateway for kind-B systems (docs/gateway.md): cd gateway && npm test; it imports the verifier by relative path.
Common commands
# Install locally after edits (also the user-facing install command)
./install.sh # → ~/.local/bin
./install.sh /custom/path # → custom location
# Run any command directly from the repo without installing
./scripts/aid-init.sh --auto
./scripts/aid-request.sh --auth https://auth.example.com/tenant
./scripts/aid-token.sh -a https://auth.example.com/tenant -q
# Worked examples (each is a runnable shell script demonstrating a flow)
./examples/basic-usage.sh
./examples/multi-server.sh
./examples/scoped-tokens.sh
There is no make test, npm test, or equivalent. Validation is by running the example scripts against a live auth server, or by manually exercising the flows described in README.md.
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.
- 2d ago Changed · +97 tokens per session 2938b700313c
- 1mo ago First seen · 123 lines · 2,551 tokens per session scan E ae2c5447ac77
agent-identity CLAUDE.md is an instructions file published in the GitHub repository agentmessaging/agent-identity (4 stars, last pushed 2d ago), licensed MIT. It adds 2,648 tokens to every session, about $0.0106 per session on Opus 5.5. A static security scan graded it E with 4 findings (asks for root, downloads and executes remote code, unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.