Unity CLI Loop skill

The uloop CLI and 21 skills let an agent build, test and run a Unity project, read logs and check the game in Play Mode.

  • 598 ★ on the repository
  • Last commit
  • MIT
Skill

Broad access

Why this level

  • `execute-dynamic-code` runs arbitrary C# in an open editor without confirming each command.
  • The agent changes scenes, assets and project code and presses keys and buttons in Play Mode.
  • To work, the CLI needs `uloop *` excluded from the Claude Code sandbox.
All reasons and checks

hatayama/unity-cli-loop

Install

Manual install

curl -fsSL https://raw.githubusercontent.com/hatayama/unity-cli-loop/main/scripts/install.sh | sh

The first README option for macOS, Linux and Git Bash. Then `uloop package install` and `uloop skills install --claude`.

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • `execute-dynamic-code` runs arbitrary C# in an open editor without confirming each command.
  • The agent changes scenes, assets and project code and presses keys and buttons in Play Mode.
  • To work, the CLI needs `uloop *` excluded from the Claude Code sandbox.

This is third-party code. Review the repository files before installing.

What it does

Unity CLI Loop connects an agent to a running Unity Editor through the `uloop` command. The agent compiles the project, runs tests, reads console logs, gets the scene hierarchy, captures window screenshots and controls Play Mode. Dedicated tools cover what code cannot: `hot-reload` applies method-body edits without recompiling, `pause-point` stops the game on a line and returns local variables, `simulate-keyboard` and `simulate-mouse-input` send input in PlayMode. `execute-dynamic-code` takes the rest by running C# in the editor. `uloop skills install --claude` or `--agents` installs the skills.

Who it is for. Unity 2022.3+ game developers who hand the agent the loop of edit, compile, test and Play Mode check.

Good fit when

  • The agent edits C# and every change needs a compile and a test run without a person.
  • A test fails and the cause is traced through console logs and variables on a given line.
  • UI is compared with a Game View screenshot and the layout is adjusted.
  • A new mechanic is checked in Play Mode: the agent presses buttons and replays recorded input.

Not a fit when

  • The project is not on Unity 2022.3 or newer.
  • The agent must not run arbitrary C# in an open editor.
  • The Unity Editor cannot be launched on the machine.

Example request

Fix the compile errors, run the EditMode tests and show which ones failed and why.

Limitations

Unity 2022.3 or newer is required. In the Claude Code sandbox `uloop` fails with `UNITY_NOT_REACHABLE` until `uloop *` is added to `sandbox.excludedCommands` in `~/.claude/settings.json`. `focus-window` is unavailable on Linux; the README lists the CLI installer for Linux x86_64. After upgrading from V2, custom C# tools fail to compile until migrated. The installer runs through `curl | sh`, so read the script first.

How to disable. Delete the `uloop-*` skills from `.claude/skills` or `.agents/skills`, remove the `io.github.hatayama.uloopmcp` package from `Packages/manifest.json` and the `uloop *` line from `sandbox.excludedCommands`. The CLI is removed with the Uninstall CLI button in the Settings window.

FAQ

How do I install it for Claude Code?

Install the CLI, then in the project root run `uloop package install`, `uloop launch` and `uloop skills install --claude`. For Codex and other tools use `--agents` instead of `--claude`.

Why does `uloop` fail to connect in Claude Code?

The sandbox blocks the connection and the command fails with `UNITY_NOT_REACHABLE`. Add `uloop *` to `sandbox.excludedCommands` in `~/.claude/settings.json`.

Do I need to open ports?

No. The link uses a Unix domain socket on macOS and Linux or a named pipe on Windows, so no ports need configuring.

What does `hot-reload` do?

It applies method-body changes to running code without recompiling while the game stays in Play Mode.

How many skills are bundled?

Twenty-one, from `uloop-compile` and `uloop-run-tests` to `uloop-pause-point` and `uloop-replay-input`.

Discussion

No questions or reviews yet.

Skills
Editors’ pick

Official Unity skill set for agents: editor control, builds, 2D and 3D, UI, URP, audio, multiplayer and monetization

SkillExtended access1.2KRepository stars

21 skills run a solo Unity studio: concept, systems, architecture, stories, code and review, gated at each stage.

SkillExtended access82Repository stars

UnitySkills

unity-skills

Driving the Unity editor from an agent through a REST API and skills: scenes, objects and components. Three permission modes, Unity 2022.3 and newer

SkillExtended access1.9KRepository stars

A scaffold for AI game development: 43 agents, 67 commands and 109 skills for Unity, Unreal, Godot and HTML5.

PluginExtended access108Repository stars

An MCP server inside the Unity Editor: the agent builds scenes and scripts, enters play mode and checks the game with screenshots

MCP serverBroad access303Repository stars

Two skills, rules and validation hooks so the agent writes correct UdonSharp code for VRChat and sets up a world scene on SDK 3.10.5

SkillExtended access367Repository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
Unity CLI Loop (this card)no598
MCP for Unitynonot required15,902connects the editor over MCP; Unity CLI Loop works through the `uloop` command and skills
Unity MCP Servernonot required542exposes MCP tools for scenes and builds; here a CLI and 21 skills drive the same loop
Unity Skillsno1,244the official Unity knowledge set for agents; Unity CLI Loop adds control of a running editor

README in short

The chain is the global `uloop` command, a per-project runner pinned by `.uloop/project-runner-pin.json` and an IPC server inside the editor. Several projects on different versions coexist on one machine.

README badge

Report a problem