economy-sim
Helper: python ~/.claude/hooks/economy_sim.py (in your profile, pure arithmetic: no AI tokens, no editor).
Steps
- Write the planned numbers into
Claude/docs/economy.json:python ~/.claude/hooks/economy_sim.py init Claude/docs/economy.jsoncreates an example that never overwrites an existing file. Replace the example numbers with the game's. python ~/.claude/hooks/economy_sim.py run Claude/docs/economy.json(add--jsonfor the raw result).- Read the flags: a milestone that is never reached or needs more than three visits, a milestone that arrives in the first tenth of a visit (the first one may be early), a generator that is never bought.
- Change one number at a time and run again. Put the final numbers in SPEC.md and the Verse
@editabledefaults.
What it is and is not
The simulated player buys the best-payback generator and never clicks, dies or quits. A milestone counts when the TOTAL EARNED passes its cost. It shows the shape of the curve, not what real players do: confirm with a playtest, and say so in the report ("Verified: simulated; NOT verified: real play").