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: overhaul npm package fleet and redesign agent profiles; update changelog and shared context

fudjia9963ad9da373
diff --git a/prompts/robinhood-chain/00-INDEX.md b/prompts/robinhood-chain/00-INDEX.md
new file mode 100644
index 000000000..50ff04265
--- /dev/null
+++ b/prompts/robinhood-chain/00-INDEX.md
@@ -0,0 +1,42 @@
+# Robinhood Chain prompt pack — execution index
+
+Run order matters: later waves consume earlier waves' output. Within a wave, prompts are
+independent and can run concurrently. Every agent reads `_shared.md` first, then its prompt.
+
+## Wave 1 — foundation (run first, alone)
+| Prompt | Product | Folder |
+|---|---|---|
+| [01-sdk-core.md](01-sdk-core.md) | Core TypeScript SDK (`hoodchain`) | `robinhood/robinhood-chain-sdk/` |
+
+## Wave 2 — SDK consumers (run after 01 completes; all concurrent)
+| Prompt | Product | Folder |
+|---|---|---|
+| [02-sdk-simple-wrapper.md](02-sdk-simple-wrapper.md) | Dead-simple wrapper (`hood-js`) | `robinhood/hood-js/` |
+| [03-sdk-advanced-wrapper.md](03-sdk-advanced-wrapper.md) | Advanced toolkit (`hoodkit`) | `robinhood/hoodkit/` |
+| [04-market-data-api.md](04-market-data-api.md) | Hosted market-data API + x402 | `robinhood/hood-api/` |
+| [05-x402-usdg-rail.md](05-x402-usdg-rail.md) | x402 USDG middleware + facilitator | `robinhood/hood402/` |
+| [06-mcp-servers.md](06-mcp-servers.md) | MCP servers (data + trading) | `robinhood/hood-mcp/` |
+| [11-toolkit-cli.md](11-toolkit-cli.md) | CLI toolkit (`hood-cli`) | `robinhood/hood-cli/` |
+
+## Wave 3 — applications (after wave 2; all concurrent)
+| Prompt | Product | Folder |
+|---|---|---|
+| [07-agent-trading.md](07-agent-trading.md) | Autonomous trading agents | `robinhood/hood-traders/` |
+| [08-agent-launcher.md](08-agent-launcher.md) | Autonomous coin launcher | `robinhood/hood-launcher/` |
+| [09-examples.md](09-examples.md) | Examples gallery | `robinhood/robinhood-chain-examples/` |
+| [12-threews-markets.md](12-threews-markets.md) | three.ws /markets display + purchase | in-repo (`api/`, `public/`) |
+| [13-threews-play.md](13-threews-play.md) | three.ws /play coin worlds + firehose | in-repo |
+
+## Wave 4 — synthesis (last)
+| Prompt | Product | Folder |
+|---|---|---|
+| [10-tutorials.md](10-tutorials.md) | Tutorial site (`learn-robinhood-chain`) | `robinhood/learn-robinhood-chain/` |
+
+## Non-negotiables recap
+- Read `_shared.md` before starting. Facts there override training data.
+- Standalone repos live under `robinhood/<name>/`, MIT © 2026 nirholas, no `git init`, no commits.
+- Prompts 12–13 modify the three.ws app itself — same commit gate: leave uncommitted.
+- Docs sites are static `/docs` folders (Pages deploy-from-branch). No GitHub Actions anywhere.
+- Done = tested + real on-chain evidence + docs + report. See `_shared.md` report format.
+
+Research backing this pack: [PLAN.md](PLAN.md).
diff --git a/prompts/robinhood-chain/01-sdk-core.md b/prompts/robinhood-chain/01-sdk-core.md
new file mode 100644
index 000000000..19f469b36
--- /dev/null
+++ b/prompts/robinhood-chain/01-sdk-core.md
@@ -0,0 +1,68 @@
+# 01 — Core SDK: `hoodchain` (the first real Robinhood Chain SDK)
+
+Read `prompts/robinhood-chain/_shared.md` first. It is binding.
+
+## Mission
+Build the definitive TypeScript SDK for Robinhood Chain at `robinhood/robinhood-chain-sdk/`.
+There is NO official SDK and nothing real on npm — this is a first-mover product and every other
+prompt in this pack builds on it. It must be the library you'd expect from Stripe: typed,
+tree-shakeable, documented, verified against the live chain.
+
+Names: GitHub repo `robinhood-chain-sdk`; npm `hoodchain` (fallbacks: `hoodchain-sdk`,
+`rhchain`). Check availability per `_shared.md`.
+
+## Modules (all real, all verified on-chain)
+
+1. **`client`** — thin factory over viem: `createHoodClient({ chain: 'mainnet' | 'testnet', rpcUrl?, transport? })`
+ returning typed public/wallet clients pinned to `robinhood`/`robinhoodTestnet` from
+ `viem/chains` (peer dep `viem@^2.55.0`). Multicall batching on by default.
+2. **`stocks`** — the Stock Token registry + reads:
+ - Build the REAL registry: scrape `https://docs.robinhood.com/chain/contracts` +
+ cross-check `BankrBot/skills` `known-contracts.json` + verify every address on Blockscout
+ (`/api/v2/tokens/{address}`). Ship it as generated, checked-in data
+ (`src/registry/stock-tokens.json`) with a `scripts/refresh-registry.mjs` regenerator that
+ re-verifies live. Include symbol, name, address, Chainlink feed address, decimals.
+ - `getQuote(symbol)` — Chainlink `latestRoundData()` with staleness guard (configurable
+ `maxAgeSeconds`, typed `StaleFeedError`).
+ - `getMultiplier(symbol)` — ERC-8056 `uiMultiplier()` read with graceful handling when a
+ token predates the interface.
+ - `getPosition(address, symbol)` / `getPortfolio(address)` — multiplier-correct balances and
+ USD valuation (this is the gap every generic tracker gets wrong — it is the SDK's flagship
+ correctness claim; test it explicitly).
+3. **`swap`** — real Uniswap v3 quoting + execution on chain 4663: QuoterV2 `quoteExactInputSingle`
+ (+ multi-hop via USDG/WETH routes), swap calldata building through the canonical router,
+ slippage bounds, deadline handling. Resolve and verify the deployed Uniswap addresses on
+ 4663 from official Uniswap deployment docs/Blockscout — do not assume Ethereum-mainnet
+ addresses. Works for memecoins and Stock Tokens alike; Stock Token swaps emit the eligibility
+ disclosure from `_shared.md` in JSDoc and README.
+4. **`usdg`** — USDG address/decimals/`transfer`/`approve`/`permit` (EIP-2612 if the contract
+ supports it — verify on Blockscout), `formatUsdg`/`parseUsdg`.
+5. **`launchpads`** — watch NOXA + The Odyssey: discover their factory/bonding-curve contracts
+ (research their verified contracts on Blockscout; the sniper-bot repos tagged
+ `robinhood-chain` on GitHub reference them), decode creation + trade events, expose
+ `watchLaunches(onLaunch)` and `getRecentLaunches()`.
+6. **`feed`** — sequencer firehose client for `wss://feed.mainnet.chain.robinhood.com`:
+ reconnecting WebSocket, decoded L2 message stream, plus a filtered
+ `watchTransfers({ token })` helper built on RPC logs for consumers who want simpler events.
+7. **`errors` / `types`** — typed error hierarchy, exhaustive exported types, JSDoc on every
+ public symbol.
+
+## Non-functional requirements
+- ESM + CJS dual build (tsup or tsc), `exports` map, `types`, Node ≥ 20, zero runtime deps
+ besides viem (+ `ws` for Node WebSocket only, optional-peer for browser).
+- Vitest suite: unit (registry integrity — every entry has a Blockscout-verified checksum
+ address; quote math; multiplier math) + integration (`test:live`: real mainnet reads —
+ quote AAPL or whichever tokens exist, read USDG totalSupply; real testnet swap E2E using
+ faucet ETH + faucet TSLA — actually execute it and assert the receipt).
+- `examples/` with 5 runnable scripts (quote, portfolio, swap-testnet, watch-launches, firehose).
+- `docs/` static site per `_shared.md`: landing page with LIVE ticking Stock Token prices read
+ client-side from the public RPC (this is the screenshot), quickstart, full API reference
+ (generated from JSDoc via typedoc into the static site, styled to match), architecture page.
+
+## Done checklist (beyond CLAUDE.md's)
+- [ ] Registry ships ≥ 90 verified Stock Tokens with feeds (or the true on-chain count with
+ evidence if fewer exist — never pad).
+- [ ] `npm test` green; `npm run test:live` green with pasted output; testnet swap tx hash in report.
+- [ ] `npm pack` clean; README quickstart runs verbatim in a fresh dir via `npm i ../robinhood-chain-sdk`.
+- [ ] docs/index.html shows live prices when opened locally.
+- [ ] Report per `_shared.md`, including the chosen npm name and registry token count.
diff --git a/prompts/robinhood-chain/_shared.md b/prompts/robinhood-chain/_shared.md
new file mode 100644
index 000000000..ad6a2bead
--- /dev/null
+++ b/prompts/robinhood-chain/_shared.md
@@ -0,0 +1,101 @@
+# SHARED CONTEXT — read this FIRST, before your prompt file
+
+Every prompt in `prompts/robinhood-chain/` inherits this file. It is ground truth researched and
+verified on 2026-07-11. Do not re-derive these facts; do trust them over your training data.
+
+## The chain (verified facts)
+
+- **Robinhood Chain** — permissionless Arbitrum Orbit L2, settles to Ethereum, blobs DA,
+ **ETH gas**, ~100ms blocks, ERC-4337 supported. Mainnet live since 2026-07-01.
+- **Mainnet chain ID 4663** — RPC `https://rpc.mainnet.chain.robinhood.com`,
+ sequencer feed `wss://feed.mainnet.chain.robinhood.com`,
+ explorer (Blockscout + Pro API) `https://robinhoodchain.blockscout.com`.
+ Alchemy is the recommended paid RPC: `https://robinhood-mainnet.g.alchemy.com/v2/{key}`.
+- **Testnet chain ID 46630** — RPC `https://rpc.testnet.chain.robinhood.com`,
+ explorer `https://explorer.testnet.chain.robinhood.com`,
+ faucet `https://faucet.testnet.chain.robinhood.com/` (drips testnet ETH **and test Stock
+ Tokens**: TSLA, AMZN, PLTR, NFLX, AMD). Chainlink faucet: `https://faucets.chain.link/robinhood-testnet`.
+- **`viem@^2.55.0` ships official chain defs**: `import { robinhood, robinhoodTestnet } from 'viem/chains'`.
+ NEVER hand-roll a chain config. Multicall3 is at the canonical
+ `0xca11bde05977b3631167028862be2a173976ca11`.
+- **Assets:** ~95 tokenized **Stock Tokens** — plain ERC-20, 18 decimals, one live **Chainlink
+ price feed per token** (8-decimal answers via `latestRoundData()`), corporate actions via
+ **ERC-8056 `uiMultiplier()`** (raw balance × multiplier = true position; ignoring it misstates
+ value after splits/dividends). **USDG** (Paxos Global Dollar) is the chain's dollar stablecoin.
+ **No native chain token exists** — anyone claiming otherwise is speculating.
+- **Live DEXes/DeFi:** Uniswap v2/v3/v4 + UniswapX (primary public liquidity), 1inch, Arcus
+ (zero-fee stock-token DEX), Lighter (perps), Morpho (lending). Memecoin launchpads: **NOXA**
+ ("NOXA Fun") and **The Odyssey** — pump.fun-style, graduating to Uniswap v3.
+- **Canonical contract addresses:** Robinhood's registry at `https://docs.robinhood.com/chain/contracts`
+ is the source of truth for Stock Token + USDG addresses. Cross-check via the
+ `BankrBot/skills` GitHub repo (hoodmarkets pack, `known-contracts.json`) and verify each
+ address resolves on Blockscout before shipping it. NEVER invent or placeholder an address.
+- **Data providers already covering the chain:** DefiLlama (`/chain/robinhood-chain`), CoinGecko
+ API (chain data + categories "Robinhood Chain Meme", "Robinhood Chain Stocks Ecosystem"),
+ GeckoTerminal (DEX pools), Dune, Goldsky (subgraphs), Blockscout Pro API.
+- **Docs:** `https://docs.robinhood.com/chain/` (connecting, stock-tokens, deploy, contracts).
+
+## Legal line (bake into every user-facing surface that touches Stock Tokens)
+
+Stock Tokens are tokenized debt securities (issuer: Robinhood Assets (Jersey) Ltd) and **may not
+be offered, sold, or delivered to US persons** (extra limits: Canada, UK, Switzerland). This is
+enforced legally and at front-ends, NOT at the contract level. Consequences for you:
+- Displaying Stock Token data: unrestricted. Do it freely.
+- Any BUY/SWAP flow or agent that acquires Stock Tokens: must carry a clear eligibility
+ disclosure and a config-level geo gate (default: Stock Token acquisition disabled until the
+ operator affirms non-US eligibility). Memecoins and other non-security tokens: no restriction.
+
+## Deliverable conventions (every prompt)
+
+- **Location:** create your project at `robinhood/<repo-name>/` in this workspace. The folder
+ must be a complete, standalone, push-ready repo: own `package.json`, `README.md`, `LICENSE`,
+ `.gitignore`, docs site. Do NOT run `git init` inside it and do NOT `git commit` anything in
+ this workspace — the owner extracts and pushes these folders himself (three.ws commit gate
+ applies to all Robinhood-referencing content).
+- **Authorship & license:** MIT. `LICENSE` says `Copyright (c) 2026 nirholas`. Every README ends
+ with: `Built by [nirholas](https://x.com/nichxbt) · [three.ws](https://three.ws)`. package.json
+ `"author": "nirholas (https://x.com/nichxbt)"`, `"license": "MIT"`.
+- **Docs site = static `docs/` folder, GitHub Pages deploy-from-branch.** NO GitHub Actions —
+ do not create `.github/workflows/`. Hand-crafted vanilla HTML/CSS/JS in `docs/` that works by
+ opening `docs/index.html` locally. The README documents the one-time Pages setup (Settings →
+ Pages → main branch → /docs).
+- **Landing page with LIVE demo where feasible:** read-only chain calls work client-side against
+ the public RPC — so docs landing pages CAN show live data (prices ticking, latest launches,
+ block height) directly on GitHub Pages. Do this; it is the screenshot moment. If the product
+ needs a server (API, facilitator, long-running agent), ship a `Dockerfile` +
+ `deploy` docs for Google Cloud Run (preferred) and Vercel; attempt a real deploy only if
+ credentials are present in the environment, otherwise document the exact commands.
+- **Design bar:** dark theme first, one accent gradient, real typography (system stack or a
+ self-hosted variable font — no CDN fonts on Pages is fine, system stack preferred), designed
+ empty/loading/error states, responsive at 320/768/1440, keyboard accessible, focus rings.
+ The aesthetic reference is Linear/Vercel/Stripe docs — restrained, dense, fast. No emoji soup,
+ no lorem ipsum, no stock illustrations.
+- **npm:** make packages publish-ready (`files`, `exports`, `types`, `sideEffects` set; `npm pack`
+ runs clean) but DO NOT publish — owner holds the token. Document `npm publish --access public`.
+ Before finalizing any npm name, check availability with `npm view <name>` (a 404 = free) and
+ use the fallback names your prompt lists. KNOWN TAKEN: `robinhood-chain-sdk`.
+- **Dependencies between our repos:** depend on the sibling via its npm name in `package.json`
+ plus a `file:../<repo>` install for local development, documented in the README ("until the
+ package is on npm, run `npm i ../robinhood-chain-sdk`"). Never copy-paste sibling source.
+
+## Quality bar (CLAUDE.md hard rules apply in full — the ones agents break most)
+
+1. NO mocks, NO fake data, NO placeholder addresses, NO stub functions, NO TODO comments.
+2. Every address, RPC URL, and ABI you ship must be verified against Blockscout/official docs
+ during the build (curl it, read the contract, prove it).
+3. Real E2E verification before claiming done: unit tests green (`npm test`), plus at least one
+ REAL on-chain read on mainnet 4663 and — for anything that writes — a REAL transaction on
+ testnet 46630 using faucet funds. Paste the commands and outputs in your final report.
+4. Wallet keys: env vars only (`ROBINHOOD_CHAIN_PRIVATE_KEY`), never in code or docs examples
+ with real values, `.gitignore` covers `.env*`. Agents that spend must have hard spend caps
+ and a kill switch (env `MAX_SPEND_*`, SIGINT-safe shutdown).
+5. Documentation is part of the feature: README (what/why/install/quickstart/API), `docs/` site,
+ runnable `examples/` where the prompt asks. Every code sample must actually run.
+6. Self-review before reporting: run the Definition of Done checklist from CLAUDE.md. If a step
+ could not be verified, say so explicitly — never claim it.
+
+## Report format (end of your run)
+
+State: what shipped (file tree summary), names chosen (repo/npm), E2E evidence (commands +
+outputs), what is deploy-ready vs deployed, and any owner actions needed (npm publish, Pages
+toggle, funding, creds). Keep it under a page.
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 7cf6417d6..204591662 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -56,25 +56,6 @@
.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }
.sm-brand:hover { text-decoration: none; }
</style>
-
- <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
- <meta property="og:type" content="website">
- <meta property="og:site_name" content="three.ws">
- <meta property="og:locale" content="en_US">
- <meta property="og:title" content="Sitemap · three.ws">
- <meta property="og:description" content="Human-readable index of every page on three.ws.">
- <meta property="og:url" content="https://three.ws/sitemap">
- <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
- <meta property="og:image:width" content="1200">
- <meta property="og:image:height" content="630">
- <meta property="og:image:type" content="image/png">
- <meta property="og:image:alt" content="Sitemap — three.ws">
- <meta name="twitter:card" content="summary_large_image">
- <meta name="twitter:site" content="@trythreews">
- <meta name="twitter:title" content="Sitemap · three.ws">
- <meta name="twitter:description" content="Human-readable index of every page on three.ws.">
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap"}]}</script>
</head>
<body>
<header class="sm-topbar">
diff --git a/scripts/tmp-postdeploy.mjs b/scripts/tmp-postdeploy.mjs
deleted file mode 100644
index f08baa2fb..000000000
--- a/scripts/tmp-postdeploy.mjs
+++ /dev/null
@@ -1,23 +0,0 @@
-import { chromium } from 'playwright';
-const b = await chromium.launch();
-const routes = ['/characters','/character/latest','/smart-money','/forever','/x402/studio','/markets/digest','/marketplace'];
-for (const r of routes) {
- const p = await b.newPage();
- const errs=[];
- p.on('pageerror',e=>errs.push('EX:'+String(e).slice(0,70)));
- p.on('console',m=>{if(m.type()==='error')errs.push('C:'+m.text().slice(0,70));});
- p.on('requestfailed',rq=>{const f=rq.failure()?.errorText||'';if(/ORB|BLOCKED/i.test(f))errs.push('ORB:'+rq.url().slice(0,50));});
- try{
- await p.goto('https://three.ws'+r,{waitUntil:'domcontentloaded',timeout:45000});
- for(let i=0;i<4;i++){await p.mouse.wheel(0,1400);await p.waitForTimeout(600);}
- await p.waitForTimeout(3500);
- }catch(e){errs.push('NAV:'+String(e).slice(0,60));}
- // dedupe
- const seen=new Map();
- for(const e of errs){const k=e.replace(/[0-9a-f]{16,}/g,'*');seen.set(k,(seen.get(k)||0)+1);}
- const bodyLen = await p.evaluate(()=>document.body.innerText.trim().length).catch(()=>0);
- console.log(`${r}: errors=${errs.length} bodyTextLen=${bodyLen}`);
- [...seen.entries()].slice(0,4).forEach(([k,n])=>console.log(` ${n}× ${k}`));
- await p.close();
-}
-await b.close();