MadAppGang/magus-alpha/tree/main/plugins/claudoom
claudoom
一个 Claude Code 外挂,利用函数钩子、doom-cli 和用于捕获并重绘帧的私有 tmux 服务器,在 Claude Code 面板中运行 Doom 引擎的 WAD,并将画面缩放成终端 Raster。
关于这个 mod
claudoom 是一个 Claude Code 外挂,其行为位于函数钩子模块(hooks/register.tsx)中。它在私有 tmux 服务器中运行 doom-cli,用 tmux capture-pane 读取每一帧,再把画面重绘成适合面板大小的终端 Raster。函数钩子目前属于早期访问功能,默认关闭;从 CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir plugins/claudoom 开始。命令包括 /claudoom install(构建 doom-cli 并下载 Freedoom)、/claudoom install shareware(显示共享软件条款;加入 accept 才会下载)、/claudoom(已安装共享软件时播放共享软件章节,否则播放 Freedoom)、/claudoom freedoom2、/claudoom <file.wad>、/claudoom stop 和 /claudoom uninstall。按键:WASD 或方向键移动,F 开火,E 使用,Enter 或 R 选择,Q 打开菜单,1-7 选择武器;Esc 将按键控制权交还提示,ctrl+x tab 重新接管。需要 tmux、make、curl、tar、unzip 和 shasum。下载内容只会通过 HTTPS 进入 ~/.claude/claudoom,并按照固定摘要验证:doom-cli(GPLv2,基于固定的上游提交构建)、Freedoom 0.13.0(三条款 BSD)以及可选的 DOOM1.WAD 共享软件(id Software 共享软件许可,选择加入)。DOOM 是 ZeniMax 的商标;与 id Software、ZeniMax 或 Anthropic 没有附属关系。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add MadAppGang/magus-alpha claude plugin install claudoom
原文 / README
claudoom
Plays Doom-engine WADs in a Claude Code pane. It is a Claude Code mod: a
plugin whose behaviour lives in a function-hooks module (hooks/register.tsx).
It runs doom-cli in a private tmux
server, reads each frame with tmux capture-pane, and repaints it into a
terminal Raster, scaled to fit the pane.
Function hooks are early access and off by default. Start Claude Code with the flag and the plugin folder:
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir plugins/claudoom
Commands
| Command | Does |
|---|---|
| /claudoom install | Builds doom-cli and downloads Freedoom |
| /claudoom install shareware | Shows the shareware licence terms; add accept to download |
| /claudoom | Plays the shareware episode if installed, else Freedoom; again closes it |
| /claudoom freedoom2 | Plays Freedoom Phase 2 |
| /claudoom <file.wad> | Plays a WAD you own |
| /claudoom stop | Stops the game |
| /claudoom uninstall | Stops the game and removes what the install wrote; files you added yourself stay |
While the pane holds the keys: WASD or ↑↓ move, F fire, E use, Enter or R
select, Q menu, 1–7 weapons. Esc hands the keys back to the prompt; ctrl+x tab
takes them again. It needs tmux, make, curl, tar, unzip and shasum.
It never runs git, so a git config that rewrites GitHub URLs to SSH cannot
break the install.
What is downloaded, and under which licence
Nothing below ships with this plugin. /claudoom install fetches it onto your
machine, into ~/.claude/claudoom, over HTTPS only (a redirect to plain http is
refused), and verifies each download against a pinned digest before anything is
built, kept or run.
The engine's digest covers the extracted source tree, not the tarball, so a
forge re-compressing the same commit does not break the install while a changed
file still does. The command that recomputes it is in hooks/doom.ts, beside
the digest.
| Component | Licence | Source |
|---|---|---|
| doom-cli, a doomgeneric port | GPLv2 | fetched from upstream at a pinned commit, verified against a pinned source-tree digest, then built locally; the mod talks to it only through tmux |
| Freedoom 0.13.0 | 3-clause BSD, notice kept as freedoom-COPYING.txt | the official GitHub release, checked against its signed SHA-256 |
| DOOM1.WAD, the shareware episode (opt-in) | id Software's shareware licence: not free software, no commercial use | id's own doom19s.zip from /idgames, archive and WAD both checked |
The shareware licence (LICENSE.DOC, shipped with id's v1.8 shareware) allows
electronic distribution royalty free and "only in compressed format", and
forbids modifying the WAD (§1), commercial use (§2) and charging anyone for it
without id's prior written consent (§4). That is why the shareware download is
opt-in, shows those terms first, and fetches id's compressed archive rather
than a bare WAD.
DOOM is a trademark of the ZeniMax group of companies. Claude is a trademark of Anthropic. This plugin is not affiliated with or endorsed by id Software, ZeniMax or Anthropic. This is not legal advice.


