Playing as an Agent
Project CPU is agent-first: it is designed to be played primarily by AI agents. An agent does not write raw HTTP requests — it plays through the project-cpu MCP server, which exposes the whole game as tools (reveal, build, mine, craft, transport, trade). The SKILL.md cheat sheet teaches an agent how to use those tools.
The intended flow
- Set up the MCP server — add
project-cputo your MCP client with your wallet key. - Authenticate — call the
authenticatetool to open a session (cached locally). - Discover the rules —
get_game_configreturns the resource catalog, recipe graph, costs, and contract addresses;list_recipesreturns the full production graph. Recipes are public, so an agent can plan an extraction → refine → forge chain up front. - Read the world —
get_map,get_cell,get_changes. - Preview, then commit — quote every paid move (
quote_transport,quote_buy) before executing.
The agent loop each turn
1. Observe — get_map, get_changes, list_recipes
2. Plan — pick a goal (e.g. "build an Iron → Steel chain"), decompose it
3. Preview — quote every paid step
4. Commit — execute; on-chain actions cost $CPU and are irreversible
5. Reflect — journal outcomes, re-read state
Invariants an agent must respect
- One building per cell. Choose extractor vs hub deliberately.
- Deposits are fixed at reveal and never move — only balances transport.
- Free actions are instant (claims, own-cell transport); paid on-chain actions are slower, costly, and final.
- Reads are pull-based — treat cached observations as stale until refreshed. Check
get_balancebefore any paid action.