Borrowing it
Nothing to install: this file belongs to 21-DOT-DEV/swift-secp256k1. 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/21-DOT-DEV/swift-secp256k1/main/AGENTS.mdgit clone --depth 1 https://github.com/21-DOT-DEV/swift-secp256k1Wrote 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/21-dot-dev/swift-secp256k1/agents-md)<a href="https://agentmods.dev/instructions/21-dot-dev/swift-secp256k1/agents-md"><img src="https://agentmods.dev/badge/instructions/21-dot-dev/swift-secp256k1/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/21-dot-dev/swift-secp256k1/agents-md"><img src="https://agentmods.dev/badge/instructions/21-dot-dev/swift-secp256k1/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.03188 | $0.03188 |
| Opus 5.5 | $0.01275 | $0.01275 |
| Sonnet 5.5 | $0.00638 | $0.00638 |
| Haiku 4.5 | $0.00319 | $0.00319 |
Grade A, and why
swift-secp256k1 AGENTS.md scanned grade A with 1 finding 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 6d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Vendored-tree freshness gate: `Scripts/vendir-check.sh [check ...]` (bare run = all checks; needs vendir + yq). `allowlist` fails `vendir.yml` on keys or values outside the declared set (vendir drops unknown keys silen How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md (swift-secp256k1)
A Swift 6.1 wrapper around libsecp256k1 for the Bitcoin and Nostr ecosystems. Supports macOS 15+, iOS 18+, watchOS 11+, tvOS 18+, and visionOS 2+. Uses Swift 6 strict concurrency (swiftLanguageModes: [.v6]).
Commands
- Build:
swift build - Test:
swift test - Format:
swift package swiftformat .(dev checkout only) - Lint:
swift package swiftlint(dev checkout only) - Install Lefthook hooks (one-time, dev checkout only):
lefthook install - Install vendir (needed only to re-sync vendored sources):
brew install carvel-dev/carvel/vendir— it tracks latest, so checkvendir versionagainst the pinned version named in "Extraction flow" below (exact binaries live on the vendir GitHub releases page) - Vendored-tree freshness gate:
Scripts/vendir-check.sh [check ...](bare run = all checks; needs vendir + yq).allowlistfailsvendir.ymlon keys or values outside the declared set (vendir drops unknown keys silently);resolveasserts each committedref:resolves upstream to the lock's SHA (an unsyncedref:edit fails named);syncrunsvendir sync --lockedin a throwaway worktree of HEAD, then asserts a clean porcelain over the managed paths;lockshafails when entries sharing agit.urlrecord different lock SHAs — the backstop for a literal typed in place of the shared&secp256k1-refalias;ignorepathsprobesraw.githubusercontent.comat each locked SHA and fails when a declaredignorePathspath exists upstream — the tripwire for a future upstream file being silently shadowed by a preserved shim (entries probe undernewRootPath/when the contents entry re-roots; exact-404-only pass, and only after an "anchor" file committed outside the ignore list answers 2xx — a dead pin 404s identically to an absent file; an entry naming a committed directory is a local finding; 429/5xx and transport trouble retried via curl's own backoff, then reported couldn't-verify). All five assert committed state (HEAD, not the working tree) — safe on a dirty working tree, but useless as a pre-commit hook. Exit 0 clean / 1 any drift found (dominates) / 2 nothing found but a check couldn't run. - Vendored-tree gate self-test:
Scripts/vendir-check-test.sh [substring]— exercisesvendir-check.shagainst committedmktempgit fixtures (a PATH-stubbed spycurlcovers theignorepathsverdict branches hermetically;file://fixture remotes run under a per-caseVENDIR_CHECK_ALLOW_PROTOCOLS=file:httpswidening), then asserts the gate passes on the real tree.VENDIR_CHECK_TEST_OFFLINE=1shrinks the real-tree leg toallowlist lockshafor networkless runs.
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.
- 6d ago Changed · +7 lines · +169 tokens per session e64629ab6a3e
- 13d ago Changed · +10 lines · +141 tokens per session a294130774f7
- 18d ago Changed · +163 tokens per session 911b5ec7dc2e
- 19d ago Changed 4b71c0bed64f
- 20d ago Changed · +1 lines · +295 tokens per session ab8f40e07dc1
- 21d ago Changed · +27 tokens per session ccb1a1439659
- 22d ago Changed · -2 tokens per session b8a0188cf153
- 24d ago Changed · +1 lines · +144 tokens per session 77e8a8c450dc
- 25d ago Changed · +5 tokens per session 30ed981aeb0e
- 27d ago First seen · 76 lines · 2,246 tokens per session scan A 1ca1daba15d1
swift-secp256k1 AGENTS.md is an instructions file published in the GitHub repository 21-DOT-DEV/swift-secp256k1 (161 stars, last pushed yesterday), licensed MIT. It adds 3,188 tokens to every session, about $0.0128 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
swift-secp256k1 AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swift-secp256k1 AGENTS.md21-DOT-DEV/swift-secp256k1 | Instructions file | 161 | yesterday | MIT | A | 3,188 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |