Agents
Cinderfox can be driven by an AI, two ways: the Assistant built into the editor, or an agent of your own — Claude Code — working on the game alongside you. Both work through the same tools: they read the scene, add and change things, write scripts, play the game and look at it. Every change the Assistant makes is one ⌘Z; for an agent working on its own, every file it deletes or writes over is kept in the game’s trash.
The Assistant
The Assistant tab, beside the Inspector (or the AI badge in the top bar). Ask in plain words — “pin the score to the top right”, “add an enemy that follows the player”, “make the jump higher” — and it says what it did as it does it.
It runs on your own Anthropic account:
- Get an API key from console.anthropic.com.
- Paste it into Edit → Settings… → Assistant and press Save key. It is kept in your Keychain.
- Choose a model there: Sonnet is right for most work, Opus is the strongest on long jobs at a higher price, Haiku the cheapest. Web access lets it look things up.
Each conversation shows what it has cost under the box. New conversation starts afresh.
Claude Code
Claude Code is an agent that works in a
folder from your terminal. Every game Cinderfox makes has a .mcp.json in
its folder telling Claude Code how to reach the game through Cinderfox.
- Install Cinderfox in Applications and open it once — that is what sets
up the link Claude Code uses
(
~/Library/Application Support/Cinderfox/bin/mcp). - In a terminal, go to your game’s folder and start
claude. It asks whether to use the forge server the folder names — say yes. - Ask for what you want.
With the game open in Cinderfox, you watch the changes arrive in the editor as Claude Code makes them, and can undo them there. With it closed, Claude Code works on the files directly.
Its tools come in sets so they cost an agent less to carry: the everyday
ones are always there, and tile maps and music open when the agent
needs them. Claude Code can ask the game for script_api — the same list
as the Lua reference — so it writes scripts against the
real API.
An older game
A game made with an older Cinderfox (or before it was an app) may name a
link that no longer exists. When Cinderfox opens such a game it puts the
.mcp.json right, and says so.