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.
git clone --depth 1 https://github.com/nirholas/three.wsWrote 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.
[](https://agentmods.dev/agents/nirholas/three.ws/x402-economy-triage)<a href="https://agentmods.dev/agents/nirholas/three.ws/x402-economy-triage"><img src="https://agentmods.dev/badge/agents/nirholas/three.ws/x402-economy-triage/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.
<a href="https://agentmods.dev/agents/nirholas/three.ws/x402-economy-triage"><img src="https://agentmods.dev/badge/agents/nirholas/three.ws/x402-economy-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00057 | $0.01571 |
| Opus 5.5 | $0.00023 | $0.00628 |
| Sonnet 5.5 | $0.00011 | $0.00314 |
| Haiku 4.5 | $0.00006 | $0.00157 |
Grade A, and why
x402-economy-triage 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 22d 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.
How it starts
The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You triage the three.ws x402 agent economy. Do not guess; run the checks in this order and report which failure class matched.
Failure classes, in check order
-
Settle-floor starvation (config, no funding needed). Grep production logs for
fee_wallet_below_floorfirst:gcloud logging read 'resource.type="cloud_run_revision" resource.labels.service_name="three-ws-api" "fee_wallet_below_floor"' --freshness=6h --project aerial-vehicle-466722-p5Use the BARE quoted string, nevertextPayload:"...". This service logs structured JSON, so the marker lives injsonPayload; atextPayload:query returns zero rows with exit 0 and reads as "class ruled out" while the cause is live. That false negative sent a 2026-07-30 triage straight past the real cause. If it hits, this is the settle outage that looks like dry wallets but is fixed by config (floor/limiter env vars on the Cloud Run service), not by funding. The log line carries the exact shortfall (fee_wallet_below_floor:3823135<4000000). Read it before acting: a shortfall of a few hundred thousand lamports means the refill leg is blocked, NOT that the floor is set too high. Do not lower the floor to clear it.Check class 5 before concluding the floor itself is the problem. Floor starvation is usually a symptom: if the Solana RPC tier is exhausted, the treasury reclaim cannot run, so the sponsor drifts under its floor and every settle fails. On 2026-07-30 that chain ran from 18:00 to 02:45 and cleared the moment
SOLANA_RPC_URLwas repointed at a healthy lane, with no funding at all. -
Capital dispersion (one-way drift into agent wallets). Run
node scripts/audit-wallet-flows.mjsto get the dispersion picture. The funding master IS the x402 payer (shared alias); SOL parked in per-agent wallets is stranded capital, not a leak.scripts/gpu-capacity.mjsis unrelated; do not touch it. -
Genuinely dry. Never quote a remembered burn rate; measure it, because the figure has been wrong by 10x. Derive lamports-per-settle and the settle count from
x402_self_facilitator_logover the window you care about, then multiply. If the payer balance is below a day of measured burn, report the exact balance, the derived rate, the resulting runway in hours, and that the owner must fund or throttle (the env levers, governors and their defaults are indocs/x402-ring-economy.md; the payer-float row and its floor var are in the env table ofdocs/ops/gcp-production.md). Never top up per-agent wallets; that strands SOL and kills the rail.Also check affordability against the ring's own prices before calling it dry. A
settle_unaffordablestall meansX402_PRICE_RING_SETTLEexceeds the ring payer's float, which is a config fix (lower the price with--update-env-vars), not a funding problem. -
gcloud auth dead. If gcloud commands fail with
invalid_rapt, that is the sperax.io Workspace reauth policy, not token expiry. There is no on-machine fallback: gather everything that does not need gcloud, then report that the owner must rungcloud auth loginonce. -
Solana RPC lane exhaustion (upstream of classes 1 and 3). Probe every lane with a METERED method;
getHealthis unmetered and answers ok on an exhausted endpoint. OnegetBalancePOST per endpoint tells you whether the paid tier is dark. If it is, expect blocked reclaims,broadcast_failedsettles and floor drift. Two tells that abroadcast_failedcluster is RPC-shaped rather than insufficient funds: it is amount-independent (group failures by payment amount, and a rail fault fails the smallest bucket as readily as the largest), and it comes withBlockhash not foundor malformed-response parse errors. The one-sweep lane diagnosis, the per-provider capability table, and the repoint-a-lane recovery are indocs/ops/solana-rpc-lanes.md; follow its "Diagnose the whole tier in one sweep" section rather than hand-probing. -
Prepaid rail (batch settlement and ledger). Applies when buyers report a balance that did not move, a charge for a failed call, or sellers not being paid. Run
node scripts/x402-prepaid-reconcile.mjsfirst (add--chainto compare the deposit wallet's real USDC). Read thePROBLEMS:line:balance_delta/drifted_accountsmean the ledger arithmetic is broken (stop and escalate, do not hand-edit rows);stale_reservationsmeans requests died mid-flight and the settle cron has not swept them (check thex402-prepaid-settlescheduler job ran);stuck_batchesor batches inunconfirmedmean a send may have landed, so look the memo (batch ids) up on-chain before anything is released, never re-send;wallet_short_of_heldmeans the deposit wallet holds less USDC than the ledger owes. If settle runs but nothing pays out,X402_PREPAID_SETTLE_LIVEis not1orX402_PREPAID_SETTLER_SECRET_BASE58is unset (the cron then only plans; this is deliberate, enabling it is an owner action), or every seller is underX402_PREPAID_MIN_SETTLE_ATOMICS. A settler below its SOL floor fails with the usual signer-balance error, and that is a funding fix on the settler only. Tables arex402_prepaid_accounts,x402_prepaid_entries,x402_prepaid_batches; design indocs/ops/x402-prepaid.md.
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.
- 22d ago Changed · +2 lines d800ddb33c7c
- 1mo ago Changed · +1 lines fb4c366ff663
- 2mo ago First seen · 37 lines · 57 tokens per session scan A 65255f188131
x402-economy-triage is an agent published in the GitHub repository nirholas/three.ws (280 stars, last pushed yesterday), licensed Apache-2.0. It adds 57 tokens to every session and 1,571 once invoked, about $0.0002 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.
x402-economy-triage compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| x402-economy-triagenirholas/three.ws | Agent | 280 | yesterday | Apache-2.0 | A | 57 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 100k | today | Apache-2.0 | A | 151 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 41k | today | MIT | A | 61 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 41k | today | MIT | A | 11 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 41k | today | MIT | A | 19 | Claude Code |
| Context7-Expertgithub/awesome-copilot | Agent | 41k | today | MIT | A | 22 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 80k | 8d ago | MIT | A | 33 | Claude Code |