tweazy: Instructions file for Claude Code

CLAUDE.md

tweazy CLAUDE.md is an instructions file for Claude Code from aaronjmars/tweazy. It costs 813 tokens per session, scanned A, original, MIT.

Project instructions for Tweazy, a Next.js application that charges 0.01 USDC per AI query using Web3 payments. They describe development commands, the application structure, wallet handling, and payment flow.

In plain words
What is it for?
Running, building, and linting Tweazy; initializing its configuration; and changing its AI payment, wallet, network, and API systems.
Why use it?
They help an agent work within the project's existing architecture instead of guessing how its servers, payments, wallets, and configuration fit together.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aaronjmars/tweazy/claude-md"><img src="https://agentmods.dev/badge/instructions/aaronjmars/tweazy/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 813 This file is loaded in full into every session.
When invoked 813 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.00813 $0.00813
Opus 5.5 $0.00325 $0.00325
Sonnet 5.5 $0.00163 $0.00163
Haiku 4.5 $0.00081 $0.00081

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

Security

Grade A, and why

tweazy 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 · 82 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Development Commands

  • npm run dev - Start development server at localhost:3000
  • npm run build - Build production application
  • npm run start - Start production server
  • npm run lint - Run ESLint for code linting
  • npm run init - Initialize Tambo configuration

Project Architecture

Tweazy is a Next.js application that demonstrates pay-per-use AI with Web3 payments using x402 protocol, MCP (Model Context Protocol), and CDP Smart Wallets. Users pay 0.01 USDC per AI query.

Core Systems

Payment System (src/lib/payment.ts):

  • Universal payment handling for both Smart Wallets (CDP) and external wallets
  • Paymaster integration for gas sponsorship on Smart Wallets
  • USDC transfers on Base network (testnet/mainnet)

Wallet Architecture:

  • Smart Wallets (src/lib/smart-wallet.ts, src/lib/cdp-wallet.ts): CDP-based passkey authentication with gas sponsorship
  • External wallets: wagmi integration for MetaMask, Coinbase Wallet, etc.
  • Dual-wallet context in src/components/WalletProvider.tsx

Network Configuration (src/lib/config.ts):

  • Environment-based testnet/mainnet switching via NEXT_PUBLIC_NETWORK_MODE
  • Base Sepolia (testnet, default) and Base Mainnet support
  • Network-specific USDC contracts and RPC endpoints
  • Centralized config with secrets in environment variables only

AI Integration:

  • Tambo AI framework for generative UI with React component registry
  • MCP protocol support for extensible AI functionality
  • Every AI query is payment-gated in EnhancedMessageInput, which opens the payment flow before the request is sent
  • Dynamic component rendering based on AI responses

API Routes Structure

  • POST /api/cdp/create-wallet - Create CDP Smart Wallet
  • POST /api/cdp/balance - Check USDC balance
  • POST /api/cdp/transfer - Not implemented; returns 501 (503 when CDP is unconfigured). Mock transfers are available only behind TWEAZY_ALLOW_MOCK_PAYMENT=1.
  • POST /api/cdp/fund-wallet - Fund wallet with testnet tokens
  • POST /api/paymaster - Handle paymaster gas sponsorship

Read the full file on GitHub · 82 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 · 82 lines · 813 tokens per session scan A 3f30c20c13ce

Subscribe to this mod's changes

tweazy CLAUDE.md is an instructions file published in the GitHub repository aaronjmars/tweazy (47 stars, last pushed 4d ago), licensed MIT. It adds 813 tokens to every session, about $0.0033 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-30.

Related

tweazy CLAUDE.md compared with instructions from other repositories

tweazy CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tweazy CLAUDE.mdaaronjmars/tweazyInstructions file474d agoMITA813Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot