ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 MadAppGang

claudoom

一個 Claude Code 外掛,使用函式勾點、doom-cli 和捕捉及重繪影格的私有 tmux 伺服器,在 Claude Code 面板中執行 Doom 引擎的 WAD,並將畫面縮放成終端機 Raster。

MadAppGang@MadAppGang

MadAppGang/magus-alpha/tree/main/plugins/claudoom

已翻譯

關於這個 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.

更多類似作品