开发者用 Claude Code mods 打造终端街机:7 款小游戏随工作进度触发
原文标题:I made a seven game arcade that lives above the Claude Code prompt, plus six small tools for long sessions
一位开发者用 Claude Code 的 mods(可在终端绘制的插件)做了 7 款小游戏,让实际工作进度驱动游戏进程:完成一轮对话拉动老虎机拉杆,工具调用失败触发 Atari 风格决斗,每运行一个工具掉落一块俄罗斯方块,编辑文件时章鱼破坏城市。
| I spend most of my day in Claude Code, and at some point I wanted the waiting to feel a bit more alive. When mods came out (plugins that can draw in the terminal), I started with a tiny dragon above the prompt that breathes fire when I commit. Then it got out of hand. There are seven little games now, and my actual work plays them. A finished turn pulls a slot machine lever. A failed tool lets the bug win an Atari style duel. A Tamagotchi gets hungry if I don't do anything for a while. Every tool Claude runs drops a Tetris piece. An octopus wrecks a city while Claude edits files, and in Duck Hunt the good moments shoot the ducks down. It counts non code stuff too, like sending an email or finishing a task list, which I liked because half my sessions aren't coding at all. Each new terminal gets one game at random. I mostly keep the octopus pinned (/arcade octopus), but /arcade rotate cycles them if you can't decide. Along the way I also made six small tools for my own long sessions: a warning before the context fills up, a guard that stops em dashes sneaking into my docs, one that stops two sessions overwriting the same file, and a couple of buttons to ask for a shorter or plainer answer. It's all free and open source, nothing leaves your machine. Built the whole thing with Claude Code. Install commands are in the first comment. Curious what you'd make with mods. submitted by /u/caloripher to r/ClaudeCode[link] [留言] |
来源:Reddit · ClaudeCode / Codex / VibeCoding · reddit.com