ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 ccdwyer

context-dungeon

실제 Claude Code 세션을 바탕으로 스스로 진행되는 로그라이크입니다. context는 HP이고, 오류는 몬스터를 만들며, 초록색 테스트는 몬스터를 처치하고, 커밋은 보물 상자를 열며, PR은 층 보스가 됩니다.

번역 완료

이 mod 소개

Context Dungeon은 라이브 세션을 자동으로 진행되는 로그라이크로 바꾸는 Claude Code 플러그인입니다. /dungeon으로 열면 남은 context window가 파티 HP가 되고, 실패한 명령과 테스트는 오류 이름을 딴 몬스터를 생성하며, 통과한 실행은 공격이 됩니다(깨끗한 실행은 전리품이 있는 LIMIT BREAK가 됩니다). 실제 커밋은 보물 상자를 열고 pull request는 층 보스가 됩니다. 턴을 끝내면 XP를 얻고, 압축은 모닥불에서 쉬는 것으로 처리되며, context가 바닥나면 Hall of Fame에 기록되는 전멸이 발생합니다. 프롬프트 위의 한 줄 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
원문 / README

Context Dungeon

Context Dungeon demo

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.

Screenshots

| A failing test spawns a monster | A clean run is a LIMIT BREAK, the commit opens a chest | |---|---| | monster | chest |

Commands

  • /dungeon opens the dungeon pane.
  • /dungeon fame opens the Hall of Fame.
  • /dungeon ticker shows or hides the ticker.

Install

/plugin marketplace add ccdwyer/claude-mods
/plugin install context-dungeon@ccdwyer-mods
/reload-plugins

Develop

claude plugin validate .
claude plugin test .

What it hooks

Events this mod hooks, as claude plugin validate reads the module:

  • session.start
  • command.run{command=dungeon}
  • ui.close{id=context-dungeon}
  • tool.call
  • turn.complete
  • session.compact
  • session.end
  • ui.render{component=Pane
  • requestId=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.

Privacy

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.

License

MIT

비슷한 프로젝트