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

一个位于提示符上方的 Claude Code 空闲服务器农场游戏插件:守护进程机器人收集数据,而你的实际工作会提升产量。
pierregoutheraud/claude-mods/tree/main/plugins/server-farm

server-farm 是一个用函数钩子编写的 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