wooo-cli CLAUDE.md

Project-specific instructions for wooo-cli, a Bun-managed monorepo containing a command-line app for crypto services and wallets. They describe its commands, folders, architecture, and command structure.

In plain words
What is it for?
Use them when changing wooo-cli, especially when working in the CLI or documentation apps, adding protocol commands, managing wallet-related code, or running project checks.
Why use it?
They give the coding agent the project context needed to navigate the repository and use the correct development, testing, checking, and build commands.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/daoleno/wooo-cli/claude-md
Clone the repo
git clone --depth 1 https://github.com/daoleno/wooo-cli
Per session 1,639 This file is loaded in full into every session.
When invoked 1,639 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 $0.01639 $0.01639
Opus 5 $0.00820 $0.00820
Sonnet 5 $0.00328 $0.00328
Haiku 4.5 $0.00164 $0.00164

Measured 2d ago against content hash b445cf626794, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wooo-cli 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 2d 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 · 117 lines

How it starts

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

CLAUDE.md

Development Commands

  • bun run dev - Run CLI in development mode
  • bun run dev -- <command> - Run specific command (e.g. bun run dev -- cex okx balance)
  • bun run dev:docs - Run the Fumadocs documentation and landing app
  • bun test - Run CLI tests
  • bun run type-check - TypeScript type checking
  • bun run lint - Biome linting
  • bun run lint:fix - Auto-fix lint issues
  • bun run build - Build all apps

Architecture

This is a Bun-managed monorepo. The publishable CLI package is under apps/cli, and the user-facing docs plus landing page are under apps/docs.

The CLI is a crypto all-in-one command app using Citty (unjs). Protocols are grouped by type under apps/cli/src/protocols/ and exposed as wooo <group> <protocol> <action> (e.g. wooo cex okx buy, wooo perps hyperliquid long). Wallets are stored and managed via OWS (Open Wallet Standard) vault at ~/.ows/.

Key Directories

  • apps/cli/src/core/ - Config (c12), output engine, OWS wallet integration, signer protocol/adapters, EVM/Solana clients, logger
  • apps/cli/src/core/chain-ids.ts - CAIP-2 chain identifiers and aliases
  • apps/cli/src/core/external-wallets.ts - External wallet registry
  • apps/cli/src/protocols/ - Each protocol has commands.ts + client.ts + types.ts + constants.ts
  • apps/cli/src/protocols/cex-base/ - Shared CEX base client and command templates (CCXT)
  • apps/cli/src/commands/ - Universal commands (wallet, config, market, portfolio, chain, swap)
  • apps/cli/tests/ - Mirrors src structure
  • apps/docs/ - Fumadocs/Next.js documentation app and landing page
  • ~/.ows/ - OWS vault directory (wallet keys, policy, audit logs)

Command Structure

wooo
├── config                # Configuration management
├── wallet                # Wallet management
│   ├── create / import / export / list / info / delete / switch / balance
│   ├── connect / disconnect / discover
│   ├── policy create / list / show / delete
│   └── key create / list / revoke
├── market                # Aggregated market data (price, search)
├── portfolio             # Cross-protocol portfolio (overview)
├── chain                 # On-chain operations (tx, balance, ens, call)
├── swap                  # Aggregated swap — auto-selects best DEX route
├── cex <exchange>        # CEX: okx, binance, bybit
├── dex <protocol>        # DEX: uniswap, curve, jupiter
├── defi <protocol>       # DeFi: aave, lido
├── perps <protocol>      # Perps DEX: hyperliquid, gmx
└── bridge <protocol>     # Bridges: stargate

Grouping is automatic via ProtocolDefinition.typePROTOCOL_TYPE_TO_GROUP mapping in apps/cli/src/protocols/types.ts.

Read the full file on GitHub · 117 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. 2d ago First seen · 117 lines · 1,639 tokens per session scan A b445cf626794

Subscribe to this mod's changes

wooo-cli CLAUDE.md is an instructions file published in the GitHub repository daoleno/wooo-cli (5 stars, last pushed 3mo ago), licensed MIT. It adds 1,639 tokens to every session, about $0.0082 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.