ClaudeMod
ModsGamesWrites / Shell

Unity Watch

A live Unity pane for Claude Code. See your editor's state, test runs with progress and ETA, builds, console errors and git while Claude works on your game. Missing the Unity CLI, the Pipeline package or the right Unity version, or Unity is closed? It fixes it in one click. Run tests, build Android, recompile or stop a run from the pane.

Install· Claude Code 2.1.330+
$claude plugin marketplace add TheoGegout/claude-unity-watch
$claude plugin install unity-watch@claude-unity-watch
Run claude plugin validate to auditGuide →
Access & PermissionsWrites / Shell

Writes files, executes local shell processes, or programmatically drives Claude.

Runs shell commandsReads filesReads env varsReads mod statePersists local stateDraws UI

Statically scanned from hooks & source. Learn how to audit

ThéoAdded 1 months ago

Unity Watch

License: MIT Claude Code 2.1.287+

A Claude Code mod that keeps your Unity editor in view while Claude works on your game: whether the editor is up, compiling or in Play mode; test runs with progress, ETA and history; builds; console errors; and git. When something is missing (the Unity CLI, the Pipeline package, the project's Unity version, or the editor isn't open), the pane says so and fixes it in one click.

Unity Watch docked beside the transcript: the project, four status cards (Unity ready, tests, project with 2 changes, build available), recent activity and the action block with Run all tests, Build Android and Recompile

Install · What you see · Use · What it can reach · Configure · Troubleshooting

Install

Inside Claude Code (2.1.289 or later):

/plugin marketplace add TheoGegout/claude-unity-watch
/plugin install unity-watch@claude-unity-watch
/reload-plugins

Then, in a Unity project, type unity (or /unity).

From the terminal, or from a clone
claude plugin marketplace add TheoGegout/claude-unity-watch
claude plugin install unity-watch@claude-unity-watch

Or load it straight from a clone, for one session:

git clone https://github.com/TheoGegout/claude-unity-watch
claude --plugin-dir ./claude-unity-watch

Mods are an early-access Claude Code feature and their API can change between releases. If something breaks, see Troubleshooting.

What you see

PartShows
Headerthe editor's state: ready, compiling, in Play, starting, not responding, closed
Projectname, branch, changed files, last commit and its age
Unity cardthe editor version, the Unity CLI version, whether the Pipeline package is there
Tests cardthe running suite with a progress bar and the time left (from the longest run seen), or the last result, and the last 12 runs as ■
Project cardbranch and commit, console errors
Build cardthe build in progress, or the newest .apk/.aab in Builds/ with its size and age
Details▸ Unity / Tests / Project / Build open each card's details: paths, the last runs with their dates, the last commit, console errors, the last build's result
Failed testseach failed test by name, after a run with failures
Recent activitywhat happened and when: project loaded, Unity opened or closed, tests started and finished, builds, failed compiles, the buttons you pressed
Action blockthe one thing that matters now and its button: install what is missing, open Unity, stop a run, unblock a stuck runner, or run the tests and build when all is ready
Unity closedStartingReady
The pane with Unity closed: the action block says Unity is closed and offers Open UnityThe pane while Unity starts: the action block says Unity is startingThe pane once Unity answers: all systems ready, with Run all tests, Build Android and Recompile

It draws with your Claude Code theme's own colours, light or dark, in the desktop app, VS Code, the phone and the terminal. Where the surface draws SVG it adds icons; the terminal shows the same pane in text.

The pane refreshes itself: the editor, tests and build every 5 seconds, git, the console and the toolchain every 30. Toasts tell you when a run or a build ends, a compile fails, or the editor stops answering, and the status line carries a one-line summary.

Use

CommandDoes
unity or /unityopens the pane (in a Unity project; elsewhere unity is a normal prompt)
ButtonKeyDoesShown when
Install the Unity CLIruns Unity's official install scriptthe CLI is missing
Install Unity <version>installs the exact editor version the project asks forit is not installed
Install the Pipeline packageadds com.unity.pipeline, which the CLI drives the editor throughthe project lacks it
Open Unityostarts the right editor on this project; never a second onethe editor is closed
Run all testststarts the PlayMode (or EditMode) suitethe editor is up and idle
Build Androidbbuilds Builds/<project>.apkthe editor is up and idle
Recompilerrefreshes assets and recompiles scripts, for edits made while Unity was in the backgroundthe editor is up and idle
Stop the testsscancels the running suite; press twice within 5 seconds, so a stray click never throws away a long runa suite is running
Unblockucancels a stuck runner, reopens the first build scene, deletes leftover InitTestScene filesthe runner is stuck, or test scenes stayed behind

