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.

Pose presets retarget to loaded avatars: real-avatar tests, debug cleanup, changelog

nirholas98b7d9781818
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1b51530c1..3d59137f7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Installing a marketplace skill now actually teaches your agent** — Skills from the marketplace used to install into the void: you clicked Install, a badge flipped, and nothing changed. Now every knowledge skill you install loads its playbook into your agent's context in every signed-in chat, so an install visibly changes how your agent answers (install whale-wallet-tracking and ask about a token's whales to see it). Skill pages also explain what installing does up front and, once installed, hand you a 'Chat with your agent' shortcut. Developers can pull their full installed set, playbooks included, from GET /api/skills?installed=true. (`/marketplace?tab=skills`) `[feature, improvement]`
- **Marketplace: submitting an agent no longer means typing a form** — The Submit Agent flow on /marketplace is now a chooser instead of a wall of text fields. The primary path sends you to the guided agent builder (3D avatar, persona, publish); a second path lists the agents you already have, with drafts publishable in one click right from the dialog; the old manual form and JSON import stay available behind an Advanced toggle. The featured hero is more compact so search and listings are visible without scrolling, the signed-out My Agents view got a proper call to action, and related agents on detail pages now show their 3D thumbnails. (`/marketplace`) `[improvement]`
- **Object Library props now place straight into AR Studio** — The CC0 Object Library and AR Studio are now wired together. Every prop card on /objects has an AR button that opens the model in AR Studio, ready to place in your room through your camera. Inside AR Studio, a new Objects tab in the model tray lets you search all the CC0 props by name or category and tap any of them into your scene alongside your forged models. (`/ar/studio`) `[improvement, feature]`
+- **Pose presets now land correctly on every loaded avatar** — Picking a pose preset in the Animation Studio (Arms up, Salute, Hands on hips, and the rest) used to garble loaded 3D avatars: arms stuck out sideways, salutes pointed at nothing, and some Mixamo-rigged characters vanished from the scene entirely. The presets were written for the built-in mannequin and were being copied raw onto avatars whose skeletons rest in a different stance. Presets are now retargeted onto each avatar's own skeleton, whether it was rigged in a T-pose, an A-pose, or anything in between, so a cheer is a cheer on every character. Resetting a pose no longer shrinks or hides certain avatars either. (`/pose`) `[fix]`
- **Sniper agents learn to skip painted charts** — The trading fleet gained a defense against a trap experienced traders spot instantly but bots miss: a coin with a big opening candle that then stairsteps up on a handful of wallets with no sellers, a chart painted to lure momentum buyers. Analysis of about 62,000 labeled launches showed the tell in data: a coin with a genuine two-sided market (many distinct buyers and real sellers during its first minute) wins around 52% of the time, versus roughly 12% for a one-sided painted rise. The agents now score every coin market for this, and the AI-judge agents receive the market shape in their prompt so they read the chart like a human instead of judging a coin blind on its name. The AI agents were also changed to observe a launch for its first ~90 seconds before deciding, so the market has revealed whether it is real before any money moves. (`/sniper/experiments`) `[feature, improvement]`
- **Sniper Experiments: every wallet and every decision, in the open** — The /sniper/experiments scoreboard now shows each strategy's live wallet: its address, a Solscan link, and its real-time SOL balance, plus the shared master wallet that auto-funds the fleet. Every arm also links straight to its Reasoning Ledger, a tamper-evident, on-chain-anchored record of every single buy decision: the exact market data and rationale the agent acted on at entry, and once the trade closes, the real outcome (win or loss, by how much). Nothing is hidden or summarized away; wins and losses are published with the same detail. (`/sniper/experiments`) `[feature, improvement]`
- **Snipers that tune themselves from their own results** — The sniper fleet now has an intra-arm optimizer that learns from each strategy's real trading record and proposes bounded adjustments to its own knobs (take-profit, trailing/stop, hold time, entry-quality, size). It runs in shadow mode by default, recording exactly what it would change without touching anything, and in apply mode only tunes strategies that opted in, logging every change to the agent's tamper-evident reasoning ledger. It pairs with the portfolio evolution engine (which reallocates budget across arms): the optimizer tunes each arm inward, evolution decides which arms get capital. Neither can touch a safety field. (`/docs/agent-sniper`) `[feature]`
diff --git a/data/changelog.json b/data/changelog.json
index 36ae4a170..44c67766f 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws, 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-07-21",
+ "title": "Pose presets now land correctly on every loaded avatar",
+ "summary": "Picking a pose preset in the Animation Studio (Arms up, Salute, Hands on hips, and the rest) used to garble loaded 3D avatars: arms stuck out sideways, salutes pointed at nothing, and some Mixamo-rigged characters vanished from the scene entirely. The presets were written for the built-in mannequin and were being copied raw onto avatars whose skeletons rest in a different stance. Presets are now retargeted onto each avatar's own skeleton, whether it was rigged in a T-pose, an A-pose, or anything in between, so a cheer is a cheer on every character. Resetting a pose no longer shrinks or hides certain avatars either.",
+ "tags": [
+ "fix"
+ ],
+ "link": "/pose"
+ },
{
"date": "2026-07-21",
"title": "The sniper learned what a rug actually looks like, from its own data",
diff --git a/public/changelog.json b/public/changelog.json
index 81190fa34..d16aef773 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-21T13:35:43.269Z",
+ "generated_at": "2026-07-21T14:08:45.687Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -78,6 +78,16 @@
"feature"
]
},
+ {
+ "date": "2026-07-21",
+ "type": "update",
+ "title": "Pose presets now land correctly on every loaded avatar",
+ "summary": "Picking a pose preset in the Animation Studio (Arms up, Salute, Hands on hips, and the rest) used to garble loaded 3D avatars: arms stuck out sideways, salutes pointed at nothing, and some Mixamo-rigged characters vanished from the scene entirely. The presets were written for the built-in mannequin and were being copied raw onto avatars whose skeletons rest in a different stance. Presets are now retargeted onto each avatar's own skeleton, whether it was rigged in a T-pose, an A-pose, or anything in between, so a cheer is a cheer on every character. Resetting a pose no longer shrinks or hides certain avatars either.",
+ "link": "/pose",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-07-21",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index a2259519d..887a70634 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -62,6 +62,14 @@
<category>improvement</category>
<description>The CC0 Object Library and AR Studio are now wired together. Every prop card on /objects has an AR button that opens the model in AR Studio, ready to place in your room through your camera. Inside AR Studio, a new Objects tab in the model tray lets you search all the CC0 props by name or category and tap any of them into your scene alongside your forged models.</description>
</item>
+ <item>
+ <title>Pose presets now land correctly on every loaded avatar</title>
+ <link>https://three.ws/pose</link>
+ <guid isPermaLink="false">2026-07-21:Pose presets now land correctly on every loaded avatar</guid>
+ <pubDate>Tue, 21 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Picking a pose preset in the Animation Studio (Arms up, Salute, Hands on hips, and the rest) used to garble loaded 3D avatars: arms stuck out sideways, salutes pointed at nothing, and some Mixamo-rigged characters vanished from the scene entirely. The presets were written for the built-in mannequin and were being copied raw onto avatars whose skeletons rest in a different stance. Presets are now retargeted onto each avatar's own skeleton, whether it was rigged in a T-pose, an A-pose, or anything in between, so a cheer is a cheer on every character. Resetting a pose no longer shrinks or hides certain avatars either.</description>
+ </item>
<item>
<title>Sniper agents learn to skip painted charts</title>
<link>https://three.ws/sniper/experiments</link>
diff --git a/public/features.json b/public/features.json
index 0677fbe92..ea95fd5af 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-21T13:35:43.249Z",
+ "generated_at": "2026-07-21T14:08:45.675Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/scripts/debug-michelle-tmp.mjs b/scripts/debug-michelle-tmp.mjs
deleted file mode 100644
index 77453e538..000000000
--- a/scripts/debug-michelle-tmp.mjs
+++ /dev/null
@@ -1,29 +0,0 @@
-import fs from 'node:fs';
-import { Vector3 } from 'three';
-import { parseGltfJson, buildBoneGraph } from '/workspaces/three.ws/tests/_helpers/glb-bone-graph.js';
-import { makeGltfRig, poseFromMannequinPreset } from '/workspaces/three.ws/src/pose-rig.js';
-import { getPresetById } from '/workspaces/three.ws/src/pose-presets.js';
-
-const buf = fs.readFileSync('/workspaces/three.ws/public/avatars/michelle.glb');
-const doc = parseGltfJson(buf);
-const graph = buildBoneGraph(doc);
-const scene = graph.root || graph.scene || graph;
-console.log('graph keys:', Object.keys(graph));
-scene.updateMatrixWorld(true);
-scene.traverse((n) => { if (n.isSkinnedMesh && n.skeleton) n.skeleton.calculateInverses(); });
-const rig = makeGltfRig(scene);
-console.log('rig?', !!rig, 'bones:', rig ? rig.getBones().length : 0);
-if (!rig) process.exit(1);
-scene.updateMatrixWorld(true);
-const posOf = (k) => rig.getNode(k)?.getWorldPosition(new Vector3());
-console.log('bind RightArm world pos', posOf('RightArm'));
-rig.applyPose(poseFromMannequinPreset(getPresetById('hands-up').pose));
-scene.updateMatrixWorld(true);
-for (const { key, node } of rig.getBones().slice(0, 30)) {
- const q = node.quaternion;
- const bad = [q.x, q.y, q.z, q.w].some((v) => !Number.isFinite(v));
- if (bad) console.log('NaN quat on', key);
-}
-console.log('posed RightArm world pos', posOf('RightArm'));
-console.log('posed RightForeArm world pos', posOf('RightForeArm'));
-console.log('posed Hips world pos', posOf('Hips'));
diff --git a/src/pose-studio.js b/src/pose-studio.js
index a0f109aee..21f27b356 100644
--- a/src/pose-studio.js
+++ b/src/pose-studio.js
@@ -407,7 +407,6 @@ function boot() {
state.rig.dispose?.();
}
state.rig = rig;
- window.__rig = rig; // TEMP DEBUG
scene.add(rig.root);
state.selectedBone = null;
clearIKHandles();
diff --git a/tests/pose-rig-glb-presets.test.js b/tests/pose-rig-glb-presets.test.js
index 5931e00c8..a117bd975 100644
--- a/tests/pose-rig-glb-presets.test.js
+++ b/tests/pose-rig-glb-presets.test.js
@@ -21,10 +21,16 @@
* leaves the rig's live transforms untouched (agent-screen tween path).
*/
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
import { Bone, Euler, Group, Object3D, Quaternion, Vector3 } from 'three';
import { describe, it, expect } from 'vitest';
import { MannequinRig, makeGltfRig, poseFromMannequinPreset } from '../src/pose-rig.js';
import { PRESETS, getPresetById } from '../src/pose-presets.js';
+import { loadBoneGraph } from './_helpers/glb-bone-graph.js';
+
+const REPO = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+const avatarPath = (n) => path.join(REPO, 'public/avatars', `${n}.glb`);
const MANNEQUIN_TO_CANONICAL = {
pelvis: 'Hips', spine: 'Spine', chest: 'Spine2', neck: 'Neck', head: 'Head',
@@ -237,6 +243,35 @@ describe('GLB FK slider semantics (delta from rest)', () => {
});
});
+describe('presets on committed real avatars', () => {
+ // michelle.glb / xbot.glb are Mixamo-derived: their skins' inverse-bind
+ // matrices are in a cm-scale frame, so a resetPose built on skeleton.pose()
+ // collapses the avatar to 1% scale (it vanished in the studio). Rest must
+ // come from the node transforms at load, never from the skin's bind frame.
+ for (const name of ['michelle', 'cz', 'xbot', 'realistic-male']) {
+ it(`${name}.glb keeps its size and raises its arms for the cheer preset`, () => {
+ const { root } = loadBoneGraph(avatarPath(name));
+ const rig = makeGltfRig(root);
+ expect(rig, name).toBeTruthy();
+ root.updateMatrixWorld(true);
+ const hipsBefore = rig.getNode('Hips').getWorldPosition(new Vector3());
+ rig.applyPose(poseFromMannequinPreset(getPresetById('hands-up').pose));
+ root.updateMatrixWorld(true);
+ const hipsAfter = rig.getNode('Hips').getWorldPosition(new Vector3());
+ // The figure must stay where (and how big) it was — no bind-frame collapse.
+ expect(hipsAfter.distanceTo(hipsBefore), name).toBeLessThan(0.05 * Math.max(1, hipsBefore.length()));
+ for (const side of ['Left', 'Right']) {
+ expect(limbDir(rig, `${side}Arm`, `${side}ForeArm`).y, `${name} ${side}`).toBeGreaterThan(0.85);
+ }
+ // And resetPose returns to the loaded stance, same scale.
+ rig.resetPose();
+ root.updateMatrixWorld(true);
+ expect(rig.getNode('Hips').getWorldPosition(new Vector3()).distanceTo(hipsBefore), name)
+ .toBeLessThan(1e-6 + 0.001 * hipsBefore.length());
+ });
+ }
+});
+
describe('localTargetsForPose', () => {
it('returns targets only for posed bones and leaves the rig unposed', () => {
const rig = makeGltfRig(makeBoundScene());