ClaudeMods
☰
EN
● 0 online · Views 0 times
SponsorsSubmit a project
Reddit posts · by impala_64

A wild Syntaxon appeared! I made a Claude Code mod that turns failing tests into monster battles

Bugdex is a Claude Code mod that turns failed tests, lint, builds, or merges into monster battles: the error type determines the bug species, the failure count is its HP, the free context window is your HP, and a green test knocks the bug down and grants XP. You can capture a bug only by adding or fixing a test during the battle; bypassing or fixing the issue without touching tests counts only as a Flakeling. Editing the same file three times without progress causes Confused. It includes 20 original pixel-art creatures, using half-block characters in the terminal and SVG in the desktop app; your creature evolves from Patchling. It makes no network requests and calls no model, costs zero tokens, and only reads tool output to determine test execution and edits. Installation requires Claude Code 2.1.286+ with mods support.

Translated

About this mod

A Reddit post by u/impala_64. Bugdex is a game-like Claude Code mod that watches test execution and file edits in tool output and turns failures into monster battles: a failed test, lint, build, or merge produces a wild bug, with the species determined by the actual error (TypeError→Typhox, Cannot read properties of undefined→Nullbat, psycopg2 errors→Querydile, JavaScript heap out of memory→Heaphant). The number of failures is the bug's HP; each failure count going down is an attack, while the free context window is your creature's HP. When tests all turn green, the bug falls and you gain XP; you must write or fix a test during the battle to register it in the Bugdex. Something that was already green without any edits is a Flakeling (an unstable test), worth 10 XP. If the same file is edited 3 times or more without progress, the creature becomes Confused. XP comes only from red-to-green changes, so it cannot be farmed, and failures carry no penalty. There are currently 20 original pixel-art species: half-block characters in the terminal and SVG in the desktop app. Your creature evolves into Patchwarden at Lv16 and Patchtitan at Lv36. The mod makes no network requests and calls no model, costs zero tokens, and only reads tool output. Requirements: Claude Code 2.1.286+ with mods support. Install with /plugin marketplace add ahmtsahin/bugdex and /plugin install bugdex@bugdex. Source: https://github.com/ahmtsahin/bugdex. A small project with an injected bug is included, so you can meet your first Syntaxon in about a minute.

Installation

See the original source for installation instructions.

Original text / 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]

Similar projects