SuperAPI AI Directory

playcal

playcal is an open-source toolkit for AI agents to build games in the Unity and Godot game engines. It provides an "edit-wait-verify" loop that ensures agents act only after the editor is truly ready and checks whether changes took effect. It also supports calibrating bot playtest results against real player data to predict human player pass rates. The current version is pre-alpha (v0.1.0), requires Python 3.10+, and can be installed via pipx. Main features include event validation, report generation, calibration, log analysis, loop control, queries, snapshots, observation, and more, and it provides an MCP server and skill files for AI agents to use.

Open website

About this tool

playcal is an open-source toolkit designed to help AI agents work more reliably in the Unity and Godot game engines. It addresses common failure modes for agents in game editors, such as running tools before compilation or domain reload completes, Play Mode getting stuck because the editor is not focused, modal dialogs blocking, reporting completion without saving prefabs, and a single console read consuming a large number of tokens.

Main capabilities include:

  • Edit-wait-verify loop:loop settle wait until the editor is truly ready (two consecutive ready polls),loop run run the command and check the result, with support for --verify、--expect and --diff to assert whether changes took effect.
  • Event validation and reporting:ingest validate whether game events conform to the schema, support PC0 data blocks in JSONL and free text, and can also convert exports from GameAnalytics or Firebase.report generate per-level pass rates with 95% Wilson intervals.
  • Calibration:calibrate use bot run data and a small human panel to predict human pass rates via random-effects regression, and support pre-registered thresholds as CI gates.
  • Log analysis:logs condense Unity Editor.log or Player.log into key errors, merge identical errors with counts, and extract the primary cause.
  • Queries and snapshots:query extract hierarchy information on demand to reduce token consumption;snap save read results and compare differences, ignoring unstable instanceIds.
  • Observation:observe start Play mode, run for a few seconds, and then generate a summary including console errors, scene changes, and assertion checks, taking screenshots only on failure.
  • Checkpoints:checkpoint save project files using a private git ref, support restoration, and do not affect the current branch.

Usage: requires Python 3.10+, installable via pipx install git+https://github.com/RizgarOzan/playcal . Provides an MCP server (playcal mcp) and skill files (playcal skill --project .) for easy integration by AI agents. All commands support --json output.

Use cases: automated editing and verification when AI agents build games in Unity/Godot, game balance calibration, performance and memory gates in CI, log analysis, and more.

Limitations: currently a pre-alpha version, and some features (such as Unreal support) are not yet implemented. The calibration feature has not yet been tested on a real human panel. The official Unity CLI and community MCP servers provide the basic building blocks, but playcal integrates them into a loop that handles the failures described above.