fibx: Instructions file for Claude Code

CLAUDE.md

fibx CLAUDE.md is an instructions file for Claude Code from Fibrous-Finance/fibx. It costs 1,922 tokens per session, scanned A, original, MIT.

Project instructions for FibX, a command-line tool and agent server for DeFi on several blockchain networks. It covers swaps, quotes, transfers, portfolios, lending, and three ways users can approve transactions.

In plain words
What is it for?
It is for working safely on FibX code and its commands or agent interface. It explains wallet-based approval, server-held keys, imported keys, and the limits applied to them.
Why use it?
It gives an agent the project’s operating rules and security constraints, especially around transaction signing and spending limits.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fibrous-finance/fibx/claude-md.svg)](https://agentmods.dev/instructions/fibrous-finance/fibx/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fibrous-finance/fibx/claude-md"><img src="https://agentmods.dev/badge/instructions/fibrous-finance/fibx/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,922 This file is loaded in full into every session.
When invoked 1,922 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.01922 $0.01922
Opus 5 $0.00961 $0.00961
Sonnet 5 $0.00384 $0.00384
Haiku 4.5 $0.00192 $0.00192

Measured yesterday against content hash d41be69cdd12, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

fibx 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 yesterday.

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 · 159 lines

How it starts

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

FibX

A zero-runtime-dependency CLI and stdio MCP server for DeFi on Base, HyperEVM and Monad — swaps and quotes through Fibrous aggregation, transfers, portfolio, Aave V3. One published artifact serves both surfaces: fibx <command> for people, fibx mcp-start for agents.

Start here when resuming work: docs/superpowers/HANDOFF.md — what is in flight, what is blocked on a human, and how to pick it up.

Three signing paths, and why that matters

Every design decision in this repo comes back to this. A user signs through one of three paths, and they are peers rather than a default plus fallbacks:

Path Key lives Approval Bounded by
WalletConnect (auth connect) the user's own wallet every transaction, on their phone the wallet, plus the local policy
Privy (auth login <email>) Privy, server-side none — runs unattended a server-side Privy policy, plus the local policy
Imported key (auth import) session.json, AES-256-GCM none — runs unattended the local policy alone

fibx auth setup presents the choice. The local signing policy — a user-owned JSON file with a per-chain native cap, an allowed-chain list, an allowed-destination list and an expiry — is enforced in front of all three, in two places: a viem LocalAccount wrapper (withPolicy) for the key and Privy paths, and the WalletConnect EIP-1193 provider before the request reaches the relay.

The product argument is that this file is the user's, on the user's machine. Anything that would move it server-side takes the argument with it.

Hard constraints

  • dependencies in package.json must stay absent. Everything ships bundled by tsup with noExternal: [/.*/], so npx fibx is near-instant. New packages go in devDependencies only, always.
  • ESM. Imports carry .js extensions even for TypeScript sources. No require() in source.
  • Style: tabs for indentation, double quotes, semicolons. Prettier and ESLint are the arbiters; run them.
  • Tests are vitest, colocated as <name>.test.ts beside the source.
  • package.json and server.json versions move together. The MCP registry rejects a publish whose manifest version does not match the npm package.

Read the full file on GitHub · 159 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. yesterday First seen · 159 lines · 1,922 tokens per session scan A d41be69cdd12

Subscribe to this mod's changes

fibx CLAUDE.md is an instructions file published in the GitHub repository Fibrous-Finance/fibx (0 stars, last pushed 2d ago), licensed MIT. It adds 1,922 tokens to every session, about $0.0096 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-09-07.

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,153 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