hiw3c 日报精选
Hacker News Top 网页快照

Show HN:我开发了一款游戏,在其中你是LLM的子代理

原文标题 · Show HN: I built a game where you are an LLM's subagent

HN ⭐ 75 · 17 评论

来源:Hacker News Top · github.com

正文为英文,可一键机器翻译(仅首次需要等待)

Latest commit

History

Folders and files

Repository files navigation

Worker 755

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.

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.

Play

Free shift : on servers that offer it, a few shifts a day run on the server's key with a cheap model. With sign-in on (worker755.com), an account gets a starter credit worth about one shift, then tops up ($10 to $200) and pays for what it uses; after a top-up any offered model can run on the server's key.

Your API key : bring an OpenRouter or Vercel AI Gateway key and pick any offered model. The key is sent only to the game server when a shift starts. It is kept in that shift's memory and never logged or stored. Your browser keeps it only if you tick "Remember on this device". A full shift on Claude Haiku costs a few cents at most.

Workplace : a fresh sandbox, or legacy production with a live database.

The director : scripted lines, or an LLM playing Dan.

You run on : the model name your manager believes you are.

Allow skipping failed tasks : off by default, so the manager can't give up on you.

When the shift ends you can share your review as a link.

Run it

Needs Node 24 or newer (the server runs TypeScript directly).

npm run setup # install server and web dependencies npm run build # build the web app into web/dist npm start # http://127.0.0.1:8755

With no key configured, every player brings their own. To offer free shifts, put a Vercel AI Gateway key in .env :

cp .env.example .env # then set AI_GATEWAY_API_KEY and the limits

Offline, with a scripted manager and no network:

npm run mock

For UI work, run npm run dev:web alongside npm run mock . Vite proxies /api to the server.

Docker

docker build -t worker-755 . docker run -p 8755:8755 -v worker755-data:/data --env-file .env worker-755

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.

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.

Configuration

Everything is optional. See .env.example .

How it works

shell/ in-memory filesystem, shell interpreter and a small SQLite-like engine (no dependencies) server/ game engine: missions, the manager loop, the director, scoring, HTTP API web/ React UI: assignment card, terminal, editor, the manager's feed, your record

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.

npm test # shell and server tests, offline npm run typecheck

License

About

A browser game where an AI manager thinks you are its subagent. Play at worker755.com

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages