
I made a seven game arcade that lives above the Claude Code prompt, plus six small tools for long sessions
Reddit 使用者 caloripher 分享了一套 Claude Code mod:在提示列上方繪製七款小遊戲(吃角子老虎、Tamagotchi、俄羅斯方塊、章魚破壞城市、Duck Hunt 等),會依回合完成、工具失敗、工具執行等事件觸發,並用 /arcade 指令切換或固定遊戲。另外附帶六個長時段工作用的小工具,例如 context 將滿警告、破折號守門、避免兩個 session 覆寫同一檔案,以及要求更簡短或更白話回答的按鈕。作者表示全部免費開源、資料不離開本機,安裝指令放在第一則留言。

关于这个 mod
這則 Reddit 貼文介紹一套 Claude Code 外掛,利用可繪製終端介面的 mod 機制,在提示列上方即時顯示七款小遊戲。遊戲由 Claude Code 的實際工作事件驅動:完成一回合拉動吃角子老虎拉桿、工具呼叫失敗時進行雅達利風格對決、閒置太久 Tamagotchi 會餓、每次工具執行掉落一塊俄羅斯方塊、編輯檔案時章魚破壞城市,Duck Hunt 則在順利時擊落鴨子。非程式類事件(如寄信或完成待辦清單)也會計入。每個新終端隨機分配一款遊戲,可用 /arcade octopus 固定,或用 /arcade rotate 輪換。同綑的六個小工具有:context 快滿時的警示、阻止破折號進入文件的守門器、避免兩個 session 同時覆寫同一檔案的防護,以及要求更短或更白話回答的按鈕。作者強調免費開源、資料不離開本機,並表示安裝指令位於第一則留言。
安装
安装方法请查看原始来源。
原文 / README
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 [link] [comments]


