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/forgesworn/bray/claude-mdgit clone --depth 1 https://github.com/forgesworn/brayWhat 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.01049 | $0.01049 |
| Opus 5 | $0.00524 | $0.00524 |
| Sonnet 5 | $0.00210 | $0.00210 |
| Haiku 4.5 | $0.00105 | $0.00105 |
Grade A, and why
bray CLAUDE.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 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.
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 — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md — nostr-bray
MCP server giving AI agents sovereign Nostr identities. 238 tools across 27 groups.
Commands
npm run build— compile TypeScript to dist/npm test— run all tests (vitest, 1098 tests)npm run test:watch— watch modenpm run lint— type-check without emitting (tsc --noEmit)npm start— run the MCP server (requires NOSTR_SECRET_KEY + NOSTR_RELAYS)node dist/cli.js --help— CLI help
Architecture
Single-process MCP server. Entry points:
src/index.ts— MCP server (config → IdentityContext → RelayPool → tool registration → transport)src/cli.ts— CLI wrapper (same handlers, no MCP)
Central spine: IdentityContext in src/context.ts manages the nsec-tree root, LRU identity cache with cryptographic zeroing, and signing. TrustContext in src/trust-context.ts aggregates trust signals across verification (Signet), proximity (WoT), and access (Dominion) dimensions.
Handler extraction pattern: Each tool group has:
src/<group>/handlers.ts— pure logic functions (testable without MCP)src/<group>/tools.ts— Zod schemas +server.registerTool()wiringtest/<group>/handlers.test.ts— unit tests for handlers
Source directories (16): identity/, social/ (includes blossom, dm, groups, nips, notifications), trust/, relay/, zap/, safety/, signet/, vault/, util/, workflow/ (trust-score, feed-discover, verify-person, identity-setup, identity-recover, relay-health), dispatch/ (13 tools: send, check, reply, ack, status, cancel, refuse, failure, query, propose, capability-publish, capability-discover, capability-read), handler/, marketplace/, moderation/, privacy/, widgets/. The 27 user-facing groups in README/llms.txt split social/ into sub-groups (dm, blossom, articles, calendar, badges, communities, groups, wiki, search, scheduling, community NIPs).
Shared modules:
src/config.ts— env var + file secret loading, format detectionsrc/relay-pool.ts— relay connections with SOCKS5h proxy, write queue, Tor policysrc/nip65.ts— NIP-65 relay list fetch with signature verification + TTL cachesrc/validation.ts— Zod validators (hexId,relayUrl)
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 First seen · 67 lines · 1,049 tokens per session scan A e351af28ee96
bray CLAUDE.md is an instructions file published in the GitHub repository forgesworn/bray (1 stars, last pushed 9d ago), licensed MIT. It adds 1,049 tokens to every session, about $0.0052 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-31.
Other instructions, from other repositories
mcp-server-excel coverage-prevention-strategy.instructions.md
Instructions for sbroenne/mcp-server-excel, covering generated surface coverage, contract change workflow, required checks and common incomplete changes.
mcp-server-excel mcp-llm-guidance.instructions.md
Instructions for sbroenne/mcp-server-excel, a project described as: Automate real Microsoft Excel with AI via MCP Server or CLI — Power Query, DAX, VBA, PivotTables, charts, and 326 operations.
openrouter-mcp-multimodal AGENTS.md
Instructions for stabgan/openrouter-mcp-multimodal, covering agent instructions, before you ship, releasing (read this before publishing), short version and version files (must all match package.json).
ntfy-mcp-server AGENTS.md
Instructions for cyanheads/ntfy-mcp-server, covering developer protocol, what's next?, core rules, patterns and tool.
Plonk AGENTS.md
Instructions for ostapondo/Plonk, covering agent rules, layout, adding a module, build & verify and code style.
mcp-dockhand copilot-review.instructions.md
Instructions for strausmann/mcp-dockhand: When reviewing pull requests in this repository.