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 settlewait until the editor is truly ready (two consecutive ready polls),loop runrun the command and check the result, with support for--verify、--expectand--diffto assert whether changes took effect. - Event validation and reporting:
ingestvalidate 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.reportgenerate per-level pass rates with 95% Wilson intervals. - Calibration:
calibrateuse 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:
logscondense Unity Editor.log or Player.log into key errors, merge identical errors with counts, and extract the primary cause. - Queries and snapshots:
queryextract hierarchy information on demand to reduce token consumption;snapsave read results and compare differences, ignoring unstable instanceIds. - Observation:
observestart 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:
checkpointsave 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.