code-city
Reviewed
at commit 4ea3b1f
An idle city builder that grows as you prompt, where the tokens you spend buy buildings and other Claude Code sessions show up as neighbouring cities.
0 upvotes
Log in to upvote or save- Made by
- verdantran
- Pinned commit
-
4ea3b1f6b65cb8cade1a40298337f36f1941baad - What we checked
-
An idle pixel-art city in a side pane that grows as you prompt, edit files, run commands and launch subagents. It counts these events and your token use but does not read prompt text or command output. It keeps game state in files under ~/.claude/code-city so several sessions share one city, and makes no network calls. Nothing runs until you type /city; /city remove <name|all> empties other saved cities.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since 50f89e5; the rest carries over from the review at that commit. Changes: the mod now stays dormant (no timers, no file access, bookkeeping skipped) until /city is run or the autoOpen option is set, tracked by a new isAwake flag that survives /clear and hot reloads; the startup code moved into a wake() function otherwise unchanged. New /city remove [name|all] lists saved cities or clears one: it overwrites that city's city.json and its inbox ledger files with an empty object through the existing writeSafe helper (inside ~/.claude/code-city, symlinks refused, refuses files that do not carry the plugin's own stamp), deletes matching city:/ backups from $.store, skips the current city and cities with a running session, and leaves the emptied folders on disk. Hooks: session.start, session.end, command.run (/city, map, shop, buy, remove), turn.start, turn.complete, turn.step (token counters only), agent.spawn, prompt.submit (only counts), tool.call for Edit, Write and Bash (counts only), ui.render for the Pane. Runtime calls: $.fs (read, write, stat, list, exists), $.env.get('HOME'), $.session.cwd, $.agent.list, $.store, $.clock, $.ui.blit/open/toast. No network, no process spawning, no eval, no obfuscated code. The unchanged rendering and data files were not re-read beyond the previous review; the claude-code runtime was not reviewed.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
An idle pixel-art city in a side pane that grows as you prompt, edit and run commands. Open it with /city.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/code-city/)