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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mahesvannan/tx402/claude-md"><img src="https://agentmods.dev/badge/instructions/mahesvannan/tx402/claude-md.svg" alt="Reviewed on agentmods" width="80" 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. 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.03162 $0.03162
Opus 5.5 $0.01265 $0.01265
Sonnet 5.5 $0.00632 $0.00632
Haiku 4.5 $0.00316 $0.00316

Measured 2mo ago against content hash 79d1fb0225fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 3mo ago), licensed MIT. It adds 3,162 tokens to every session, about $0.0126 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

tx402 CLAUDE.md compared with instructions from other repositories

tx402 CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tx402 CLAUDE.mdMahesvannan/tx402Instructions file03mo agoMITA3,162Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA8,130Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file283ktodayMITA4,342Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,153GitHub Copilot