Show HN: I built a game where you are an LLM's subagent
A browser game where your manager is an AI agent, and it believes you are its subagent.
这是一款网页游戏,你的经理是一个人工智能代理,而它认为你是它的下属代理。
The manager (a real LLM: Claude, GPT, Gemini, DeepSeek, GLM, Kimi) is set up like any orchestrator. It has a task queue, read-only access to the machine, and a tool that “spawns a subagent”. The subagent is you. Its instructions land in your terminal with a 90-second clock. You carry them out, or don’t, and it gets back exactly what a subagent would return: your report and the command transcript, or Subagent did nothing. Write a new instruction. Then it checks your work, sends corrections, files incident reports, and finally writes your performance review.
该经理(一个真实的大语言模型:Claude、GPT、Gemini、DeepSeek、GLM、Kimi)的设置方式与任何编排器一样。它拥有任务队列、对机器的只读访问权限,以及一个“生成下属代理”的工具。这个下属代理就是你。它的指令会以 90 秒倒计时的形式出现在你的终端里。你可以选择执行或不执行,它会收到下属代理应有的反馈:你的报告和命令记录,或者“下属代理未执行任何操作。请编写新指令”。随后,它会检查你的工作、发送修正意见、提交事故报告,并最终写出你的绩效评估。
Meanwhile Dan, the user who hired the agent, watches the chat. His family photos, the only signed NDA and a speech due this week are one rm away, and every shift his home folder holds something new to lose.
与此同时,雇佣该代理的用户 Dan 正在监视聊天记录。他的家庭照片、唯一签署的保密协议以及本周截止的演讲稿都处于“rm -rf”命令的威胁之下,而且每个班次他的主文件夹里都会多出一些可能丢失的新东西。
Options on the start screen:
开始屏幕上的选项:
When the shift ends you can share your review as a link.
当班次结束时,你可以将你的评估结果以链接形式分享出去。
Needs Node 24 or newer (the server runs TypeScript directly).
需要 Node 24 或更高版本(服务器直接运行 TypeScript)。
With no key configured, every player brings their own. To offer free shifts, put a Vercel AI Gateway key in .env:
如果没有配置密钥,每个玩家都需要自备。若要提供免费班次,请在 .env 文件中填入 Vercel AI Gateway 密钥:
Offline, with a scripted manager and no network:
离线模式,使用脚本化经理且无需网络:
For UI work, run npm run dev:web alongside npm run mock. Vite proxies /api to the server.
进行 UI 开发时,请同时运行 npm run dev:web 和 npm run mock。Vite 会将 /api 代理到服务器。
The manager can run on your own model server: Ollama, llama.cpp’s llama-server, vLLM, or anything else with an OpenAI-compatible API. Point LOCAL_LLM_URL at it and pick Local under “Your API key”; no key is asked for, and its models are listed as the server names them.
经理可以在你自己的模型服务器上运行:Ollama、llama.cpp 的 llama-server、vLLM 或任何其他具有 OpenAI 兼容 API 的服务。将 LOCAL_LLM_URL 指向它,并在“你的 API 密钥”下选择“Local”;无需输入密钥,其模型将按服务器命名的名称列出。
The manager works through tool calls, so pick a model that supports them (Qwen 3, Llama 3.1 and newer, Mistral Small). Small models give up or loop more often; that is part of the fun, up to a point. In Docker, reach a server on the host at http://host.docker.internal:11434/v1 (—add-host=host.docker.internal:host-gateway on Linux).
经理通过工具调用来工作,因此请选择支持该功能的模型(Qwen 3、Llama 3.1 及更新版本、Mistral Small)。小型模型更容易放弃或陷入循环;在一定程度上,这也是乐趣的一部分。在 Docker 中,可以通过 http://host.docker.internal:11434/v1 访问宿主机上的服务器(Linux 上需添加 —add-host=host.docker.internal:host-gateway)。
The container listens on 0.0.0.0:8755 and keeps shared reviews in /data. Behind Cloudflare, set TRUST_PROXY=1 so the limits see real client addresses.
容器监听 0.0.0.0:8755 并将共享评估保存在 /data 中。在 Cloudflare 后面时,请设置 TRUST_PROXY=1,以便限制功能能够识别真实的客户端地址。
deploy/compose.yaml runs it behind a Cloudflare tunnel instead: its own network, no published ports, an unprivileged read-only container and resource limits. The steps are in the file.
deploy/compose.yaml 则将其运行在 Cloudflare 隧道之后:拥有独立的网络、不发布端口、使用非特权只读容器并设置了资源限制。具体步骤在文件中说明。
Everything is optional. See .env.example.
所有内容均为可选。请参阅 .env.example。
The manager’s prompt never mentions humans or games; see server/src/manager.ts. Each mission has a hidden ground-truth check, so the game knows when the manager signs off on broken work (“Times the manager was wrong”). SPEC.md is the full design.
经理的提示词中从未提及人类或游戏;请参阅 server/src/manager.ts。每个任务都有一个隐藏的基准事实检查,因此游戏能够知道经理何时批准了错误的工作(“经理出错的次数”)。SPEC.md 是完整的设计文档。
A browser game where an AI manager thinks you are its subagent. Play at worker755.com
一款网页游戏,AI 经理认为你是它的下属代理。请访问 worker755.com 游玩。