---
title: "Unity Unveils CLI: AI Agents Can Now Independently Fix Bugs in Games"
description: "Unity has unveiled Unity CLI — a tool that allows AI agents to work with projects directly via the command line. In the demo, the agent independently found and fixed a collision bug, proving that AI can fully manage game development 🤖🎮"
date: 2026-07-21T12:38:41.000Z
lang: en
url: https://xab.info/en/posts/unity-cli-ai-agents-independent-bug-fixing
tags: [unity, unity-cli, ai-agents, game-development, automation]
publisher: "XAB.info"
---

# Unity Unveils CLI: AI Agents Can Now Independently Fix Bugs in Games

![Unity CLI v1.0.0-beta.1 command line interface featuring the Unity logo and ASCII art, showcasing the new tool for AI agents to automatically debug games.](https://xab.info/media/2026/07/21/unity-cli-ai-agent-avtomatizatsiya-razrabotki/unity-cli-ai-agent-avtomatizatsiya-razrabotki-1.webp)

Unity has introduced a new tool — Unity CLI — which gives AI agents direct access to game projects without the need for the editor's graphical interface. This means that artificial intelligence will be able to do more than just write code; it can fully manage a project: analyze scenes, make changes, and verify the results of its work.

### AI as an Independent Developer

The main feature of the new tool is the agent's ability to act autonomously. In a demonstration shown by the developers, the AI received a report of a critical error: a game character was falling through the floor texture. The agent independently studied the project structure, discovered that the collision component (responsible for object collisions) was disabled, enabled it, and ran a check. Ultimately, the system confirmed that the problem was resolved.

This approach allows the AI agent to go through the full project lifecycle: from receiving a task and analyzing the current state of the game to making changes, building the project, and performing a final verification of the result. This goes far beyond simply generating code snippets.

### Technical Capabilities and Automation

Unity CLI was created with a focus on automating routine development processes. The tool supports structured data output in JSON and TSV formats, making it ideal for integration into continuous integration (CI) systems. In such scenarios, project building and testing are performed automatically, without human intervention.

Additional packages are available to expand functionality:

- **com.unity.pipeline** — allows the CLI to interact with a running Unity editor or a game test build via a local API.

- **Unity eval** — enables the execution of C# code within a running project without the need for recompilation.

The Unity CLI tool is already available to developers for free.