recuse: Instructions file for Claude Code

CLAUDE.md

recuse CLAUDE.md is an instructions file for Claude Code from xzycd/recuse. It costs 5,080 tokens per session, scanned A, original, MIT.

Project instructions for recuse, a tool that collects and ranks measurable information about prediction-market disputes, trades, positions, and payouts.

In plain words
What is it for?
Working on data sources, dispute parsing, position rebuilding, wallet balances, ranking, filtering, and terminal-safe output.
Why use it?
They separate network access from calculation logic and require remote data to be checked and made safe before it is shown in a terminal.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xzycd/recuse/claude-md"><img src="https://agentmods.dev/badge/instructions/xzycd/recuse/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,080 This file is loaded in full into every session.
When invoked 5,080 The same file — it is already loaded in full.
Security scan A 1 finding. 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.05080 $0.05080
Opus 5.5 $0.02032 $0.02032
Sonnet 5.5 $0.01016 $0.01016
Haiku 4.5 $0.00508 $0.00508

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

Security

Grade A, and why

recuse CLAUDE.md scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

There is deliberately no `--exec` and nothing is spawned. SECURITY.md claims the tool touches no `child_process`, and `recuse watch --json` piped into a shell loop gives anyone the same power. Keeping the claim true is w
CLAUDE.md · 215 lines

How it starts

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

Working in this repo

Read DNA.md first. It has the rules. This file is the mechanics.

Layout

src/
  sources/    one module per external service, each returning typed records
    http.ts       fetch with timeout, backoff, a body size cap, embedded JSON
    gamma.ts      market catalogue and resolution lifecycles
    dataapi.ts    current balances, with the display names accounts chose
    subgraph.ts   cumulative positions through the old index head, plus payouts
    trades.ts     the current trade log, with request-scope and paging checks
    chain.ts      the oracle layer, unbuilt. reports that it read nothing,
                  and validates RECUSE_RPC_URL on every reading
  core/       pure logic, no I/O except where noted
    safe.ts       making remote text safe to put on a terminal. pure
    dispute.ts    parses umaResolutionStatuses into rounds, phase, clock
    capture.ts    which side is measurable, concentration, repeat tallies
    rebuild.ts    cumulative positions summed out of fills. pure
    wallet.ts     one wallet's ledger, chain payout first, closing-price fallback. pure
    rank.ts       sort order, filtering, viewport. pure
    watch.ts      what counts as a resolution moving. pure
    recall.ts     what moved since the last radar run. pure, reuses watch.ts
    queue.ts      lifecycles that never terminated, and how long. pure
    ledger.ts     the event log summarised. pure
    mcp.ts        the MCP protocol, pure. the engine is injected
    update.ts     version check. checks and prints, never installs
    assess.ts     assembles one answer from every source (does I/O)
    watcher.ts    one poll pass, and the loop (does I/O)
    store.ts      the watchlist, both snapshots, the event log, under ~/.recuse
    notify.ts     webhook delivery. the only outbound sink
  ui/
    theme.ts      five themes, colour depth detection, hex to escape
    format.ts     numbers, widths, NO_COLOR and non-TTY detection
    logo.ts       the wordmark, the face, and the launch banner
    loading.ts    the spinner, on stderr, silent when piped
    plain.ts      the plain renderer, and the fallback for pipes
    App.tsx       the ink radar
  cli.ts      arg parsing, command dispatch, --json on every path
tools/
  logo.mjs          regenerates assets/. run after changing the wordmark
  site.mjs          builds site/, flat HTML, no backend and no client JS
  prepare.mjs       builds on install, so a git install produces a binary
  reachable.mjs     which symbols the entry point can get to. pure, tested
  housekeeping.mjs  the house rules, checked. run by CI
.github/workflows/
  ci.yml      typecheck, build, test, audit and check on node 22 and 24
  site.yml    nightly site build, publishes to Pages

Read the full file on GitHub · 215 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 · 215 lines · 5,080 tokens per session scan A 61c33ee810c0

Subscribe to this mod's changes

recuse CLAUDE.md is an instructions file published in the GitHub repository xzycd/recuse (2 stars, last pushed 11d ago), licensed MIT. It adds 5,080 tokens to every session, about $0.0203 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

recuse CLAUDE.md compared with instructions from other repositories

recuse CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
recuse CLAUDE.mdxzycd/recuseInstructions file211d agoMITA5,080Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode