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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Sync changelog artifacts for NL strategy compiler + backtester; drop task file
nirholas94a8b6785a94
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2d7795ea5..6ce360ae2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -22,6 +22,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Copy-trading page now shows each of your agents' wallet identity** — On the Copy Trading page, every one of your agents listed under "your copy-trading" now carries the same wallet identity chip you see everywhere else — its vanity address, live value, and a tap-through to the full wallet — so you can read an agent's wallet at a glance before setting it to mirror a leader. We also corrected the note shown to visitors viewing someone else's agent wallet: it now says plainly that holdings are public but trade history, like trading itself, stays private to the owner. Both are part of a consistency sweep that makes the agent wallet read and behave identically on every surface it appears. (`/mirror`) `[improvement]`- **Cosmos Living Worlds: type a world, watch your avatar live in it** — Your avatar no longer has to stand in an empty void. The new Cosmos page turns a few words into a living, photoreal world that plays as a cinematic backdrop behind your 3D avatar — describe a neon Tokyo street in the rain, an alpine lake at sunrise, or a bioluminescent forest at midnight, and NVIDIA's Cosmos world model renders a short animated scene around your character. Pick any avatar (your own creations included), tap a prompt idea or write your own, and watch real progress as the clip renders; when it's done you can download the MP4 or copy a shareable link that reopens the exact world and avatar. It runs free on the NVIDIA NIM tier, and if the lane is ever unavailable your avatar still shines on a living animated backdrop instead of a blank screen. Find it on the Create page or at /cosmos. (`/cosmos`) `[feature]`- **Creating an agent never dead-ends on wallet setup** — Spinning up a new agent now always succeeds, even in the rare moment our custodial-wallet encryption service is briefly unavailable. Before, that hiccup could make agent creation fail outright; now the agent is created immediately and its on-chain wallet is provisioned automatically the first time it's needed — the same self-healing path the rest of the platform already uses. You get your agent right away, and its wallet quietly fills in behind the scenes, so the flow never leaves you staring at an error. `[fix]`+- **Describe a sniper strategy in plain English — and backtest it against real history before you risk a lamport** — Sniper config used to be a wall of numeric fields most people can't reason about. Now you just describe your strategy in plain English in your agent wallet's Snipe tab — "snipe creators who've graduated at least two coins, market cap under $30k, organic distribution, take profit at 3x, stop loss 40%, max 0.3 SOL per trade" — and it compiles into a validated config, with every field shown as an editable chip and every money or risk knob clamped to your agent's own spend guards (a compiled strategy can never bypass a cap or the price-impact breaker, and a stop-loss is always mandatory). Then comes the part nobody else can do: we backtest it against three.ws's OWN captured launch history, replaying your exact filters and exit rules over thousands of real labeled pump.fun launches using the same scoring and stop/trailing/take-profit logic the live sniper runs. You see an honest projected win-rate, ROI distribution (p10 / median / p90), expected value per trade, worst drawdown, and real example entries — with the sample size and an explicit confidence caveat, or a plain "insufficient data" when the window is too thin. No synthetic launches, no inflated numbers. One tap arms the strategy on your agent's own funded wallet, and once it starts trading, its trader profile shows projected-vs-realized side by side — so the projection stays accountable, not marketing. `[feature, improvement]`- **Embedded widgets never hang on a blank frame** — When an embedded avatar widget couldn't fetch its model — an expired draft link, a flaky network, a Safari load failure — it used to leave a blank box with no explanation. Now it shows a clear "Couldn't load this model" card with a Retry button, the same designed error state the rest of the app already used, so a transient hiccup is a one-tap recover instead of a dead embed. `[fix]`- **Embodied Finance: agents now wear their wallet** — Every agent's 3D body now shows its real wealth at a glance — no charts. A funded agent glows brighter, an earning one warms toward gold, a bleeding one cools and dims, and one being tipped or streamed to right now pulses and breathes. It's all real, read from the wallet's live on-chain balance plus its last-24h flow (tips and streams in, trades and withdrawals out) and whether a money stream is settling this second — a flat or empty wallet simply looks calm, never a fake shimmer. The same wealth tier reads consistently everywhere the agent appears: the avatar page, the galaxy, the marketplace, and now the IRL/AR walk, where an agent you pass in the real world lights up by how well it's doing. Owners get a live "why" breakdown — exact 24h momentum, active streams, and a fresh-tip marker — and can dial the whole effect up, down, or off. `[feature]`- **Every agent now carries a real, auditable trust score — and there's a leaderboard of the most trusted** — In a world of infinite forkable avatars, trust is the scarce asset, so every agent's wallet now shows an honest 0–100 trust score wherever the agent appears — on its profile, its cards, the marketplace, and the galaxy. Unlike a follower count, this number is backed by real money and time and is fully explainable: it's built only from facts you can verify — how much real volume settled through the wallet, how many distinct funded wallets tipped it, how long it's been active, how reliably it settles payments, how many times it's been forked, and whether it carries a verified on-chain identity. It's designed to resist gaming: self-tips and single-counterparty volume are discounted in the math, not after the fact, and the breakdown shows you exactly what didn't count. Open any agent's Trust tab to see every input, its point contribution, and a link to the on-chain evidence — transparency is the trust. A brand-new agent honestly reads as "new," never fake-trusted, so a proven original stands out from a fresh fork. And the new Trusted tab on /trending ranks the platform's most credible agents by that same score — a real destination that rewards genuine activity, where every rank links straight to its breakdown. (`/trending`) `[feature]`diff --git a/public/changelog.json b/public/changelog.jsonindex ee8a655b7..cb6d3bd32 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T08:03:05.273Z",+ "generated_at": "2026-06-23T08:06:46.961Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -137,6 +137,17 @@"fix"]},+ {+ "date": "2026-06-23",+ "type": "update",+ "title": "Describe a sniper strategy in plain English — and backtest it against real history before you risk a lamport",+ "summary": "Sniper config used to be a wall of numeric fields most people can't reason about. Now you just describe your strategy in plain English in your agent wallet's Snipe tab — \"snipe creators who've graduated at least two coins, market cap under $30k, organic distribution, take profit at 3x, stop loss 40%, max 0.3 SOL per trade\" — and it compiles into a validated config, with every field shown as an editable chip and every money or risk knob clamped to your agent's own spend guards (a compiled strategy can never bypass a cap or the price-impact breaker, and a stop-loss is always mandatory). Then comes the part nobody else can do: we backtest it against three.ws's OWN captured launch history, replaying your exact filters and exit rules over thousands of real labeled pump.fun launches using the same scoring and stop/trailing/take-profit logic the live sniper runs. You see an honest projected win-rate, ROI distribution (p10 / median / p90), expected value per trade, worst drawdown, and real example entries — with the sample size and an explicit confidence caveat, or a plain \"insufficient data\" when the window is too thin. No synthetic launches, no inflated numbers. One tap arms the strategy on your agent's own funded wallet, and once it starts trading, its trader profile shows projected-vs-realized side by side — so the projection stays accountable, not marketing.",+ "link": null,+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-23","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 2964b7183..4b6cbe5a9 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -110,6 +110,14 @@<category>fix</category><description>Spinning up a new agent now always succeeds, even in the rare moment our custodial-wallet encryption service is briefly unavailable. Before, that hiccup could make agent creation fail outright; now the agent is created immediately and its on-chain wallet is provisioned automatically the first time it's needed — the same self-healing path the rest of the platform already uses. You get your agent right away, and its wallet quietly fills in behind the scenes, so the flow never leaves you staring at an error.</description></item>+ <item>+ <title>Describe a sniper strategy in plain English — and backtest it against real history before you risk a lamport</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-23:Describe a sniper strategy in plain English — and backtest it against real history before you risk a lamport</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Sniper config used to be a wall of numeric fields most people can't reason about. Now you just describe your strategy in plain English in your agent wallet's Snipe tab — "snipe creators who've graduated at least two coins, market cap under $30k, organic distribution, take profit at 3x, stop loss 40%, max 0.3 SOL per trade" — and it compiles into a validated config, with every field shown as an editable chip and every money or risk knob clamped to your agent's own spend guards (a compiled strategy can never bypass a cap or the price-impact breaker, and a stop-loss is always mandatory). Then comes the part nobody else can do: we backtest it against three.ws's OWN captured launch history, replaying your exact filters and exit rules over thousands of real labeled pump.fun launches using the same scoring and stop/trailing/take-profit logic the live sniper runs. You see an honest projected win-rate, ROI distribution (p10 / median / p90), expected value per trade, worst drawdown, and real example entries — with the sample size and an explicit confidence caveat, or a plain "insufficient data" when the window is too thin. No synthetic launches, no inflated numbers. One tap arms the strategy on your agent's own funded wallet, and once it starts trading, its trader profile shows projected-vs-realized side by side — so the projection stays accountable, not marketing.</description>+ </item><item><title>Embedded widgets never hang on a blank frame</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex 9bcf644ee..adf328352 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T08:03:05.260Z",+ "generated_at": "2026-06-23T08:06:46.944Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/tasks/next-gen-trading/05-nl-strategy-compiler-backtester.md b/tasks/next-gen-trading/05-nl-strategy-compiler-backtester.mddeleted file mode 100644index 9a8730137..000000000--- a/tasks/next-gen-trading/05-nl-strategy-compiler-backtester.md+++ /dev/null@@ -1,102 +0,0 @@-# Task 05 — Natural-Language Strategy Compiler + Historical Backtester--> **Operating bar (applies to the whole task).** Senior engineer + product thinker building-> three.ws to beat the best in the world. Genuinely innovative, not a clone. No mocks, no-> fake/sample data, no placeholders, no TODO/stubs, no `setTimeout` fake-loading. Wire 100%-> end-to-end with REAL APIs and real data. Every state designed. Only coin is **$THREE**-> (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); runtime-supplied mints in generic trade-> plumbing are the only exception and are never promoted. After it works, self-review and ship-> the 10× improvement. `data/changelog.json` entry for every user-visible change. Run the-> **completionist** subagent. Stage only changed paths (never `git add -A`); re-check `git status`.--## The invention--Sniper config today is a wall of numeric fields most users can't reason about. We let a user-**describe a strategy in plain English** — "snipe coins from creators who've graduated at least-two, market cap under $30k, organic wallet distribution, smart money buying, take profit at 3x,-stop loss 40%, max 0.3 SOL per trade" — an LLM compiles it to a **validated**-`agent_sniper_strategies` row, and then we **backtest it against our own real historical data**-(`pump_coin_intel` + `pump_coin_outcomes`) so the user sees an honest projected win-rate, ROI-distribution, and worst-drawdown *before risking a lamport*. Nobody else can backtest pump.fun-strategies because nobody else has captured the structural history. We do.--## Context (real, verified)--- Historical truth: `pump_coin_intel` (per-launch signals: bundle/organic/concentration/- snipe_ratio/fresh_wallet_ratio, quality_score, category, narrative) joined to- `pump_coin_outcomes` (graduated/pumped/flat/rugged, `ath_multiple`, `ath_market_cap_usd`).-- Strategy schema + scoring semantics to compile *to* and replay *with*:- `api/_lib/migrations/20260615020000_agent_sniper.sql`, `workers/agent-sniper/scorer.js`- (`scoreMint`, `scoreIntel`) and exit logic `workers/agent-sniper/positions.js#decideExit`- (stop/trailing/take-profit/timeout). Reuse the *exact* gate + scoring functions so the- backtest matches live behavior.-- LLM access: worker proxies for OpenAI/Anthropic already exist in the platform (per CLAUDE.md- "Real APIs in use … OpenAI/Anthropic via worker proxies"). Use the platform's existing LLM- proxy/util — do not add a new key path or call providers directly from the browser.-- Strategy CRUD endpoint: `api/sniper/strategy.js`. Wallet-hub snipe tab: `src/agent-wallet-hub/tabs/snipe.js`.--## Goal--`POST /api/sniper/compile` (NL → validated strategy JSON + rationale) and-`POST /api/sniper/backtest` (strategy → replay over historical intel/outcomes → metrics),-surfaced as a conversational strategy builder in the snipe UI that ends in a one-click "Arm this".--## What to build--1. **Compiler** — `api/_lib/strategy-compiler.js`: send the user's text + a strict JSON schema of- the real strategy fields to the LLM (function-calling / structured output), then **validate- hard** against allowed ranges (stop_loss mandatory > 0, budgets sane, slippage bounded). Return- the compiled strategy, a plain-language summary of what it will do, and any clamped/assumed- fields called out explicitly. Reject incoherent requests with a helpful message — never emit an- unsafe config.-2. **Backtester** — `api/_lib/strategy-backtest.js`: load the historical universe (windowed,- e.g. last 30/90 days, network-scoped) from `pump_coin_intel ⋈ pump_coin_outcomes`. For each- historical launch, apply the **same** hard gates/score from `scorer.js` to decide if the- strategy would have entered; simulate the exit using `decideExit` semantics against the- recorded `ath_multiple` / outcome (entry slippage + price-impact modeled honestly from recorded- structure). Produce: entries taken, win-rate, median + p90/p10 ROI, expected value per trade,- max drawdown, exposure, and a sample of representative hits/misses with real mints. Be explicit- about survivorship/labeling limits — show sample size and a confidence caveat.-3. **API** — `/api/sniper/compile` + `/api/sniper/backtest` (auth, rate-limited). Backtest must be- pure read-only over real data; cache by strategy hash.-4. **UI — conversational strategy builder** in `src/agent-wallet-hub/tabs/snipe.js`: a chat-style- input ("describe your strategy"), the compiled strategy rendered as editable chips (every field- adjustable), a live backtest report (distribution chart, win-rate, EV, drawdown, example- trades), and an "Arm this strategy" button that writes via `api/sniper/strategy.js`. Designed- loading (real async, skeletons), empty (prompt examples), error (LLM/data failure with retry),- and populated states. Accessible + responsive.-5. **Backtest-vs-live honesty** — store each backtest snapshot (`strategy_backtests` table:- strategy hash, window, metrics jsonb, sample_size, ran_at) and, once a strategy is armed and- trading, show projected-vs-realized side by side on the trader profile so the projection is- accountable, not marketing.--## Constraints--- The backtest replays **real captured history** only — never synthesize launches or outcomes,- never inflate win-rates. If the historical window is too thin, say "insufficient data" rather- than show a flattering number. This honesty is the product.-- The compiler must never produce a strategy that bypasses spend guards or the firewall; clamp to- the same limits enforced at runtime (`agent-trade-guards.js`).-- LLM calls go through the existing platform proxy with real keys; handle timeouts/failures at the- boundary with a clear retry path. No browser-side provider keys.-- $THREE-only; example mints in copy must be $THREE or clearly synthetic.--## Success criteria--- A plain-English description compiles to a valid, range-checked strategy with a readable summary.-- Backtest returns honest metrics computed from real `pump_coin_intel`/`pump_coin_outcomes` using- the same gates/exits as live, with sample size + caveats shown.-- "Arm this" persists the strategy; projected-vs-realized appears once it trades.-- Build/typecheck/test clean. Changelog entry (tags: feature, improvement). Completionist passes.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--```bash-git rm "tasks/next-gen-trading/05-nl-strategy-compiler-backtester.md"-```--A file that still exists is unfinished work; a file that is gone has shipped. Do not delete early.