While a suite or a build runs, nothing that could disturb it is offered: no recompile (a domain reload under the test runner can take the editor down), no second run, no build.

What it can reach

Everything stays on your machine.

ItWhat
readsthe project's ProjectSettings/ProjectVersion.txt, Packages/manifest.json and editor log; lists Assets/ (leftover test scenes) and Builds/
runs, on its ownunity --version, unity editors --installed, unity cmd editor_status / test_status / build_status / console / recompile_status, git status, git log -1, and tasklist or pgrep to tell a busy editor from a closed one
runs, when you press a buttonthe editor itself, unity install, unity pipeline install, Unity's install script (downloaded from Unity's CDN), and the unity cmd behind each button
storesper project: the last 12 test results and the longest run's length, for the ETA

It never sends your project anywhere, never runs tests or builds by itself, and calls no model. claude plugin validate . prints exactly what it hooks and calls.

Configure

In /config, or under pluginConfigs["unity-watch"].options in settings.json:

OptionDefaultMeaning
languageautoen, fr, or your system's language
openOnStarttrueopen the pane when a session starts in a Unity project
statusLinetruethe one-line summary in the status line
testModeplaymodewhich suite Run all tests starts: playmode or editmode
buildTargetAndroidoff hides the build button

Troubleshooting

The pane says the folder is not a Unity project. Start Claude Code in the project's folder (the one with Assets/ and ProjectSettings/) or a folder right inside it.

"Not responding". The editor is busy (importing, a dialog open) or stuck. The pane checks that a Unity process still holds the project before it says "closed", and comes back by itself once the editor answers.

Tests stuck on "running". The pane notices a run that claims to run while the editor sits idle with a silent log, and offers Unblock.

Something else. Look in the transcript for a dim line starting unity-watch:; it names the hook that failed. Please open an issue with it, your claude --version and your Unity version.

Windows is the most tested. macOS and Linux paths (the CLI under ~/.unity or ~/.local/bin, opening the editor, the install script) are supported but less exercised.

How it works

The pane talks to the editor through the Unity CLI and the com.unity.pipeline package, which runs a small server inside the editor.

FileHolds
hooks/register.tsxthe hooks, the polling, the buttons' actions and the drawing
hooks/core.tsevery decision as pure functions: how a reading merges with what the buttons wrote meanwhile, what each card and the action block say, which buttons a state allows, how the CLI's and git's answers parse
hooks/strings.tsevery word, in English and French
hooks/art.tstheme colour keys and the SVG icons
types/index.d.tsthe state contract
tests/22 tests: the pure decisions, and the pane drawn over a fake Unity project (ready, closed, running tests, failed tests, missing CLI, package or editor) on the terminal and the desktop

State lives in $.state atoms and every read is merged over defaults, so a missing or older field never breaks the pane.

Develop

claude --plugin-dir .            # load it; edits hot-reload
claude plugin validate .
claude plugin test .
npx -p typescript tsc -p .       # after the first load, which writes .claude-plugin/types/

See CONTRIBUTING.md. Changes are listed in CHANGELOG.md.

License

MIT

Details

Sub-category
Games
License
MIT
Surfaces
terminal
Added
1 months ago
Last synced
1 day ago
Events hooked
session.startcommand.runprompt.submitui.render

Weekly Mods Digest

Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.

More Mods

Claude Flightdeck
ModsSecurity

Claude Flightdeck

Live agent dashboard pane with context consumption, advisor timeline, permission verdicts, and subagent swimlanes.

Reads Files
by Sam Casella
GitHub
Terminal Browser
ModsInterface

Terminal Browser

Browse documentation, GitHub pull requests, and web pages in a split terminal pane directly beside your Claude Code conversation.

Network
by Zenbu Labs
GitHub
Agent Flow
ModsAutomation

Agent Flow

Interactive visual tree of the active session's subagents, background tasks, and teammates beside the transcript via /flow.

UI Only
by Charlie
GitHub

Command Palette

Search for a command to run...