
A wild Syntaxon appeared! I made a Claude Code mod that turns failing tests into monster battles
Bugdex 是一個 Claude Code 模組,把測試、lint、build 或 merge 失敗變成怪物對戰遊戲:錯誤類型決定蟲子種類,失敗數量是 HP,免費 context window 是你的 HP,測試轉綠即擊倒蟲子並獲得 XP。只有在對戰期間新增或修正測試才能捕捉蟲子,繞過或修好卻沒動測試則只算 Flakeling。同檔案改三次無進展會進入 Confused 狀態。內含 20 種原創像素美術,終端使用半塊字元、桌面應用使用 SVG,你的生物會從 Patchling 進化。不做網路請求也不呼叫模型,零 token 成本,只讀取工具輸出判斷測試執行與編輯。安裝需 Claude Code 2.1.286+ 並支援 mods。

关于这个 mod
Reddit 貼文由 u/impala_64 發表。Bugdex 是 Claude Code 的遊戲化模組,會監看工具輸出中的測試執行與檔案編輯,把失敗轉成怪物戰鬥:測試、lint、build 或 merge 失敗會出現野生蟲子,物種取決於實際錯誤(TypeError→Typhox、Cannot read properties of undefined→Nullbat、psycopg2 錯誤→Querydile、JavaScript heap out of memory→Heaphant)。失敗次數即蟲子 HP,每次失敗數下降算一次攻擊,免費 context window 是你的生物 HP。測試全綠則蟲子倒下並獲得 XP;必須在戰鬥中撰寫或修正測試才能登錄 Bugdex。本來就綠且沒改任何東西則是 Flakeling(不穩定測試),給 10 XP。同一檔案編輯 3 次以上卻無進展,生物會陷入 Confused 狀態。XP 只來自紅轉綠,無法刷分,失敗也沒有懲罰。目前有 20 種原創像素美術物種,終端以半塊字元呈現、桌面應用為 SVG,自己的生物在 Lv16 進化為 Patchwarden、Lv36 進化為 Patchtitan。模組不發出網路請求也不呼叫模型,token 成本為零,僅讀取工具輸出。安裝需求:Claude Code 2.1.286+ 且支援 mods,指令為 /plugin marketplace add ahmtsahin/bugdex 與 /plugin install bugdex@bugdex,原始碼位於 https://github.com/ahmtsahin/bugdex,另附一個植入 bug 的小型示範專案,約一分鐘即可遇到第一隻 Syntaxon。
安装
安装方法请查看原始来源。
原文 / README
My test suite has a Bugdex now. 🐛 Bugdex is a mod for Claude Code that turns a normal coding session into a monster-battle game. Nothing about the work changes: same files, same tests, same fixes. Bugdex just watches and draws it as a fight. How a fight goes A test, lint, build or merge fails → a wild bug appears . The species comes from the actual error: a TypeError summons a Typhox, Cannot read properties of undefined is a Nullbat, a psycopg2 error is a Querydile, and JavaScript heap out of memory is, naturally, a Heaphant. The number of failures is the bug's HP. Every run with fewer failures is a hit. Your creature's HP is your free context window. The suite goes green → the bug faints and you earn XP. To catch it, a test has to be written or fixed during the fight. No regression test, no Bugdex entry. Green again with nothing changed? It was a Flakeling all along: a flaky test. 10 XP, as a treat. The same file edited 3+ times with no progress → your creature gets Confused . The game's polite way of saying "maybe step in". You can't farm it: XP only comes from red → green, and losing costs nothing. There are 20 species so far, all original pixel art (half blocks in the terminal, SVG in the desktop app), and your own creature evolves from Patchling to Patchwarden at Lv16 and Patchtitan at Lv36. It makes no network requests and no model calls, so it costs zero tokens. It only reads tool output to spot test runs and edits. Install (needs Claude Code 2.1.286+ with mods): /plugin marketplace add ahmtsahin/bugdex /plugin install bugdex@bugdex Repo: https://github.com/ahmtsahin/bugdex There's a tiny demo project with a planted bug, so you can meet your first Syntaxon in about a minute. Which error deserves its own species next? I'm leaning towards a CORS ghost that only haunts browsers. 👻 submitted by /u/impala_64 [link] [comments]


