ccdwyer/context-dungeon

実際の Claude Code セッションから自分で進行する roguelike。context が HP、エラーがモンスターを生み、グリーンのテストがそれを倒し、コミットが宝箱を開き、PR がフロアボスになります。
ccdwyer/context-dungeon

Context Dungeon は、ライブのセッションを自動進行する roguelike に変える Claude Code プラグインです。/dungeon で開くと、残りの context window がパーティーの HP として働き、失敗したコマンドやテストはエラー名のモンスターを生み、成功した実行は攻撃になります(クリーンな実行は戦利品付きの LIMIT BREAK)。実際のコミットは宝箱を開き、pull request はフロアボスになります。ターンを終えると XP を獲得し、コンパクションでは焚き火で休み、context が尽きると Hall of Fame に記録される全滅が起きます。プロンプトの上にある 1 行の ticker には HP と現在の敵が表示され、/dungeon ticker で切り替えられます。Mod は観察するだけで、ツール呼び出しをブロックしたり書き換えたりしません。サブエージェントとバックグラウンドコマンドは無視し、コマンドラインも記録しません。/plugin marketplace add ccdwyer/claude-mods と /plugin install context-dungeon@ccdwyer-mods でインストールします。完全にローカルで動作し、ネットワークへアクセスせず、統計を Claude Code のローカルプラグインストアに保存します。MIT ライセンスです。
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add ccdwyer/context-dungeon claude plugin install context-dungeon

A roguelike that plays itself from your real Claude Code session. Open it with /dungeon and watch your work turn into a dungeon crawl.
| In your session | In the dungeon |
|---|---|
| Context window remaining | The party's HP |
| A failing command or test run | A monster spawns, named after the error: TypeError Wraith, ENOENT Imp, Red Test Tonberry. A search that finds nothing (rg, grep, diff) doesn't count |
| Another failure while it's alive | It feeds on the error and grows stronger, up to a cap |
| A passing test run, typecheck or lint | An attack. A clean run is a LIMIT BREAK that slays the foe and drops loot |
| A real commit (from Claude Code's git metadata, not the command text) | A treasure chest |
| A pull request opened | The floor boss appears |
| The pull request merged | The boss falls and the stairs to the next floor open |
| Each finished turn | XP; levels grow the party |
| A compaction | Resting at a bonfire: HP restored, kill streak spent |
| Running out of context | A wipe. The run goes into the Hall of Fame and a new party gathers; it can't wipe again until context frees up |
Runs, best floor, best level and the top five runs are kept across sessions in the Hall of Fame. When the pane is closed, a one-line ticker above the prompt shows HP and the current foe. Press × to hide it, or run /dungeon ticker to toggle it.
The mod only watches. It never blocks or rewrites a tool call, and it ignores subagents and backgrounded commands. HP updates when each turn finishes. The battle log never shows command lines, which can contain secrets.
| A failing test spawns a monster | A clean run is a LIMIT BREAK, the commit opens a chest |
|---|---|
|
|
|
/dungeon opens the dungeon pane./dungeon fame opens the Hall of Fame./dungeon ticker shows or hides the ticker./plugin marketplace add ccdwyer/claude-mods
/plugin install context-dungeon@ccdwyer-mods
/reload-plugins
claude plugin validate .
claude plugin test .
Events this mod hooks, as claude plugin validate reads the module:
session.startcommand.run{command=dungeon}ui.close{id=context-dungeon}tool.callturn.completesession.compactsession.endui.render{component=PanerequestId=context-dungeon}ui.render{component=AbovePrompt}Engine calls it makes: $.clock.now, $.command.register, $.session.usage, $.state.get, $.state.set, $.store.get, $.store.set (via remember), $.ui.open (via openPane), $.ui.resolve, $.ui.toast (via openPane).
A tool.call hook sits in the middle of every tool call: it can see the call, refuse it, or add context to its result. This mod uses that only for the behaviour described above.
It runs entirely on your machine. It sends nothing over the network. Game stats are kept in Claude Code's local plugin store.
The mod collects no analytics or telemetry, and its author receives no data from it.
Full policy: PRIVACY.md.
MIT