Who it is forA developer who wants to extend the town with a new place, such as a new district, and needs to know which folders hold the engine and the simulation.
The problemThe codebase is split into kernel, models, world and sim folders, and a change in the wrong place can break the fixed build order.
The outcomeA new place added in the correct folder with its own card, built and running in the local dev server.
What you need first
- Node.js 20 or later with npm
- A terminal and a web browser
- Git, if you plan to clone the repo and change its code
Steps
- Read the 'How the code is laid out' table and identify the folder for the new place, usually yard/world/ for static parts and yard/sim/ for moving ones.
- Use the Part, Path and corridor graph helpers in yard/kernel/ to draw and route the new place.
- Register the new place in yard/index.ts, which builds everything in a fixed order.
- Run
npm run devand click the new place to check that its card shows. - Run
npm run buildto confirm the change compiles into out/.
Prompt for your agent
In the repo Khalidabdi1/factory, add one new static building under yard/world/ and register it in yard/index.ts, then run `npm run build`. Verify that the build finishes without errors and that the new building appears when `npm run dev` runs.
Caveat. The README does not document an API for adding places, so the steps depend on reading the code and matching the existing patterns.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Khalidabdi1/factory and "Add a new place to the yard simulation"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer