
野生の Syntaxon が現れた!失敗するテストをモンスター対戦に変える Claude Code mod を作りました
Bugdex は Claude Code mod です。テスト、lint、ビルド、merge の失敗をモンスター対戦に変え、エラーの種類で虫の種族、失敗数で HP、無料のコンテキストウィンドウで自分の HP を決め、テストがグリーンになると虫を倒して XP を得ます。対戦中にテストを追加または修正した場合だけ虫を捕獲できます。テストに触れずに回避または修正した場合は Flakeling として扱われます。同じファイルを 3 回編集して進展がないと Confused になります。オリジナルのピクセルアートを 20 種収録し、ターミナルではハーフブロック文字、デスクトップアプリでは SVG を使います。生物は Patchling から進化します。ネットワーク通信もモデル呼び出しも行わず、トークンコストはゼロで、テスト実行と編集を判断するためにツール出力だけを読みます。インストールには mods 対応の Claude Code 2.1.286+ が必要です。

この mod について
u/impala_64 による Reddit 投稿です。Bugdex は Claude Code のゲーム化 mod で、ツール出力に含まれるテスト実行とファイル編集を監視し、失敗をモンスター対戦に変えます。テスト、lint、ビルド、merge が失敗すると野生の虫が現れ、実際のエラーによって種族が決まります(TypeError→Typhox、Cannot read properties of undefined→Nullbat、psycopg2 エラー→Querydile、JavaScript heap out of memory→Heaphant)。失敗回数が虫の HP で、失敗数が減るたびに攻撃になります。無料のコンテキストウィンドウは自分の生物の HP です。テストがすべてグリーンになると虫が倒れ、XP を獲得します。Bugdex に登録するには、対戦中にテストを書き換えるか修正する必要があります。最初からグリーンで何も編集していない場合は Flakeling(不安定なテスト)となり、10 XP を得ます。同じファイルを 3 回以上編集しても進展がなければ、生物は Confused 状態になります。XP は赤からグリーンになったときだけ得られるため、稼ぎ続けることはできず、失敗によるペナルティもありません。現在はオリジナルのピクセルアート種族が 20 種あり、ターミナルではハーフブロック文字、デスクトップアプリでは SVG で表示します。生物は Lv16 で Patchwarden に、Lv36 で Patchtitan に進化します。この mod はネットワーク通信もモデル呼び出しも行わず、トークンコストはゼロで、ツール出力だけを読みます。要件は mods 対応の Claude Code 2.1.286+ です。/plugin marketplace add ahmtsahin/bugdex と /plugin install bugdex@bugdex でインストールできます。ソースは https://github.com/ahmtsahin/bugdex です。bug を埋め込んだ小さなプロジェクトも付属し、約 1 分で最初の 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]


