ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
Reddit 貼文 · 發布者 impala_64

野生 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]

更多類似作品