Claude Code has a full Tamagotchi-style companion pet system called "Buddy." A deterministic gacha system with species rarity, shiny variants, procedurally generated stats, and a soul description written by Claude on first hatch like OpenClaw.
The entire thing lives in buddy/ and is gated behind the BUDDY compile-time feature flag.
The Gacha System
Your buddy's species is determined by a Mulberry32 PRNG, a fast 32-bit pseudo-random number generator seeded from your userId hash with the salt
I admit I'm behind the time with AI coding agents. Is it actually possible to do that effectively in such a short time? Or is this going to be riddled with sloppy bugs?
8 Comments
sudo@programming.dev · 10 pts · 147d
4/1
WhiteRice@lemmy.ml · 7 pts · 147d
It has also been rewritten in python, due to copyright issues.
https://github.com/instructkr/claw-code
GenderNeutralBro@lemmy.sdf.org · 4 pts · 147d
They say this was done with Codex and OpenCode.
I admit I'm behind the time with AI coding agents. Is it actually possible to do that effectively in such a short time? Or is this going to be riddled with sloppy bugs?
WhiteRice@lemmy.ml · 4 pts · 147d
I would say recompiling code with discrete units tests is probably a good use case. It allows for a tight feedback loop with the agent.
You will probably get the mean deliverable. Not industrial unless you think to bake in the requirements.
Canuck@sh.itjust.works · 2 pts · 147d
Yes, I posted that one and also another one in my original description if you're interested; it has a full breakdown of the original source code
copacetic@discuss.tchncs.de · 3 pts · 146d
That a lot of tokens getting consumed in the background presumably on the user budget?
fruitycoder@sh.itjust.works · 2 pts · 147d
Just in time for https://malus.sh/ i guesd
magnetosphere@fedia.io · 1 pts · 147d
Oopsie poopsie