agent-sdk: Instructions file for Claude Code

CLAUDE.md

agent-sdk CLAUDE.md is an instructions file for Claude Code from trustless-ai/agent-sdk. It costs 548 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for trustless-ai/agent-sdk, a set of TypeScript and Python libraries that call blockchain contracts and can independently check some claims. ERCs are shared standards that define those contract interfaces.

In plain words
What is it for?
They guide adding or updating ERC clients, running tests against a local blockchain node, organizing the repository, and documenting whether claims can be independently verified.
Why use it?
They keep code, documentation, and commit messages consistent and prevent developers from hand-writing SDK support that should be generated from the contract definitions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths.

This is trustless-ai/agent-sdk's own configuration. It tells Claude Code how to work on agent-sdk itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-sdk configures →

Reuse

Borrowing it

Nothing to install: this file belongs to trustless-ai/agent-sdk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/trustless-ai/agent-sdk/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/trustless-ai/agent-sdk

Made for: Claude Code.

Wrote 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.

agentmods badge for agent-sdk CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/trustless-ai/agent-sdk/claude-md/github.svg)](https://agentmods.dev/instructions/trustless-ai/agent-sdk/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/trustless-ai/agent-sdk/claude-md"><img src="https://agentmods.dev/badge/instructions/trustless-ai/agent-sdk/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.

agentmods 80×15 button for agent-sdk CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/trustless-ai/agent-sdk/claude-md"><img src="https://agentmods.dev/badge/instructions/trustless-ai/agent-sdk/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 548 This file is loaded in full into every session.
When invoked 548 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00548 $0.00548
Opus 5.5 $0.00219 $0.00219
Sonnet 5.5 $0.00110 $0.00110
Haiku 4.5 $0.00055 $0.00055

Measured 1mo ago against content hash cde2ab377ec8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-sdk 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 1mo 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.

CLAUDE.md · 36 lines

How it starts

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

agent-sdk

Off-chain SDKs (TypeScript, Python) for ERCs defined in trustless-ai/agent-ercs. Every file in this repo — code, docs, commit messages — is written in English.

What this repo is

agent-ercs defines the on-chain side (Solidity interfaces) of the trustless-ai stack. agent-sdk is the off-chain side: client libraries that call those contracts, and — where an ERC's guarantees allow it — independently re-verify a claim off-chain instead of trusting a third party ("recompute-to-verify").

Adding or updating ERC support

Do not hand-write client code for a new or changed ERC directly. Use the skills:

  • /add-erc — generate TypeScript and Python clients for an ERC that doesn't have SDK support yet. See .claude/skills/add-erc/SKILL.md.
  • /update-erc — refresh existing clients after agent-ercs changes an ERC's interface. See .claude/skills/update-erc/SKILL.md.

Both skills read the interface and README from the agent-ercs submodule, judge whether the ERC's claims are recompute-to-verify, and write client code, tests (run against a local anvil node via testkit/), and a README documenting the verdict.

Repo layout

agent-ercs/                                  # git submodule (tracks `main` by default)
testkit/                                     # shared Foundry harness: deploys contracts to a local anvil node for tests
typescript/src/<category>/<ERCXXXX>/         # TS client + README for each ERC
python/src/agent_sdk/<category>/<ercxxxx>/   # Python client + README for each ERC

Directory names mirror agent-ercs's <category>/<ERCXXXX> structure. TypeScript keeps the exact casing; Python lowercases the ERC segment per PEP 8.

Recompute-to-verify

For each ERC, the ERC's own README.md (under both the typescript/ and python/ implementation directories) records whether its claims can be independently recomputed off-chain from public data, and why. This verdict decides whether the client exposes a verify() method and what the tests must cover — see those per-ERC READMEs for the specifics of any given ERC.

Read the full file on GitHub · 36 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. 1mo ago First seen · 36 lines · 548 tokens per session scan A cde2ab377ec8

Subscribe to this mod's changes

agent-sdk CLAUDE.md is an instructions file published in the GitHub repository trustless-ai/agent-sdk (2 stars, last pushed 20d ago), licensed Apache-2.0. It adds 548 tokens to every session, about $0.0022 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.

Related

Other instructions, from other repositories