pierregoutheraud/claude-mods/tree/main/plugins/server-farm

位於提示列上方的 Claude Code 放置型伺服器農場遊戲外掛:守護程式機器人收集資料,而你的實際工作會提高產量。
pierregoutheraud/claude-mods/tree/main/plugins/server-farm

server-farm 是一個以函式 hook 撰寫的 Claude Code 外掛,會在提示列上方的區域繪製放置型遊戲。伺服器機架會填滿資料,守護程式機器人負責收集;你可以把資料花在更多機架、守護程式、超頻,以及更高階的硬體層級(Raspberry Pi、Tower、Blade、GPU rig)。你的實際工作會推動遊戲:Claude 的工作階段完成時會觸發流量高峰(產量 x2,持續 60 秒,最多疊加到 5 分鐘),測試通過會獎勵 30 秒的產量,工具失敗則會讓一個機架離線,直到守護程式修好它。離開時農場仍會以一半速率持續賺取產量,最多 8 小時;同時開啟多個工作階段時,其中一個會執行農場,其他工作階段則鏡像它並轉送各自的事件。指令包括開啟商店的 /farm(按鍵 1-4 購買)、/farm stats、/farm hide 與 /farm show。先用 /plugin marketplace add pierregoutheraud/claude-mods 加入市集,再用 /plugin install server-farm@pierre-mods 安裝。mod 只會監看工作階段與工具呼叫,以偵測失敗/測試;它會加入自己的斜線指令、繪製提示列上方的區域,並把存檔放在自己的外掛儲存空間,不會連網、存取檔案或啟動程序。claude plugin validate 會列出每個 hook 與呼叫。
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add pierregoutheraud/claude-mods claude plugin install server-farm
Mods for Claude Code, in the terminal and in the desktop app's Code tab: little games and toys that live above the prompt, written as plugins of function hooks.

An idle game in the band above the prompt. Racks of servers fill up with data, daemon bots walk over to collect it, and you spend it on more racks, more daemons, overclocking and better hardware (Raspberry Pi, Tower, Blade, GPU rig).
Your real work is the weather:
npm test, vitest, pytest and the like) pay 30 seconds of productionThe farm keeps earning while you are away, at half rate for up to 8 hours. With several sessions open, one runs the farm and the others mirror it and send it their events.
Commands: /farm opens the shop (keys 1 to 4 buy), /farm stats, /farm hide, /farm show.
![]()
A pixel slime that hatches from an egg and grows into a teen and then a slime king as you work. It glances around while Claude works, cheers when tests pass, frowns when a tool fails and falls asleep when you leave.
Commands: /pet, /pet pat, /pet name <name>, /pet hide, /pet show.
Both mods draw the band above the prompt, so install one at a time.
/plugin marketplace add pierregoutheraud/claude-mods
/plugin install server-farm@pierre-mods
They watch turns and tool calls (to see whether a call failed or ran tests, never to change it), add their slash command, draw the band above the prompt and keep their save in their own plugin store. No network, no file access, no processes. claude plugin validate plugins/<name> lists every hook and call a mod makes.
Load a mod straight from this folder; it hot-reloads when you save:
claude --plugin-dir plugins/server-farm
To load it in every session, the desktop app included, add its absolute path to CLAUDE_CODE_PLUGIN_DIRS in the env block of your Claude Code settings.json. Do not run a dev copy and an installed copy of the same mod at once.
Run the checks before committing (CI runs the same script):
./scripts/check.sh
It validates the marketplace and each plugin, runs each plugin's tests with claude plugin test, and type-checks a plugin once Claude Code has loaded it, which is when its types land in .claude-plugin/types/ (gitignored).
The function hooks API is early access and can change between Claude Code releases. These mods were built and tested on Claude Code 2.1.287, and CI runs against the latest release on every push.
Bump version in the plugin's .claude-plugin/plugin.json, commit, tag and push. Users get it with /plugin marketplace update pierre-mods.
.claude-plugin/marketplace.json the marketplace: its name and the plugins it lists
plugins/<name>/
.claude-plugin/plugin.json the plugin's manifest
hooks/hooks.json names the hooks module
hooks/register.tsx the hooks: events in, drawing out
hooks/*.ts pure logic and drawing, tested directly
types/index.d.ts the plugin's $.state contract
tests/ claude plugin test runs these
scripts/check.sh validate, test, type-check