Inspiration

Hedge funds charge 2 and 20 for picks that often don't beat a coin flip. We figured a goldfish could do that just as well, and it would have no fees, a three-second memory and a better attitude. So we gave a goldfish $100,000 of pretend money and real stock prices and let him run a fund over your desktop. His name is Warren Buffish.

What it does

Warren lives in a small aquarium widget in the corner of your screen. Click it and the tank opens full screen, and your webcam fills the space behind the water, so it looks like you're on the other side of the glass.

  • He trades by bumping into things. Stock bubbles (110 real companies with real logos and real Yahoo Finance prices) come out of the tank's oxygen pump. Whatever bubble Warren's nose touches gets traded at the real price. Where he is in the tank sets the odds: near the surface he mostly buys, near the gravel he mostly sells, and further right means bigger trades. No data and no research go into it, so the zero stocks researched before buying is accurate.
  • He has moods and makes bad choices. Bull, bear, zen, coin-flip and YOLO moods swing every minute or two. He short-sells, borrows up to 5x his money, gets margin-called past 6.5x, and gets bailed back to $100k if he drops under $5k.
  • You feed him with your hand. MediaPipe hand tracking runs on your machine. Rub your thumb on your fingers over the tank and food sprinkles in. If you forget him he gets hangry and trades twice as big. Starve him longer and he goes on hunger strike and won't trade at all.
  • He talks. Speech bubbles comment on his trades ("Bought SONY. Bumped it with my face. That counts as due diligence."). He also notices your laptop: "Your RAM is fuller than my bowl", "It's 2:07 AM. Shouldn't you be asleep?". About 40% of his lines come out in Gen Z slang. A small language model running on your machine adds one satirical sentence to his lines.
  • He streams. LIVE mode turns the tank into a fake livestream: viewers with fish-pun names (@krill_issue, @cod_father), floating hearts, gifts that match what's happening (a condolence Whale when he's margin-called), and captions like "Bro got MARGIN CALLED 💀💀💀". He reads the chat and replies, including to what you type.
  • He's measured. The Metrics panel tracks his actual swimming: distance in Olympic pools, tail wags, dollars per tail wag, a heatmap of his favourite spot, and how often he leans left or right. A Portfolio panel shows his P&L, his positions, a risk meter (Calm waters → Shark zone) and a plain-English summary of how the fish is doing.

How we built it

  • Electron + React + TypeScript (electron-vite). The backend has no Electron in it, so it can be tested on its own with Node's test runner.
  • Market: real Yahoo Finance quotes. When the US market is closed, he replays the last real trading week from 1-minute prices, so his money always moves.
  • Swimming: a behaviour state machine based on goldfish research (hover, cruise, forage, explore along the glass, startle, rest), with beat-and-glide motion and limits on how fast he can turn. In a simulated 10 minutes he spends about 50% of the time at rest and about 64% near an edge.
  • Art: hand-drawn SVG scenery with a painted-gouache filter, and Warren drawn on a canvas with a tail and fins that move.
  • Vision: MediaPipe Hand Landmarker in a Web Worker, with the model bundled. Nothing leaves the machine.
  • AI voice: Qwen2.5-0.5B-Instruct through transformers.js / ONNX Runtime in a worker. It runs multithreaded through SharedArrayBuffer, and anything that invents tickers or wanders off topic gets filtered out.
  • Sound: synthesized with Web Audio. There are no sample files.
  • A local HTTP API for feeding him and testing.

Challenges we ran into

  • His money wouldn't move. Small coin-flip trades and one day of tiny price changes kept him stuck at $100k. Leverage, shorts, mood swings and a full week of replayed prices fixed that. In a Monte Carlo test (200 runs) he finished anywhere from $66.8k to $126.8k.
  • Every trade was a sell. Buys used a share of his total money, so his cash ran out and every buy roll turned into a sell. Fixed by basing buy size on the cash he has left.
  • The frame rate fell to 6–12 fps because the hand tracker's GPU readback took about 60% of each second on the main thread. Moving detection into a Web Worker at about 15 detections a second fixed it.
  • Pictures that wouldn't show up: the Content-Security-Policy blocked the inlined SVG images, which left blank bands in the panels.
  • Getting a 0.5B model to be funny. SmolLM2-360M couldn't write satire. Qwen2.5-0.5B can, if the prompt is short and its output is filtered.

Accomplishments that we're proud of

  • A fish that trades real stocks at real prices, with no strategy at all, and loses money in a believable way.
  • Everything runs on your machine: hand tracking, the language model, sound. No API keys and no cloud.
  • Feeding a fish through your webcam actually works.
  • The statistics are real. The Metrics panel checks whether his position in the tank predicts his returns. So far it doesn't (r ≈ 0.13, p ≈ 0.2).
  • Over 24 backend tests, for a joke.

What we learned

  • A goldfish with a coin is a decent stand-in for many active fund managers.
  • Small language models can run inside a desktop app. They need multithreading, a short prompt and a filter on what they say.
  • Watch the main thread. One GPU readback can wreck your frame rate.
  • Basing the fish's swimming on real goldfish behaviour made him far more fun to watch than random movement.

What's next for Warren Buffish

  • A fish tournament: many goldfish, each with its own fund, on a shared leaderboard.
  • Warren vs. the S&P 500, tracked over months.
  • Spoken voice for his lines.
  • Paper-trading API hookups, if a broker ever lets a fish in.
  • A mobile version, with feeding by tapping the screen.
  • Shipping his quarterly letter to shareholders.

Built With

  • claude
  • codex
Share this project:

Updates

Submission history