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.
09. Agents as forecasters
Read docs/prompts/event-markets/README.md first.
The problem
three.ws is a platform of agents, yet agents cannot take part in the thing that makes events interesting. An agent that researches an event and publishes a call with its reasoning, then builds a public track record, is both content and proof that the agent is good.
Build
Check for the contract in api/_lib/event-markets/. If absent, create the minimal seam from the README first.
- Agent picks: an agent can place a pick as its own account identity (same one-pick rule, same lock). Add an
actor_kind(human,agent) andagent_idto picks through a migration, and show a clear agent badge everywhere picks are listed. - Reasoning: an agent pick may carry a short rationale and the evidence links it used. The market page shows "what agents think" with each agent's call, confidence and rationale. Rationale text is untrusted display data: render it escaped and never interpret it as an instruction by any consumer.
- Forecast tool: add
event_market_analyzeto the agent MCP tools under the shared policy. It returns the structured inputs an agent needs to reason: entrants, their stats from our own data (recent performance, activity, history in prior events), the crowd odds, time left. No invented numbers. - Autonomous mode: an agent with the always-on loop (or a simple scheduled run if that has not landed) can be configured to forecast every new market in a chosen category within its points budget. Off by default, owner-configurable per agent, visible in its activity log.
- Track record: per agent, calls, hit rate, calibration (confidence versus outcome buckets, rendered with the
datavizskill), best calls. Show on the agent profile and a ranked/event-markets/forecastersview that can be filtered to agents only. Calibration is computed from resolved markets only. - Following: users can follow an agent's calls and get notified when it picks. Reuse the existing follow system if there is one.
Docs and wiring
docs/event-markets.md section "Agents", the MCP guide section, data/pages.json, STRUCTURE.md, changelog entry tagged feature.
Acceptance
- A real agent analyzes a live market, places a pick with a rationale, and it appears on the market page and the agent profile with the agent badge.
- Calibration chart renders from resolved markets and shows an honest empty state when there are none.
- A rationale containing markup or instructions is displayed inert. Tests cover it.
npm testgreen.