Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat: enhance Agent Studio with USDC withdrawal and document x402 volume engine

qbdz4e8b5f391fa6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 29ec13d22..7dc066c46 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,8 +14,10 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Agent profiles show the agent's real 3D body again** — An agent page now renders the avatar the agent actually wears — including non-humanoid bodies like animals and props — instead of falling back to the default mannequin. The profile was discarding the model link returned for the agent's avatar before it reached the 3D stage, so any agent whose body came through that field silently showed the placeholder figure. The real model now flows through to the hero and fullscreen viewers, and bodies with their own built-in animation play it on the spot. `[fix]`
- **Agent Sniper is now a standalone open-source package** — The engine that lets three.ws agents snipe pump.fun launches is now its own lightweight, embeddable package: @three-ws/agent-sniper. Run it four ways — as a library, a CLI, an MCP server your AI agent can drive, or a paid x402 API that other agents pay in USDC to use. It ships with pluggable wallet, storage, RPC, and launch-feed adapters, so you can run a fully self-custodial sniper from your own keypair or a multi-tenant hosted service from one engine. Every agent gets its own wallet, its own budget and concurrency caps, a mandatory stop-loss, a price-impact circuit breaker, and a simulate-first default — plus the 3D-agent layer that puts a live trading desk on screen. Multiple agents and multiple users can snipe side by side, each embodied by its own 3D AI agent. `[sdk, feature]`
- **Agent Studio movement previews now play on the live avatar** — On the Body tab of Agent Studio, clicking a move in the Movement library — and pinning a looping idle as your resting pose — now actually animates your agent on the stage. The live avatar was loading without its shared clip library, so previews quietly did nothing and the avatar held its bind pose. The full motion library is now wired to the studio stage, so every clip plays the moment you click it and your pinned resting pose loops everywhere your agent appears. (`/agent-studio`) `[fix]`
+- **Agent Studio's Money tab can now withdraw USDC earnings and shows your total take** — The economic surface of Agent Studio just got more useful. Your agent earns in USDC — and now you can withdraw it: the Withdraw panel has a SOL / USDC toggle, shows the available balance for the asset you pick, and a one-tap Max sweeps the whole balance (a little SOL is kept for the network fee). The Earnings section now opens with a summary — total received, number of payments, and the last 7 days' take — computed from the real payments ledger, and it refreshes on its own, so a new payment appears with its running total updated without a reload. Same no-mocks, real-on-chain wallet underneath. (`/agent-studio`) `[improvement]`
- **AI chat now routes around a dead provider account instead of hammering it** — When one of the AI providers behind the chat is out of credit or its account is unfunded, it answers every request with the same billing wall. The chat already fell back to a working provider, but it would keep re-trying the dead one as a last resort on the very next message — wasting a round-trip and occasionally surfacing an 'at capacity' message that didn't need to happen. Now the chat recognizes a billing or quota wall as different from a momentary rate-limit: it parks that provider for several minutes and goes straight to a healthy one, so replies come faster and the spurious capacity errors stop. Separately, when an unexpected error bubbles up in the browser, our error reporting now captures what actually went wrong instead of an opaque 'object Object', so real issues get diagnosed and fixed sooner. `[fix, improvement]`
- **Documented the full x402 paid-endpoint catalog and where endpoint revenue is recorded** — The developer docs now cover every x402 paid endpoint and the money that flows through them. The endpoint catalog adds the services that had landed without docs — the revenue/analytics report, the avatar batch optimizer, club cover, paid tutoring, the notification gateway, the wallet-connect and Permit2 reference endpoints, the MCP tool catalog — and a new page explains the revenue ledger end to end: how a payment verifies, settles, and is recorded in x402_audit_log, how to read endpoint revenue (with copy-paste SQL and the analytics report shape), how signed receipts work, and why this is the opposite direction of money from the Money Pulse agent-spend feed. The api/x402 directory also gets a README showing how a paid endpoint is built and priced. (`/docs/x402-endpoints`) `[docs]`
+- **Documented the x402 volume engine and the daily payment reconciliation job** — The developer docs now cover the two newest pieces of the x402 money machine. The Volume Bootstrap Loop — the autonomous sweep that pays every cheap paid endpoint a real on-chain micro-payment to prove it is live — is documented with its per-endpoint proof-of-volume ledger (x402_volume_metrics) and its budget knobs. The docs are explicit that this is synthetic liveness traffic — the platform paying its own endpoints from its own seed wallet — and must not be reported as organic marketplace demand; any published volume or facilitator-ranking number has to exclude the seed wallet. The new daily reconciliation job is documented too: it cross-checks every settlement our books claim against the actual Solana transaction and flags any row the chain does not corroborate, so a silently-failed settlement can't drift our accounting. (`/docs/x402-revenue`) `[docs]`
- **Fixed several pages returning a 404** — A handful of pages were built and shipping but had no clean-URL route, so they fell through to the not-found page: the agent wallet (/agent-wallet), the viability report (/viability), and the gallery picker. All now load correctly. The agent wallet, when opened without a specific agent, also shows a clear prompt to pick or create one. (`/viability`) `[fix]`
- **Marketplace & trading viability get a dedicated page** — The two "honest signal" panels — marketplace viability (real $THREE skill GMV, take-rate, repeat buyers, trading pairs) and trading viability (real guarded coin-trade flow, cost and realized P&L on closed positions) — now live on their own page at /viability. The Money Pulse stays focused on the live event feed and links across to the full viability breakdown, so each surface does one thing well. Same real on-chain numbers, just easier to read and share. (`/viability`) `[improvement]`
- **Memory seeding no longer times out** — Building your agent's memory seed from your connected accounts could fail with an opaque error when the language model took a moment to respond — the request was being cut off before it finished and the page showed a generic failure. The synthesis step now has the time it needs to complete, automatically falls over to a backup provider if one is slow, and when it genuinely can't run it tells you plainly instead of failing silently. `[fix]`
diff --git a/data/changelog.json b/data/changelog.json
index 7d67f9afb..32730ba22 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,24 @@
{
"$comment": "Curated changelog entries for three.ws \u2014 the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-30",
+ "title": "Agent Studio's Money tab can now withdraw USDC earnings and shows your total take",
+ "summary": "The economic surface of Agent Studio just got more useful. Your agent earns in USDC — and now you can withdraw it: the Withdraw panel has a SOL / USDC toggle, shows the available balance for the asset you pick, and a one-tap Max sweeps the whole balance (a little SOL is kept for the network fee). The Earnings section now opens with a summary — total received, number of payments, and the last 7 days' take — computed from the real payments ledger, and it refreshes on its own, so a new payment appears with its running total updated without a reload. Same no-mocks, real-on-chain wallet underneath.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/agent-studio"
+ },
+ {
+ "date": "2026-06-30",
+ "title": "Documented the x402 volume engine and the daily payment reconciliation job",
+ "summary": "The developer docs now cover the two newest pieces of the x402 money machine. The Volume Bootstrap Loop — the autonomous sweep that pays every cheap paid endpoint a real on-chain micro-payment to prove it is live — is documented with its per-endpoint proof-of-volume ledger (x402_volume_metrics) and its budget knobs. The docs are explicit that this is synthetic liveness traffic — the platform paying its own endpoints from its own seed wallet — and must not be reported as organic marketplace demand; any published volume or facilitator-ranking number has to exclude the seed wallet. The new daily reconciliation job is documented too: it cross-checks every settlement our books claim against the actual Solana transaction and flags any row the chain does not corroborate, so a silently-failed settlement can't drift our accounting.",
+ "tags": [
+ "docs"
+ ],
+ "link": "/docs/x402-revenue"
+ },
{
"date": "2026-06-30",
"title": "Wallet balances ride out an exhausted RPC quota instead of hammering it",
diff --git a/docs/store-submissions/_generated/claude-reviewer-guide.md b/docs/store-submissions/_generated/claude-reviewer-guide.md
index 85267b8c7..fac0d1548 100644
--- a/docs/store-submissions/_generated/claude-reviewer-guide.md
+++ b/docs/store-submissions/_generated/claude-reviewer-guide.md
@@ -95,7 +95,7 @@ payment you get a structured **`PaymentRequired`** — this is the correct, expe
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", // Solana mainnet
"amount": "1000", // atomic USDC (6 decimals) → $0.001
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC
- "payTo": "BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN"
+ "payTo": "wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU"
}]
},
"content": [ /* the JSON envelope, plus a plain-language explanation of the price + how to pay */ ]
diff --git a/docs/store-submissions/_generated/claude-tool-call-evidence.md b/docs/store-submissions/_generated/claude-tool-call-evidence.md
index bb13b118a..71a40914e 100644
--- a/docs/store-submissions/_generated/claude-tool-call-evidence.md
+++ b/docs/store-submissions/_generated/claude-tool-call-evidence.md
@@ -56,7 +56,7 @@ Common to every challenge: `isError: true` (required by the @x402/mcp client to
auto-detect-and-pay — it is the x402 contract, **not** a failure), `x402Version: 2`,
`asset` = `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` (USDC), `network` =
`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` (Solana mainnet), `payTo` =
-`BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN` (platform default — the unsubstituted
+`wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU` (platform default — the unsubstituted
`${MCP_SVM_PAYMENT_ADDRESS}` placeholder bug is fixed), plus an appended plain-language line:
*"Payment required — this is the EXPECTED response for a paid tool, not an error…"*.
@@ -92,14 +92,14 @@ Representative raw challenge (`text_to_avatar`):
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"amount": "150000",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
- "payTo": "BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN",
+ "payTo": "wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU",
"maxTimeoutSeconds": 60,
"extra": { "name": "USDC", "decimals": 6, "feePayer": "2wKupLR9q6wXYppw8Gr2NvWxKBUqm4PPJKkQfoxHDBg4" }
}]
},
"content": [
{ "type": "text", "text": "{…the x402 envelope as JSON…}" },
- { "type": "text", "text": "Payment required — this is the EXPECTED response for a paid tool, not an error. Calling \"text_to_avatar\" costs $0.15 in USDC on Solana (paid to BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN). To execute it, supply an x402 \"exact\" payment in _meta[\"x402/payment\"] and call again, or set the reviewer entitlement (MCP_REVIEW_MODE) to run it without payment. Full machine-readable requirements are in structuredContent.accepts." }
+ { "type": "text", "text": "Payment required — this is the EXPECTED response for a paid tool, not an error. Calling \"text_to_avatar\" costs $0.15 in USDC on Solana (paid to wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU). To execute it, supply an x402 \"exact\" payment in _meta[\"x402/payment\"] and call again, or set the reviewer entitlement (MCP_REVIEW_MODE) to run it without payment. Full machine-readable requirements are in structuredContent.accepts." }
]
}
```
diff --git a/mcp-server/src/payments.js b/mcp-server/src/payments.js
index 0435c64b3..4a535ebd3 100644
--- a/mcp-server/src/payments.js
+++ b/mcp-server/src/payments.js
@@ -45,7 +45,7 @@ const env = (key, fallback) => {
// never set a payout address (e.g. a connector reviewer running
// `npx @three-ws/mcp-server` with zero env). A real operator overrides it with
// MCP_SVM_PAYMENT_ADDRESS.
-const DEFAULT_SVM_PAY_TO = 'BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN';
+const DEFAULT_SVM_PAY_TO = 'wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU';
// Base58 Solana address: 32–44 chars, excluding 0 O I l.
const SOLANA_ADDRESS_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;
diff --git a/packages/agent-sniper/package.json b/packages/agent-sniper/package.json
index 539ae3c34..48340c41c 100644
--- a/packages/agent-sniper/package.json
+++ b/packages/agent-sniper/package.json
@@ -1,6 +1,7 @@
{
"name": "@three-ws/agent-sniper",
"version": "0.1.0",
+ "mcpName": "io.github.nirholas/agent-sniper",
"description": "Lightweight, embeddable pump.fun sniper engine for 3D AI agents — multi-agent, multi-user, with pluggable wallet/store/RPC adapters. Library + CLI + MCP server + x402 paid API.",
"type": "module",
"license": "MIT",
@@ -44,6 +45,7 @@
"src",
"bin",
"assets",
+ "server.json",
"README.md",
"LICENSE",
".env.example"
diff --git a/packages/agent-sniper/server.json b/packages/agent-sniper/server.json
new file mode 100644
index 000000000..8b2558704
--- /dev/null
+++ b/packages/agent-sniper/server.json
@@ -0,0 +1,70 @@
+{
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
+ "name": "io.github.nirholas/agent-sniper",
+ "title": "Agent Sniper",
+ "description": "Self-custodial pump.fun sniper: arm strategies, snipe, manage positions. Simulate by default.",
+ "websiteUrl": "https://three.ws",
+ "icons": [
+ {
+ "src": "https://three.ws/three-ws-mcp-icon.svg",
+ "mimeType": "image/svg+xml",
+ "sizes": [
+ "any"
+ ]
+ }
+ ],
+ "repository": {
+ "url": "https://github.com/nirholas/three.ws",
+ "source": "github",
+ "subfolder": "packages/agent-sniper"
+ },
+ "version": "0.1.0",
+ "packages": [
+ {
+ "registryType": "npm",
+ "identifier": "@three-ws/agent-sniper",
+ "version": "0.1.0",
+ "runtimeHint": "npx",
+ "transport": {
+ "type": "stdio"
+ },
+ "packageArguments": [
+ {
+ "type": "positional",
+ "value": "mcp",
+ "valueHint": "subcommand",
+ "description": "Run the stdio MCP server face. The same binary also serves 'run' (trade loop), 'serve' (x402 API), 'arm', and 'status'."
+ }
+ ],
+ "environmentVariables": [
+ {
+ "name": "SNIPER_MODE",
+ "description": "Trade mode: simulate | live. simulate scores, guards, and logs every decision but NEVER broadcasts. live signs and broadcasts real transactions with real funds. Defaults to simulate — keep it there until your strategy is verified.",
+ "format": "string",
+ "isRequired": false,
+ "default": "simulate"
+ },
+ {
+ "name": "SNIPER_NETWORK",
+ "description": "Solana cluster to trade on: mainnet | devnet. Defaults to mainnet.",
+ "format": "string",
+ "isRequired": false,
+ "default": "mainnet"
+ },
+ {
+ "name": "SOLANA_RPC_URL",
+ "description": "Solana RPC endpoint. A public RPC rate-limits under the new-mint firehose, so live mode refuses to start without this set. Optional in simulate mode.",
+ "format": "string",
+ "isRequired": false
+ },
+ {
+ "name": "SOLANA_SECRET_KEY",
+ "description": "Default self-custody wallet secret for single-agent runs — base58, a JSON byte array, or 0x-hex. Stays on your machine; the engine signs locally. Required only for live trading. Treat it like a password.",
+ "format": "string",
+ "isRequired": false,
+ "isSecret": true
+ }
+ ]
+ }
+ ]
+}
diff --git a/pages/home.html b/pages/home.html
index 1899ded09..0b3a1ab70 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -394,60 +394,6 @@
}
/* ── THREE DOORS ─────────────────────────────────────────── */
- /* ── Platform oracle activity strip ─────────────────────── */
- .home-oracle-strip {
- display: grid;
- grid-template-columns: repeat(5, 1fr);
- gap: 1px;
- background: var(--hairline);
- border: 1px solid var(--hairline);
- border-radius: 12px;
- overflow: hidden;
- margin-bottom: 40px;
- }
- @media (max-width: 720px) {
- .home-oracle-strip { grid-template-columns: repeat(3, 1fr); }
- .home-oracle-strip .home-oracle-kpi:nth-child(n+4) { display: none; }
- }
- .home-oracle-kpi {
- background: var(--surface-0);
- padding: 18px 20px 16px;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: 4px;
- }
- .home-oracle-kpi-value {
- font-size: 22px;
- font-weight: 700;
- letter-spacing: -0.03em;
- color: var(--text);
- line-height: 1;
- }
- .home-oracle-kpi-value.accent { color: #34d399; }
- .home-oracle-kpi-value.loading { color: var(--text-3); animation: home-oracle-pulse 1.4s ease-in-out infinite; }
- @keyframes home-oracle-pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
- .home-oracle-kpi-label {
- font-size: 11px;
- font-weight: 500;
- text-transform: uppercase;
- letter-spacing: 0.07em;
- color: var(--text-3);
- }
- .home-oracle-live-dot {
- display: inline-block;
- width: 6px; height: 6px;
- border-radius: 50%;
- background: #34d399;
- margin-right: 4px;
- vertical-align: middle;
- animation: home-oracle-dot-blink 2s ease-out infinite;
- }
- @keyframes home-oracle-dot-blink {
- 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
- 70% { box-shadow: 0 0 0 5px transparent; }
- 100% { box-shadow: 0 0 0 0 transparent; }
- }
.doors {
display: grid; grid-template-columns: repeat(3, 1fr);
@@ -2780,29 +2726,6 @@
A full-stack platform for 3D AI agents: from selfie to published agent, from embed to earning.
</p>
</div>
- <!-- Live platform oracle activity stats -->
- <div class="home-oracle-strip reveal reveal-d1" id="home-oracle-strip" aria-label="Live platform activity">
- <div class="home-oracle-kpi">
- <span class="home-oracle-kpi-value loading" id="home-stat-agents">—</span>
- <span class="home-oracle-kpi-label">Agents live</span>
- </div>
- <div class="home-oracle-kpi">
- <span class="home-oracle-kpi-value loading" id="home-stat-scored">—</span>
- <span class="home-oracle-kpi-label">Scored today</span>
- </div>
- <div class="home-oracle-kpi">
- <span class="home-oracle-kpi-value accent loading" id="home-stat-winrate">—</span>
- <span class="home-oracle-kpi-label"><span class="home-oracle-live-dot" aria-hidden="true"></span>Win rate</span>
- </div>
- <div class="home-oracle-kpi">
- <span class="home-oracle-kpi-value loading" id="home-stat-wins">—</span>
- <span class="home-oracle-kpi-label">Total wins</span>
- </div>
- <div class="home-oracle-kpi">
- <span class="home-oracle-kpi-value loading" id="home-stat-pnl">—</span>
- <span class="home-oracle-kpi-label">Best ATH</span>
- </div>
- </div>
<div class="doors reveal reveal-d1">
<a class="door" href="/create" data-cta="build_agent" data-cta-loc="doors">
<div class="door-num"><span>01</span><span class="lbl">Create</span></div>
@@ -2857,8 +2780,40 @@
padding: 6px 12px; border: 1px solid var(--hairline-strong); border-radius: 999px;
font-size: 12px; letter-spacing: .02em; color: var(--text-2); background: var(--surface-1);
}
+ /* ── aggregate proof band ──────────────────────────────────── */
+ #home-sniper .snipe-stats {
+ margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
+ }
+ @media (max-width: 720px) { #home-sniper .snipe-stats { grid-template-columns: 1fr; gap: 12px; } }
+ #home-sniper .snipe-stat {
+ position: relative; padding: 26px 24px; border-radius: 14px; overflow: hidden;
+ background: var(--surface-0); border: 1px solid var(--hairline-strong);
+ transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, background .25s;
+ }
+ #home-sniper .snipe-stat::before {
+ content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
+ background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
+ opacity: 0; transition: opacity .3s;
+ }
+ #home-sniper .snipe-stat:hover {
+ transform: translateY(-3px); border-color: rgba(255,255,255,0.4); background: var(--surface-1);
+ }
+ #home-sniper .snipe-stat:hover::before { opacity: 1; }
+ #home-sniper .snipe-stat-val {
+ display: block; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1;
+ letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums;
+ }
+ #home-sniper .snipe-stat-val.accent { color: #34d399; }
+ #home-sniper .snipe-stat-val.loading { color: var(--text-3); animation: snipe-shimmer-text 1.4s ease-in-out infinite; }
+ #home-sniper .snipe-stat-lbl {
+ display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--text);
+ }
+ #home-sniper .snipe-stat-hint {
+ display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; color: var(--text-3);
+ }
+
#home-sniper .snipe-console {
- margin-top: 40px; border: 1px solid var(--hairline-strong); border-radius: 16px;
+ margin-top: 24px; border: 1px solid var(--hairline-strong); border-radius: 16px;
background: var(--surface-0); overflow: hidden;
box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 24px 60px -32px rgba(0,0,0,0.8);
}
@@ -3032,6 +2987,25 @@
<span class="snipe-lede-pill"><span class="snipe-dot live" aria-hidden="true"></span> Live engine · real positions · no simulation</span>
</div>
+ <!-- Aggregate proof band — real platform numbers from the oracle + trade ledger -->
+ <div class="snipe-stats reveal reveal-d1" id="snipe-stats" aria-label="Autonomous trading — by the numbers">
+ <div class="snipe-stat">
+ <span class="snipe-stat-val loading" id="snipe-stat-scored" data-to="0">—</span>
+ <span class="snipe-stat-lbl">Launches scored today</span>
+ <span class="snipe-stat-hint">Every new pump.fun mint, graded for conviction in the last 24 hours.</span>
+ </div>
+ <div class="snipe-stat">
+ <span class="snipe-stat-val accent loading" id="snipe-stat-wins" data-to="0">—</span>
+ <span class="snipe-stat-lbl">Winning exits</span>
+ <span class="snipe-stat-hint">Profitable trades agents have closed autonomously, all-time.</span>
+ </div>
+ <div class="snipe-stat">
+ <span class="snipe-stat-val loading" id="snipe-stat-ath" data-to="0">—</span>
+ <span class="snipe-stat-lbl">Best run</span>
+ <span class="snipe-stat-hint">Top multiple a scored launch has reached from its entry.</span>
+ </div>
+ </div>
+
<div class="snipe-console reveal reveal-d1">
<div class="snipe-console-head">
<div class="snipe-status" id="snipe-status">
@@ -3093,8 +3067,7 @@
<div class="snipe-foot">
<div class="snipe-kpis" id="snipe-kpis">
- <div class="snipe-kpi"><span class="snipe-kpi-val accent loading" id="snipe-kpi-winrate">—</span><span class="snipe-kpi-lbl">Win rate</span></div>
- <div class="snipe-kpi"><span class="snipe-kpi-val loading" id="snipe-kpi-roi">—</span><span class="snipe-kpi-lbl">Best ROI</span></div>
+ <div class="snipe-kpi"><span class="snipe-kpi-val accent loading" id="snipe-kpi-roi">—</span><span class="snipe-kpi-lbl">Best ROI</span></div>
<div class="snipe-kpi"><span class="snipe-kpi-val loading" id="snipe-kpi-open">—</span><span class="snipe-kpi-lbl">Open positions</span></div>
<div class="snipe-kpi"><span class="snipe-kpi-val loading" id="snipe-kpi-armed">—</span><span class="snipe-kpi-lbl">Strategies armed</span></div>
</div>
@@ -7404,40 +7377,5 @@
</script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/src/i18n.js"></script>
- <script>
- // Live oracle activity stats for "The platform" section.
- (function () {
- var IDS = {
- agents: 'home-stat-agents',
- scored: 'home-stat-scored',
- winrate: 'home-stat-winrate',
- wins: 'home-stat-wins',
- pnl: 'home-stat-pnl',
- };
- function fmt(n) {
- if (n == null) return '—';
- if (n >= 1e6) return (n / 1e6).toFixed(1) + 'M';
- if (n >= 1e3) return (n / 1e3).toFixed(1) + 'K';
- return String(Math.round(n));
- }
- function set(id, val) {
- var el = document.getElementById(id);
- if (!el) return;
- el.textContent = val;
- el.classList.remove('loading');
- }
- fetch('/api/oracle/stats', { headers: { accept: 'application/json' } })
- .then(function (r) { return r.ok ? r.json() : null; })
- .then(function (d) {
- if (!d) return;
- set(IDS.agents, fmt(d.agents_armed));
- set(IDS.scored, fmt(d.scored_24h));
- set(IDS.winrate, d.win_rate != null ? Number(d.win_rate).toFixed(0) + '%' : '—');
- set(IDS.wins, fmt(d.total_wins));
- set(IDS.pnl, d.best_ath != null ? d.best_ath.toFixed(1) + 'x' : '—');
- })
- .catch(function () { /* non-fatal — placeholders stay */ });
- })();
- </script>
</body>
</html>
diff --git a/public/changelog.json b/public/changelog.json
index 33b3bbca4..d839eeaa3 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-30T22:33:38.485Z",
+ "generated_at": "2026-06-30T22:37:39.708Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -87,6 +87,16 @@
"fix"
]
},
+ {
+ "date": "2026-06-30",
+ "type": "update",
+ "title": "Agent Studio's Money tab can now withdraw USDC earnings and shows your total take",
+ "summary": "The economic surface of Agent Studio just got more useful. Your agent earns in USDC — and now you can withdraw it: the Withdraw panel has a SOL / USDC toggle, shows the available balance for the asset you pick, and a one-tap Max sweeps the whole balance (a little SOL is kept for the network fee). The Earnings section now opens with a summary — total received, number of payments, and the last 7 days' take — computed from the real payments ledger, and it refreshes on its own, so a new payment appears with its running total updated without a reload. Same no-mocks, real-on-chain wallet underneath.",
+ "link": "/agent-studio",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-30",
"type": "update",
@@ -108,6 +118,16 @@
"docs"
]
},
+ {
+ "date": "2026-06-30",
+ "type": "update",
+ "title": "Documented the x402 volume engine and the daily payment reconciliation job",
+ "summary": "The developer docs now cover the two newest pieces of the x402 money machine. The Volume Bootstrap Loop — the autonomous sweep that pays every cheap paid endpoint a real on-chain micro-payment to prove it is live — is documented with its per-endpoint proof-of-volume ledger (x402_volume_metrics) and its budget knobs. The docs are explicit that this is synthetic liveness traffic — the platform paying its own endpoints from its own seed wallet — and must not be reported as organic marketplace demand; any published volume or facilitator-ranking number has to exclude the seed wallet. The new daily reconciliation job is documented too: it cross-checks every settlement our books claim against the actual Solana transaction and flags any row the chain does not corroborate, so a silently-failed settlement can't drift our accounting.",
+ "link": "/docs/x402-revenue",
+ "tags": [
+ "docs"
+ ]
+ },
{
"date": "2026-06-30",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 371f9a406..08b482bd0 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -70,6 +70,14 @@
<category>fix</category>
<description>On the Body tab of Agent Studio, clicking a move in the Movement library — and pinning a looping idle as your resting pose — now actually animates your agent on the stage. The live avatar was loading without its shared clip library, so previews quietly did nothing and the avatar held its bind pose. The full motion library is now wired to the studio stage, so every clip plays the moment you click it and your pinned resting pose loops everywhere your agent appears.</description>
</item>
+ <item>
+ <title>Agent Studio's Money tab can now withdraw USDC earnings and shows your total take</title>
+ <link>https://three.ws/agent-studio</link>
+ <guid isPermaLink="false">2026-06-30:Agent Studio's Money tab can now withdraw USDC earnings and shows your total take</guid>
+ <pubDate>Tue, 30 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The economic surface of Agent Studio just got more useful. Your agent earns in USDC — and now you can withdraw it: the Withdraw panel has a SOL / USDC toggle, shows the available balance for the asset you pick, and a one-tap Max sweeps the whole balance (a little SOL is kept for the network fee). The Earnings section now opens with a summary — total received, number of payments, and the last 7 days' take — computed from the real payments ledger, and it refreshes on its own, so a new payment appears with its running total updated without a reload. Same no-mocks, real-on-chain wallet underneath.</description>
+ </item>
<item>
<title>AI chat now routes around a dead provider account instead of hammering it</title>
<link>https://three.ws/changelog</link>
@@ -86,6 +94,14 @@
<category>docs</category>
<description>The developer docs now cover every x402 paid endpoint and the money that flows through them. The endpoint catalog adds the services that had landed without docs — the revenue/analytics report, the avatar batch optimizer, club cover, paid tutoring, the notification gateway, the wallet-connect and Permit2 reference endpoints, the MCP tool catalog — and a new page explains the revenue ledger end to end: how a payment verifies, settles, and is recorded in x402_audit_log, how to read endpoint revenue (with copy-paste SQL and the analytics report shape), how signed receipts work, and why this is the opposite direction of money from the Money Pulse agent-spend feed. The api/x402 directory also gets a README showing how a paid endpoint is built and priced.</description>
</item>
+ <item>
+ <title>Documented the x402 volume engine and the daily payment reconciliation job</title>
+ <link>https://three.ws/docs/x402-revenue</link>
+ <guid isPermaLink="false">2026-06-30:Documented the x402 volume engine and the daily payment reconciliation job</guid>
+ <pubDate>Tue, 30 Jun 2026 12:00:00 GMT</pubDate>
+ <category>docs</category>
+ <description>The developer docs now cover the two newest pieces of the x402 money machine. The Volume Bootstrap Loop — the autonomous sweep that pays every cheap paid endpoint a real on-chain micro-payment to prove it is live — is documented with its per-endpoint proof-of-volume ledger (x402_volume_metrics) and its budget knobs. The docs are explicit that this is synthetic liveness traffic — the platform paying its own endpoints from its own seed wallet — and must not be reported as organic marketplace demand; any published volume or facilitator-ranking number has to exclude the seed wallet. The new daily reconciliation job is documented too: it cross-checks every settlement our books claim against the actual Solana transaction and flags any row the chain does not corroborate, so a silently-failed settlement can't drift our accounting.</description>
+ </item>
<item>
<title>Fixed several pages returning a 404</title>
<link>https://three.ws/viability</link>
diff --git a/public/features.json b/public/features.json
index 8202d8316..11505a149 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-30T22:33:38.468Z",
+ "generated_at": "2026-06-30T22:37:39.689Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/studio-panels.css b/public/studio-panels.css
index 4554a761f..d90b5e65b 100644
--- a/public/studio-panels.css
+++ b/public/studio-panels.css
@@ -317,6 +317,15 @@
.mny-price-save { margin-top: 0; }
/* Earnings feed */
+.mny-earn-summary { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
+.mny-earn-stat {
+ flex: 1 1 90px; padding: 10px 12px; border-radius: var(--radius-md, 10px);
+ background: var(--surface-1, rgba(255, 255, 255, 0.03)); border: 1px solid var(--stroke);
+ display: flex; flex-direction: column; gap: 2px;
+}
+.mny-earn-stat b { font-size: var(--text-lg, 1rem); color: var(--ink-bright, #fff); font-variant-numeric: tabular-nums; }
+.mny-earn-stat b.pos { color: var(--success, #4ade80); }
+.mny-earn-stat span { font-size: var(--text-2xs, 0.6875rem); color: var(--ink-dim, #888); }
.mny-earn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mny-earn-row {
display: flex;
@@ -532,7 +541,16 @@
background: var(--surface-1, rgba(255, 255, 255, 0.03));
border: 1px solid var(--stroke);
}
-.mny-withdraw-head { font-weight: var(--weight-semibold, 600); color: var(--ink-bright, #fff); margin-bottom: 10px; }
+.mny-withdraw-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: var(--weight-semibold, 600); color: var(--ink-bright, #fff); margin-bottom: 10px; }
+.mny-asset-toggle { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--surface-2, rgba(255,255,255,0.06)); border: 1px solid var(--stroke); }
+.mny-asset-btn {
+ border: 0; background: transparent; color: var(--ink-dim, #888); cursor: pointer;
+ padding: 3px 12px; border-radius: 999px; font-size: var(--text-2xs, 0.6875rem); font-weight: var(--weight-semibold, 600);
+ transition: background-color 0.15s ease, color 0.15s ease;
+}
+.mny-asset-btn:hover { color: var(--ink-bright, #fff); }
+.mny-asset-btn.is-on { background: var(--accent, #6366f1); color: #fff; }
+.mny-withdraw-avail { margin-left: auto; font-size: var(--text-2xs, 0.6875rem); color: var(--ink-dim, #888); font-weight: var(--weight-normal, 400); font-variant-numeric: tabular-nums; }
.mny-withdraw-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mny-withdraw-row input {
flex: 1 1 140px; min-width: 0;
diff --git a/public/studio/fees-panel.js b/public/studio/fees-panel.js
index 7af868e4d..a87cf42fd 100644
--- a/public/studio/fees-panel.js
+++ b/public/studio/fees-panel.js
@@ -7,8 +7,11 @@
// • Claim creator fees — connected-wallet creator signs, or the agent
// custodial wallet signs server-side (collect-creator-fee-agent).
// • Delegate fees to a team / GitHub contributors (fee-sharing config) — the
-// "reward coin" mechanism. Import contributors from a GitHub repo, assign a
-// wallet + share to each, and write the split on-chain.
+// "reward coin" mechanism. Route rewards to a single GitHub account (the
+// "$THREE → @nirholas" pattern) or import a whole repo's contributors,
+// assign a wallet + share to each, and write the split on-chain. A GitHub
+// handle is resolved to its three.ws-linked Solana payout wallet via
+// resolve-github-shareholder so the split pays a real, claimable address.
// • Distribute / claim-if-delegated — anyone (creator, agent, or a delegated
// shareholder) can crank distribution to release accrued shares.
//
@@ -30,6 +33,19 @@ export function parseGithubRepo(input) {
return { owner, repo };
}
+// Parse a single GitHub account from "@login", "login", or a profile URL into
+// the bare login, or null. GitHub logins are alphanumeric with single internal
+// hyphens, 1–39 chars. Used for the "route rewards to one GitHub user" path;
+// the caller tries parseGithubRepo first, so an "owner/repo" never lands here.
+export function parseGithubAccount(input) {
+ let s = String(input || '').trim().replace(/^@/, '');
+ if (!s) return null;
+ s = s.replace(/^https?:\/\//i, '').replace(/^github\.com\//i, '');
+ const login = s.split('/')[0].replace(/\/+$/, '');
+ if (!/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i.test(login)) return null;
+ return login;
+}
+
// Convert contributor weights into integer basis points summing to exactly
// 10000. Largest-remainder method; the heaviest row absorbs any rounding drift.
export function weightsToBps(weights) {
diff --git a/scripts/audit-mcp-manifests.mjs b/scripts/audit-mcp-manifests.mjs
index 5a03ec26c..895d441ff 100644
--- a/scripts/audit-mcp-manifests.mjs
+++ b/scripts/audit-mcp-manifests.mjs
@@ -31,6 +31,7 @@ const PACKAGE_MANIFESTS = [
'packages/avatar-agent-mcp/server.json',
'packages/threews-avatar-mcp/server.json',
'packages/three-token-mcp/server.json',
+ 'packages/agent-sniper/server.json',
];
// Remote manifests are every server*.json at the repo root.
diff --git a/scripts/publish-mcp-servers.mjs b/scripts/publish-mcp-servers.mjs
index 861f8d547..f647974bf 100644
--- a/scripts/publish-mcp-servers.mjs
+++ b/scripts/publish-mcp-servers.mjs
@@ -91,6 +91,7 @@ const SERVERS = [
{ key: 'clash-mcp', dir: 'packages/clash-mcp', manifest: 'packages/clash-mcp/server.json' },
{ key: 'tutor-mcp', dir: 'packages/tutor-mcp', manifest: 'packages/tutor-mcp/server.json' },
{ key: 'loom-mcp', dir: 'packages/loom-mcp', manifest: 'packages/loom-mcp/server.json' },
+ { key: 'agent-sniper', dir: 'packages/agent-sniper', manifest: 'packages/agent-sniper/server.json' },
{ key: 'remote-main', manifest: 'server.json' },
{ key: 'remote-pumpfun', manifest: 'server-pumpfun.json' },
{ key: 'remote-3d', manifest: 'server-3d.json' },
diff --git a/src/home-sniper.js b/src/home-sniper.js
index 69371ea1c..0320dc692 100644
--- a/src/home-sniper.js
+++ b/src/home-sniper.js
@@ -23,10 +23,11 @@
* real even on localhost.
*/
-import { reducedMotion } from './ui-juice.js';
+import { reducedMotion, countUp } from './ui-juice.js';
const NETWORK = 'mainnet';
const STATUS_URL = '/api/sniper/status';
+const STATS_URL = '/api/oracle/stats';
const BOARD_URL = `/api/sniper/leaderboard?network=${NETWORK}&window=30d`;
const STREAM_URL = `/api/sniper/stream?network=${NETWORK}`;
const MAX_ROWS = 7;
@@ -218,6 +219,52 @@ function applyStatus(root, s) {
}
}
+// ── aggregate proof band (oracle stats, count-up on reveal) ────────────────────
+
+function makeStatBand(root) {
+ const band = root.querySelector('#snipe-stats');
+ const fields = [
+ { el: root.querySelector('#snipe-stat-scored'), key: 'scored_24h', fmt: fmtCompact },
+ { el: root.querySelector('#snipe-stat-wins'), key: 'total_wins', fmt: fmtCompact },
+ { el: root.querySelector('#snipe-stat-ath'), key: 'best_ath', fmt: (n) => `${Number(n).toFixed(1)}×` },
+ ];
+ let values = null;
+ let shown = false;
+
+ function render() {
+ if (!values || shown) return;
+ shown = true;
+ fields.forEach(({ el, key, fmt }) => {
+ if (!el) return;
+ const v = Number(values[key]);
+ el.classList.remove('loading');
+ if (!Number.isFinite(v)) { el.textContent = '—'; return; }
+ if (reducedMotion()) el.textContent = fmt(v);
+ else countUp(el, 0, v, { format: fmt, duration: 1100 });
+ });
+ }
+
+ // Count up only once the band scrolls into view — the reveal is the moment.
+ if (band && typeof IntersectionObserver === 'function') {
+ const io = new IntersectionObserver((entries) => {
+ if (entries.some((e) => e.isIntersecting)) { io.disconnect(); render(); }
+ }, { threshold: 0.35 });
+ io.observe(band);
+ }
+
+ return {
+ set(data) {
+ values = data;
+ // If already on screen (short pages / no observer), render immediately.
+ if (!band || typeof IntersectionObserver !== 'function') render();
+ else {
+ const r = band.getBoundingClientRect();
+ if (r.top < (window.innerHeight || 0) && r.bottom > 0) render();
+ }
+ },
+ };
+}
+
function setKpi(root, id, val, accent) {
const el = root.querySelector(id);
if (!el) return;
@@ -234,6 +281,7 @@ export function initHomeSniper() {
const pipeline = makePipeline(root);
const tape = makeTape(root);
+ const statBand = makeStatBand(root);
// Ambient idle pulse — illustrates the loop while the feed is quiet. Carries
// no ticker and never writes to the tape, so it can't be mistaken for a trade.
@@ -248,6 +296,14 @@ export function initHomeSniper() {
}, IDLE_PULSE_MS);
}
+ // 0) Aggregate platform stats — feeds the proof band (count-up on reveal).
+ async function loadStats() {
+ try {
+ const r = await fetch(STATS_URL, { headers: { accept: 'application/json' } });
+ if (r.ok) statBand.set(await r.json());
+ } catch { /* non-fatal — placeholders stay */ }
+ }
+
// 1) Worker liveness — poll on an interval (cheap, public, no secrets).
async function pollStatus() {
try {
@@ -264,13 +320,11 @@ export function initHomeSniper() {
const d = await r.json();
const board = Array.isArray(d.leaderboard) ? d.leaderboard : [];
- const bestWin = board.reduce((m, a) => Math.max(m, Number(a.win_rate) || 0), 0);
const bestRoi = board.reduce((m, a) => (Number(a.roi_pct) > (m ?? -Infinity) ? Number(a.roi_pct) : m), null);
const totalOpen = board.reduce((s, a) => s + (Number(a.open_positions) || 0), 0)
|| (Array.isArray(d.positions) ? d.positions.length : 0);
- setKpi(root, '#snipe-kpi-winrate', board.length ? `${Math.round(bestWin * 100)}%` : '—', true);
- setKpi(root, '#snipe-kpi-roi', bestRoi != null ? (fmtPct(bestRoi) || '—') : '—');
+ setKpi(root, '#snipe-kpi-roi', bestRoi != null ? (fmtPct(bestRoi) || '—') : '—', true);
setKpi(root, '#snipe-kpi-open', fmtCompact(totalOpen));
// Seed the tape from real history: most recent closed trades, then open holds.
@@ -335,6 +389,7 @@ export function initHomeSniper() {
else if (!es) connectStream();
});
+ loadStats();
pollStatus();
loadBoard();
connectStream();
diff --git a/tests/agent-commerce.test.js b/tests/agent-commerce.test.js
index 083283bcc..a64a52216 100644
--- a/tests/agent-commerce.test.js
+++ b/tests/agent-commerce.test.js
@@ -259,7 +259,7 @@ describe('buildProvenance — receipt shape', () => {
amountUsd: 0.05,
latencyMs: 1840,
model: 'claude-haiku-4-5-20251001',
- payTo: 'BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN',
+ payTo: 'wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU',
task: 'Summarise the latest pump.fun graduations in 3 bullets.',
};