Borrowing it
Nothing to install: this file belongs to Calhooon/bsv-wallet-cli. 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/Calhooon/bsv-wallet-cli/main/CLAUDE.mdgit clone --depth 1 https://github.com/Calhooon/bsv-wallet-cliWrote 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/calhooon/bsv-wallet-cli/claude-md)<a href="https://agentmods.dev/instructions/calhooon/bsv-wallet-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/calhooon/bsv-wallet-cli/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/calhooon/bsv-wallet-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/calhooon/bsv-wallet-cli/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.03271 | $0.03271 |
| Opus 5.5 | $0.01308 | $0.01308 |
| Sonnet 5.5 | $0.00654 | $0.00654 |
| Haiku 4.5 | $0.00327 | $0.00327 |
Grade A, and why
bsv-wallet-cli 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 8d 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 — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
bsv-wallet-cli
Single Rust binary providing both a CLI wallet and an HTTP server that implements all 28 BRC WalletInterface endpoints, wire-compatible with the MetaNet Client.
Architecture
The binary has two modes: CLI commands for interactive wallet use, and an HTTP server (port 3322) that is wire-compatible with MetaNet Client.
src/
main.rs — CLI entrypoint, routes clap subcommands
context.rs — WalletContext: loads ROOT_KEY, opens SQLite, configures services
cli.rs — Clap argument definitions
commands/ — One file per CLI command (init, send, daemon, serve, split, etc.)
server/
mod.rs — Axum router setup, CORS, auth middleware, SpendingLock
handlers.rs — All 28 endpoint handlers, each translating MetaNet JSON ↔ SDK types
types.rs — MetaNet Client JSON request/response structs (the translation layer)
Dependency chain: bsv-wallet-cli → bsv-wallet-toolbox-rs (wallet engine, SQLite storage, signing, broadcasting) → bsv-rs (WalletInterface trait, crypto primitives). Both are published on crates.io.
Conventions
- MetaNet Client wire compatibility is the top constraint. The HTTP server must produce identical JSON to the MetaNet Client so existing tools (x402 skill, BRC-31 auth) work without modification.
- Translation layer (
server/types.rs): MetaNet Client uses different JSON shapes than the Rust SDK. Key differences:protocolID: mixed array[2, "name"]vs SDK'sProtocol { security_level, protocol_name }counterparty: hex string vsCounterparty::Other(PublicKey)- Binary data (
tx,signature): JSON number arrays[0,1,2,...]vs hex strings - Field names: MetaNet Client uses
protocolID/keyID(capital D). Use#[serde(alias = "protocolID")]sincerename_all = "camelCase"produces lowercased.
- SpendingLock: A FIFO mutex serializes
createActioncalls. With limited UTXOs, concurrent spending races on SQLite's write lock. Non-spending endpoints (crypto, queries) run fully concurrent. - Daemon vs Serve:
daemon= Monitor (background sync tasks) + HTTP server.serve= HTTP server only (dev mode, no background sync). - The explorer ladder (0.17.0, #50; the owner's word of 2026-10-22): each chain scanner has its own rate limits, so when one fails we go to the next. Every chain question that leaves the wallet asks WhatsOnChain, BananaBlocks and Bitails as each other's fallbacks: the toolbox's ladders (=0.13.1:
get_raw_tx,get_merkle_path,get_utxo_status,get_status_for_txids,is_utxo;is_utxo_with_spenderfor the spend probe (0.18.2, #196: one ladder pass per outpoint, four explorer requests in the bound-spender witness with or without the header service, plus a proof and header when needed; without the header service this is four rather than 0.13.0's two. Bytes alone name the bound spender unconfirmed; an unreadable or unbound name is(Unknown, None), never unspent, toolbox #96);get_utxo_leadsforsync's discovery, where one explorer's list is a lead and each lead is verified before it is received) and the CLI's own rungs insrc/explorers.rs(receive's couriers: WoC/beef, then BananaBlocks/hexwith the services' checked proof, thenget_beef) andbroadcast_verify's chain indexes (WoC, Bitails, BananaBlocks). A fault (a 429, a timeout, a 5xx, a malformed body, bytes that do not hash to the txid) is "could not look": it moves to the next rung at once and is never "unspent" or "absent". A negative needs a second provider's clean answer (BananaBlocks' 404 is a gap, never a vote). No rung sleeps on a 429: the rung is skipped without a request until its Retry-After passes (the toolbox'sRateGate). Every explorer call logsexplorer_callat info withprovider,call,status,ms. The spend gate and the tracker read the wallet's own proof records, never an explorer. The broadcaster is not an explorer rung: postBeef's ladder in Arcade mode is ArcadeV2, TaalArcBeef (the toolbox's, unauthenticated, until toolbox #317), Bitails, WhatsOnChain, all four in that order (#300); GorillaPool's ARC is never a rung.
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.
- 8d ago Changed · +1 lines · +336 tokens per session 04588d4a8b9a
- 10d ago Changed · +214 tokens per session ef94ad76644c
- 11d ago Changed · +56 tokens per session f83d86e481a8
- 14d ago Changed · +2 lines · +303 tokens per session 0d4849b7287b
- 15d ago Changed · +4 lines · +697 tokens per session f379e3d7261e
- 20d ago Changed · +60 tokens per session 449fbf209e9e
- 29d ago Changed · +26 tokens per session 9c7f32cf7a65
- 2mo ago First seen · 120 lines · 1,579 tokens per session scan A 8c6e5fa4287d
bsv-wallet-cli CLAUDE.md is an instructions file published in the GitHub repository Calhooon/bsv-wallet-cli (13 stars, last pushed 2d ago), licensed MIT. It adds 3,271 tokens to every session, about $0.0131 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-31.
bsv-wallet-cli CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| bsv-wallet-cli CLAUDE.mdCalhooon/bsv-wallet-cli | Instructions file | 13 | 2d ago | MIT | A | 3,271 | Claude Code |
| 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 |