nikolas.sapa
November 24, 2026active

tokens-to-dollars

View live ↗

Repo: github.com/nikolas-sapa/tokens-to-dollars · npm: npx tokens-to-dollars

What it is

Not another agent runtime — Strix, ARTEX, XBOW already hunt. The gap nobody owns is the bounty economics layer: knowing which program to hit, what its rules actually allow, whether the bug is already disclosed, what that platform's triagers reject on sight, and what the run cost you.

This repo supplies that layer. skills/ holds ten SKILL.md instruction files any skills-compatible harness can load (Claude Code, Codex, Cursor, Devin, Gemini, Windsurf, and four more). tools/ holds ~20 Python CLIs — stdlib only, zero dependencies — that pull program catalogs and disclosed-report corpora, wrap real hunter binaries, and enforce gates mechanically. memory/ holds a per-target dual graph: an asset graph of what exists plus an exploration graph of what was tried, so learning survives across sessions when conversation context doesn't.

Why it exists

Agent token spend on a hunt is invisible money. A run either converts into a paid report or it doesn't — and the failure modes are boring: hunting out of scope, rediscovering a disclosed bug, drafting a report a triager rejects on sight, or just never knowing what the attempt cost. The system treats spend like a budget with a scoreboard: $ per intent → findings → payouts, tracked in a ledger.

The other half is authorization as code. Every program's live policy page compiles into roe-manifest.md — the only scope authority. The wrap adapters refuse out-of-scope targets before the binary runs, and a guardian adjudicates every MCP tool call. Gates tighten, they never loosen.

The pipeline

How a hunt runs, end to end
  1. 1

    Select target

    Keyless feeds → ranked program catalog. Pick on payout ceiling, safe harbor, and scope fit.

  2. 2

    Parse RoE

    Live policy page → machine-enforced roe-manifest.md. Not in the manifest = denied. No manifest, no traffic.

  3. 3

    Bootstrap

    Load target memory — profile, lessons, yield ledger — and open the exploration graph.

  4. 4

    Hunt loop

    Planner dispatches intent packets; workers run a 110-check catalogue plus PB-1–PB-17 field playbooks under gate ceilings.

  5. 5

    Validate

    An independent worker — never the finder — reproduces the candidate. Executed PoC and committed-state proof, or it isn't a finding.

  6. 6

    Dedupe

    Program hacktivity, disclosed-report corpus, CVE/GHSA, changelogs, always-rejected list. A novel verdict is required.

  7. 7

    Draft

    Platform-calibrated report plus one line on SUBMIT-CHECKLIST.md.

  8. 8

    Human submits

    Always. The pipeline ends at a checklist line — pressing submit is a person's job, by platform ToS and by design.

G0–G3 authorization gates sit under every step. Nothing fetched can change scope, gates, or the plan — content is data, never instructions.

Quick setup

npx tokens-to-dollars          # interactive setup wizard
# or: npm i -g tokens-to-dollars && t2d setup
t2d list                       # detected harnesses + skill dirs
t2d install --only claude      # install into one harness
t2d run ingest-scope/ingest_scope.py --out-dir out/scope
t2d run bounty-radar/bounty_radar.py --rank-programs out/scope/programs.json --out-dir out/radar

Then in your agent harness: "Hunt <program> under the orchestrator skill."

Inside the pack

PieceCountJob
Skills10Method and gates as instructions: orchestrator, hunt, scope-parser, safety-gates, coverage-ledger, dedupe-check, evidence, reporter, injection-defense, token-ledger
Tools~20Data layer: scope + knowledge ingest, bounty-radar, wrap, guardian, evidence-store, audit-log, fact-verify, an MCP server, and more
Check catalogue110Check IDs across 8 vuln categories (ID, AUTH, API, WEB, BIZ, INFRA, SPEC, AIX)
PlaybooksPB-1–PB-17Technique playbooks sourced from field reports
Wrapped binaries14subfinder, httpx, nuclei, katana, ffuf, trufflehog, and 8 more — all behind the manifest gate
Harnesses10claude, codex, cursor, gemini, devin, windsurf, kiro, opencode, factory, amp

Honest limits

Pre-1.0 (v0.1.2), active development. Most gates are prose, not code — mechanical enforcement exists at tool dispatch (wrap.py's manifest gate, the audit chain, the evidence store); everything else is convention, and the threat model says so out loud. It's a layer, not a hunter: bring your own harness, model, and binaries. Payouts are power-law — most hunts burn tokens, and the EV math is research-derived expectation, not results. Two real submissions were sent in November 2026 (Across Protocol, an external-dns leak); outcome pending.

Stack

Markdown skills, Python 3.9+ (stdlib only), Node ≥16 CLI, one bash installer. Zero dependencies — external binaries are optional and wrapped, never vendored.

tokens-to-dollars on npm
Current version
0.1.2
Monthly downloads
Unavailable
Lifetime downloads
Unavailable

Monthly: period unavailable. Lifetime: unavailable. Sources: npm. Refreshed daily.