# Using frost with Claude Code or Codex

> **Note.** Coldwave is in private development: there is no public download yet. These steps apply from the first public release.

Every game `frost new` makes is ready for an AI coding agent: it comes with the reference
as skills, an `AGENTS.md`, and a server the agent uses to play and inspect your game.
This page shows how to connect Claude Code or Codex.

Put `frost` on your PATH, then start from a working game:

```sh
frost new my-game --template pong
cd my-game
```

The game includes `.claude/skills/ven-core/SKILL.md` and a skill for each reference
page. Claude Code discovers their short descriptions and reads a skill when the task
needs it. Start with `ven-core`; examples for larger pages live in the linked
`examples.md` beside the skill. The agent does not need the engine's source.

`.mcp.json` registers `frost mcp game.toml` as a stdio server named `frost`. Start Claude
Code in this folder and enable the project server when the harness asks. It loads a
separate game session: `game_step` advances live input, `game_seek` plays a recording,
and `frame_capture` shows the result. To share an editor's already-running game,
configure the server to use `frost mcp --join-file PATH` with the editor's join file.

Codex reads the short `AGENTS.md`, which points to the same skills and commands.
To add the MCP server to Codex, run this from the game's folder:

```sh
codex mcp add frost -- frost mcp game.toml
```

Launch Codex in this game's folder when using that registration; `game.toml` is
relative to the server's working directory. Codex can read the installed skill files
directly. To install the skills in its discovery folder, use
`frost skills --out .agents/skills`. This does not register an MCP server.

For an existing game, or after upgrading `frost`, run `frost skills --here` beside
`game.toml`. It installs or updates the skills, `.mcp.json` and `AGENTS.md` and says
which files it wrote, updated, left unchanged or kept because they were edited.
Keep `.ven-skills.json`: it records exactly what `frost` wrote last time. Edited files,
existing files of unknown origin, and deliberate deletions are preserved. If a
configuration file is kept, add the server to it yourself after reviewing it.
`frost skills --out DIR` writes only skills and their update record; plain `frost skills`
uses `.claude/skills`.

Ask for a concrete change: “make the player jump” or “play a sound on hit”. An agent
can find a page with `reference_search {words: "point light"}`, fetch it with
`reference_read {name: "3d"}`, or fetch just `sound.play`. In a shell, the same text
is `frost reference --search point light` and `frost reference sound.play`. A tool's full
contract is `reference_read {name: "protocol.frame.at"}`. Tool names replace dots
with underscores; reference names keep the dots.

After edits, run `frost check game.toml` and `frost test game.toml`. Play the new behaviour
and inspect a shot with `frost run --headless --steps 600 --shot shot.png game.toml`.
