tx402: Instructions file for Claude Code

CLAUDE.md

tx402 CLAUDE.md is an instructions file for Claude Code from Mahesvannan/tx402. It costs 3,162 tokens per session, scanned A, original, MIT.

Maintainer notes for a payment service called tx402, covering its production setup, file responsibilities, deployment details, and handling of secrets. The service processes payments on the Algorand network using USDC.

In plain words
What is it for?
Use them when working on tx402’s routes, transaction decoding, indexing, narration, insights, health checks, or production deployment.
Why use it?
They give developers the operational context needed to change or deploy the service safely. They also warn where credentials and wallet files must not be stored.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is Mahesvannan/tx402's own configuration. It tells Claude Code how to work on tx402 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 tx402 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Mahesvannan/tx402. 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/Mahesvannan/tx402/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Mahesvannan/tx402

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 tx402 CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mahesvannan/tx402/claude-md.svg)](https://agentmods.dev/instructions/mahesvannan/tx402/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mahesvannan/tx402/claude-md"><img src="https://agentmods.dev/badge/instructions/mahesvannan/tx402/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,162 This file is loaded in full into every session.
When invoked 3,162 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.03162 $0.03162
Opus 5 $0.01581 $0.01581
Sonnet 5 $0.00632 $0.00632
Haiku 4.5 $0.00316 $0.00316

Measured 5d ago against content hash 79d1fb0225fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tx402 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 5d 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 · 348 lines

How it starts

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

tx402 Maintainer Notes

Guidance for humans and coding agents working in this repository.

README.md is the public project document. Keep detailed implementation notes, phase runbooks, deployment evidence, and operational cautions here.

Current Production

Railway project:

  • project: tx402
  • url: https://tx402-production.up.railway.app
  • service: tx402
  • environment: production
  • region: sfo

Live payment configuration:

  • network: Mainnet
  • NETWORK=algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
  • USDC_ASSET_ID=31566704
  • PAY_TO=6RK3U3OF2B4Q773L4KC7OVFHQGU5I74NHRZ36QN6CVF527CKXAL62YR754
  • FACILITATOR_URL=https://facilitator.goplausible.xyz
  • TRUST_PROXY=1

Do not commit .env or any wallet file. *.local.json is intentionally gitignored.

File Layout

File Job
src/index.js HTTP routes, middleware ordering, logging, health checks, graceful shutdown
src/indexer.js AlgoNode indexer client and deep-health indexer probe
src/decoder.js Pure raw transaction decoder
src/narrator.js Pure plain-English narrator
src/insights.js Pure atomic-group and account-activity aggregation
src/explainer.js Indexer/asset orchestration for all product routes
src/knownApps.js App and asset label cache; protocol labels must be verified before use
src/payments.js x402 payment gate configuration; no private keys
src/rateLimit.js In-memory fixed-window per-IP limiter
src/analytics.js Aggregate process-local adoption counters and privacy controls
public/logo.svg / public/favicon.svg Public marketplace/landing-page visual assets
public/demo.js CSP-compatible landing-page client for the free allowlisted demo
scripts/smoke-phase3.mjs Public route deployment smoke test
scripts/check-phase4-mainnet.mjs Mainnet receiver preflight
scripts/check-phase5-buyer.mjs Mainnet buyer balance and opt-in preflight
scripts/pay-and-explain.mjs x402 buyer client for Testnet or confirmed Mainnet payment
examples/node-client.mjs Public client example; read-only by default, optional paid mode
examples/catalog-client.mjs Read-only challenge example for single/group/batch routes
mcp/tx402-mcp.mjs Backwards-compatible entry point for the packaged MCP wrapper
packages/tx402-mcp/ Publishable tx402-mcp npm package and stdio implementation
server.json Official MCP Registry metadata for io.github.Mahesvannan/tx402
openapi.json OpenAPI 3.1 document, also served at /openapi.json
PLAN.md Adoption roadmap: discovery, demo, packaging, product, distribution, analytics
test/*.test.js No runner dependency; each file is a standalone Node process
Dockerfile / Procfile / .dockerignore Persistent-process deployment artifacts
Review.md Gitignored audit/review history; read before assuming prior checks were not done

Read the full file on GitHub · 348 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. 5d ago First seen · 348 lines · 3,162 tokens per session scan A 79d1fb0225fd

Subscribe to this mod's changes

tx402 CLAUDE.md is an instructions file published in the GitHub repository Mahesvannan/tx402 (0 stars, last pushed 1mo ago), licensed MIT. It adds 3,162 tokens to every session, about $0.0158 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.

Related

Other instructions, from other repositories

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.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

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

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

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.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens