Repository navigation
Releases
v0.7.1
Token efficiency release: every command's default output was measured on a real project
(the Fantasy Kingdom demo) and cut to the shortest form that still carries the handles an
agent needs for its next command. The same scripted workflow, driven by the same model with
the same prompt before and after, is the yardstick (see scripts/agent-eval/token-budget/).
Changed
--jsonoutput is compact (one line);UCP_JSON_PRETTY=1restores indentation. On a
400-object snapshot that alone is 37% fewer tokens.--helpon a subcommand no longer repeats the nine global options; they are listed once at
the end ofucp --help. A leaf help screen went from ~340 to ~25 tokens, so an agent
probing twenty of them saves about 6k tokens.scene snapshot,scene query, andobject get-childrenprint an indented tree
(Name #id tag:X [N children] · Component, Component) instead of pretty JSON; their JSON
entries carryactive,tag,layer,childCount, anddepthonly when not the default,
andscene queryentries now includepath. The demo scene's root snapshot went from
1,700 to 270 tokens; at depth 1 from 45,000 to 7,600.transform get,spatial raycast|overlap|bounds|ground|nearest,object get-property, and
record statusprint one or two lines of rounded numbers instead of JSON.- Mutating commands no longer attach the whole
logs statuspayload (logStatus) to their
JSON result; theeditorappendix already carries the console counts.compileJSON lists
messagesonce instead of nesting a second diagnostics object;run-testsJSON lists only
the tests that did not pass;stopJSON is the bridge's own payload. screenshot,view capture|isolate|orbitalways save a PNG (to--outputor
.ucp/captures/<command>-<time>.pngin the project) and print its path. Base64 on stdout is
opt-in with--base64: one accidentalview isolatewithout-oput 419k tokens of PNG into
an agent's context in the baseline run.logs/logs tailread the newest 20 buffered entries by default; following live is
--followonly (a bareucp logsused to block forever). Entries print as
#id level HH:MM:SS messageinstead of a padded column and a full ISO timestamp.- Progress notices (
[*] Waiting for ...,Saving active scene...,Triggering recompilation...) appear only when the wait takes longer than 1.5 s. packages list/packages dependenciescollapse the ~30 built-in engine modules to a
count;packages list --jsondrops descriptions, registries, resolved paths, and dependency
graphs unless--full(11k to 2k tokens on the demo project).shader errorsreports the project's own shaders and counts package diagnostics
(--alllists them);build targets --jsonlists installed platforms (--allfor every
platform);profiler status --jsondrops the capability matrix and the category catalogue;
editor statusno longer lists every installed Unity version and its JSON is flat.asset searchskips the Transform/MeshRenderer/MeshFilter nodes of model files unless a
--typeasks for them (a search for "Tower" went from 81 to 27 hits), and takes the name
as a bare argument (ucp asset search Stone -t Material).- The
--id/--path/--namehelp lines are shorter;pausereportsPaused play modeor
Resumed play mode.
Added
--parentonobject create|reparent|instantiateaccepts a hierarchy path or a name as well
as an instance id;transform look-at --target <PATH|NAME|ID>;view capture --path/--name/ --id(the old--target-id/--target-namestill work);transform move --position,
transform rotate --to, andtransform scale --toas aliases for the flags agents guess.screenshot --jsonreports the saved file (it printed nothing when--outputwas given).view capture|isolate|orbittake the object as a bare argument (ucp view isolate Orb), the
form agents try first;asset searchlists the sub-assets of one file on one line and drops
the per-line type tag when--typealready says it.scripts/agent-eval/token-budget/: a loggingucpshim and a tally script that count the
tokens every CLI call produced during an agent run, for before/after comparisons.
Measured
Same task (scripts/agent-eval/tasks/long-workflow.md), same model (Claude Sonnet), same
prompt, on the Fantasy Kingdom demo project:
| 0.7.0 | 0.7.1 | |
|---|---|---|
ucp calls |
100 | 86 |
| CLI output tokens | 455,863 | 28,389 |
of which --help probes (23 in both runs) |
12,579 | 4,625 |
| agent tokens for the whole task | 77,855 | 66,121 |
| CLI wall time | 82 s | 42 s |
419k of the 0.7.0 output tokens were one view isolate without -o; without it the run cost
36,420, so the like-for-like saving is about 22%, and 94% including that trap.
Fixed
- A failed request (a missing file, a wrong property name) is no longer logged as a Unity
console error, so the[editor]state line stops reporting an agent's own typos as project
errors. run-testsright after another test run (or a compile) no longer fails with "the bridge
closed the connection during scene/dirty-summary": the preflight waits for the bridge to
come back and asks again, and the command waits for the post-run domain reload before
returning so the next command finds a stable bridge.
v0.7.0
Added
ucp hot-reload apply <files>: compile edited scripts on their own with Unity's bundled C#
compiler and patch their method bodies into the running editor, in edit mode or play mode,
in about a second and without a domain reload. Object state and play mode survive; the
response lists what was patched and which edits needucp compile(fields, types,
signatures).hot-reload statusandhot-reload revertshow and drop the patches; while
any is live, auto refresh is held so a window focus cannot recompile underneath them, and a
play-mode domain reload re-applies them. The bridge now ships Lib.Harmony 2.2.2 (MIT) as an
editor-only plugin for this. Verified on 6000.3, 6000.4, and 6000.6 (which moved Roslyn into
its bundled .NET SDK).asset import-settings writeon a texture field that a per-platform override shadows
(m_MaxTextureSize,m_TextureFormat, ...) reports the overriding platforms in
platformOverridesand prints a warning, instead of silently changing only the default.asset writeandwrite-batchaccept a colour as[r,g,b,a], as the{"r":..,"g":..,"b":..,"a":..}
objectasset readprints, or as"#RRGGBBAA"; an unsupported shape is a reported error.ucp asset refresh [path] [--no-wait]: import files written outside the editor, or one path,
and wait for the import to settle.import-settingscommands on a freshly written file import
it first instead of failing with "no asset importer".- Every
objectcommand takes--path Root/Child/Leaf,--name, or--id;scene snapshot
entries carry theirpath, and--filtersearches the whole hierarchy instead of the roots. object set-propertyandset-activeread the applied value back (value,
activeInHierarchy) and say when the edit happened in play mode.ucp editor pslists otherucpprocesses with their age and command line;ucp doctorwarns
about ones older than ten minutes.editor close --discard-changesandeditor restart --discard-changes: the explicit way past
a dirty scene.--forcealone still refuses, since the unsaved work is the whole point.
Fixed
editor closeandeditor restartquit an unfocused editor. The bridge deferred the quit with
EditorApplication.delayCall, which only fires after an inspector update, and an idle editor
nobody is looking at never performs one; the close reported "still closing" and the editor
stayed. The same deferral drove armed recordings and queued test runs, and all three now use
an update-driven timer that also queues a player-loop tick.- A
ucpthat launches the editor from inside a shell pipeline (ucp open | grep, a script
line ending in| head) no longer hangs the pipeline for as long as the editor lives. On
Windows the editor inherited ucp's pipe handles even though its own stdio was nulled; ucp now
clears the inherit flag on its standard handles before the launch.
Changed
- ucp no longer brings the Unity window to the foreground. The bridge-ready and settle waits
used to nudge the editor every two to ten seconds, which was the main reason Unity kept
stealing focus from the terminal and the IDE during compiles and reloads. The bridge keeps an
unfocused editor processing by queueing player-loop updates while work is pending; the UI
harness andscene focusno longer activate the editor either.ucp playswitches the Game
views to "Play Unfocused" for the session (and back afterwards), since Unity's default "Play
Focused" pulls the whole editor window to the front on Windows.UCP_FOCUS_EDITOR=1restores
the old nudge and the focused Game view. - One invocation launches at most one editor, and never after it attached to one: a command
bound to an editor that exits fails with "the editor exited" instead of starting another. A
straylogs --followleft behind after a crash used to relaunch the editor on every reconnect,
for hours. An editor ucp launched that dies within two minutes also stops automatic launches
(ucp openalways proceeds), anducp openkeeps the previous log aseditor.prev.log. - Editors started by Unity Hub (
-createProjectas well as-projectPath), from a file
association, or by hand are discovered and adopted: lifecycle commands work on them,
editor statussays how they were launched (launchedByin--json), andeditor logsand
statusreport Unity's per-userEditor.logfor an editor started without-logFileinstead
of a stale project log. Launching is refused while Unity holds the project'sTemp/UnityLockfile. object set-nametakes the new name as--to;--nameis now the selector, like on every
other object command.scene focusaccepts--pathand--namebeside--id.exec run --recorduses the same size-scaled bitrate default asucp recordinstead of a flat
2 Mbps.editor closewaits up to a minute for a bridge that is mid-restart (after tests, a compile,
or play mode) before falling back to terminating the process. When the bridge answers but the
editor's main thread is stalled (a modal dialog, a hung operation),closeandrestartsay so
at once instead of waiting on requests that cannot run;--forceterminates the process right
away. A matrix run had spent a quarter of an hour in that close.ucp playanducp scene loadsave a dirty active scene first (and discard a dirty untitled one
unless--keep-untitled), as their--no-saveflags always implied;--no-saverefuses with a
non-zero exit code instead.material set-property,set-keyword, andset-shaderre-derive pipeline keywords (HDRP and
URP helpers, property drawers elsewhere) and save the asset; the response reports the value
read back, which helper ran, andsaved.spatial boundsincludes inactive children and skips renderers with an empty box, so a parent
whose meshes sit on children no longer reports a zero-size box at its pivot.recordpicks a bitrate from resolution and frame rate (about 0.2 bits per pixel per frame,
at least 2 Mbps) instead of a flat 2 Mbps; the response reportsbitrateKbps.- The
[editor]line spells out only non-zero console counts ("console 2 warnings"), so a
success line no longer contains the word "errors"; the console summary after a mutation appears
only when that command produced errors, not whenever old errors sit in the console. shader errorsclassifies diagnostics by Unity's severity enum, so warnings no longer print as
[error].
v0.6.4
Added
-
Eight hand-written, surface-scoped agent skills under
skills/next to the omni skill:
ucp-editor-lifecycle,ucp-scene-authoring,ucp-assets,ucp-ui-toolkit,
ucp-visual-feedback,ucp-runtime-debugging,ucp-project-config, and
ucp-version-control. Each carries real commands and flags verified against--help, the
workflows an agent actually runs, and the pitfalls the matrix has hit, and each defers to the
omni skill for cross-surface work. They replace the sixteen table-generated micro-skills in
theucp-surfacesClaude Code plugin.skills/index.jsonis a machine-readable catalog, and
scripts/sync-skills.mjs(also a release gate) keeps the plugin mirror, its manifest, and the
catalog in lockstep with the source files. -
Skill frontmatter now follows the Agent Skills specification exactly (
homepagemoved under
metadata), sonpx skills add mflRevan/unity-control-protocoland
gh skill installwork unchanged for Codex, Cursor, Copilot, Gemini CLI, opencode, and Amp. -
The website (unityctl.dev) was rebuilt for humans and agents. Docs and skills render from the
same Markdown files agents fetch:/docs/<page>.md,/skills/<name>.md(frontmatter included,
a valid install),/skills/index.jsonand/skills/index.md,/llms.txt,/llms-full.txt,
and/index.md. Every page links its Markdown twin, copies as Markdown, and the docs no longer
ship inside the JavaScript bundle. Demonstration media comes from the demo project (Unity's
Fantasy Kingdom sample moved to HDRP throughucp execscripts) and was captured with
ucp screenshot,ucp view isolate,ucp ui screenshot, anducp record capture.
Changed
-
The QA playground and the release preflight fail fast now. A failing step used to set a
flag that never left its function, so the harness kept running against the editor it had just
closed and everyconnectrelaunched it; the bridge-ready wait retried an unanswered dialog up
to ninety times. Now one failure ends the run with diagnostics, a wait that sees the same
answer three times stops and names the dialog, andvalidate-release.ps1refuses to start
while another harness or an editor is on the QA project. The CLI names the blocking dialog
when a bridge wait gives up. -
README rewritten as a proper project front page: what UCP is against Unity's own CLI, a
sixty-second setup, the command surface by area, the agent story (state line, dialogs, vision
captures, skills install per harness,llms.txtendpoints), example workflows, how it works,
compatibility, and community links. Every console sample in it is real CLI output. -
docs/agents/skills.mdrewritten around the Agent Skills specification: the skill table with
raw URLs, install paths for Claude Code, skills.sh (npx skills add), GitHub CLI
(gh skill install), and manualcurl, versioning rules, and the endpoints agents read. -
The website content pipeline (
website/scripts/sync-content.mjs) is the single source for
navigation and every generated endpoint; it mirrorsskills/and the catalog, writes
llms-full.txtandindex.md, rewrites in-site links inside raw mirrors to their Markdown
twins, and the.generatedfolder is no longer committed. Headers for.md,.txt, and the
catalog JSON carry explicit content types and CORS so agents can fetch them from anywhere. -
The Claude Code
ucp-surfacesplugin now ships the eight hand-written surface skills instead
of the sixteen generated micro-skills;scripts/generate-micro-skills.mjsis gone. -
The demo project used for media and cinematic captures is Unity's Fantasy Kingdom sample on
HDRP, converted throughucp execscripts; documented inPROJECT.md. -
ucp view(capture, isolate, orbit) is documented under Screenshots, Recordings and Logs.
Fixed
-
files writeandfiles patchfailed with "access denied" on hidden files, which is every
.metain a project using the "Hidden Meta Files" version-control mode. Existing files are
now truncated in place, so their attributes survive and the write succeeds in both modes. -
The CLI runs its commands on a thread with a 64 MB stack. The command futures are large state
machines, and a debug build overflowed the 1 MB main-thread stack Windows gives a process, which
is how the QA harness (a debug build) crashed on plainscenecommands. -
ucp playissued right afterucp compile --no-waitcould be discarded by the recompile that
had not started yet: the bridge still reportedcompiling: falsefor a few frames, the play
request went through, and the reload that followed dropped the transition (Unity 6000.6 stays
in edit mode; the CLI then polled until its timeout). The bridge now treats a requested compile
as compiling until Unity picks it up,playanswerscompilinginstead of toggling while one
is pending, and the CLI waits for the reload and re-issues the request, a bounded number of
times, when a reload swallowed it. -
-vdiagnostics were written to stdout and broke--jsonconsumers; they go to stderr now. -
Unity's "Hold on..." progress window is no longer treated as a modal dialog. On Unity 6000.6
it shows a "Skip Transcoding" button while play mode starts, and the startup dialog policy
pressed it as a generic "skip", aborting the transition and failingucp play. Progress
windows are now excluded from dialog detection and fromucp editor dialog. -
A Unity editor launched by the CLI inherited the CLI's standard handles. Unity 6000.6 prints
its compiler pre-warm lines to stdout before the log file takes over, so those lines landed in
front of--jsonoutput and broke callers parsing it. The editor now starts with detached
handles on every platform. -
The "Project Downgrade Required" dialog that Unity 6000.3+ shows when a project last saved by a
newer editor is opened in an older one is now recognised and answered like the upgrade dialog
(Continue under auto, ignore, and recover; Quit under cancel). Previously the editor sat behind
it until the launch timed out, and the retry loop relaunched it every couple of minutes. -
Mutating commands and
ucp stopprintedBuffered logs: 0 entries across 0 categoriesafter
every call. The console summary now appears only when the wait turned up errors or exceptions;
the[editor]state line already carries the counts. -
ucp transform look-at --helpand the omni skill example named a--target X Y Zflag that does
not exist; the real flag is--at X Y Z(or--target-id). -
view isolate,view capture, andview orbitreturned black images under HDRP: a temporary
camera has no exposure history, so its first frame renders black. Scriptable pipelines now get
warm-up renders before the frame that is read back. HDRP keeps the sky behind isolated objects
since it ignores the camera clear color, and clearing to a solid color there would skew the
exposure instead. -
ui screenshotcaptures were washed out on Linux: the capture surface declared sRGB read/write, which double-encoded the gamma-space editor window on Vulkan and OpenGL while DirectX ignored the flag. The surface is now Linear (a byte-for-byte copy) and a pixel-exact edit-mode test guards it. Thanks to @quentinleon (#5). -
Fixed the
ucp-surfacesClaude Code plugin being pinned at 0.5.2: itsplugin.jsonversion
was never part of the release sync, and Claude Code resolves that value before the marketplace
entry, so users of the plugin never received updates. The skill sync stamps it now. -
Fixed the bridge failing to compile on Unity 2021.3 and 2022.3 LTS since 0.6.3 with
'AssetDatabase' does not contain a definition for 'AssetPathExists'. That API only exists from
2023.1; asset existence checks now go through a compat helper that falls back to a
GUID lookup restricted to existing assets on older editors. Reported by a user upgrading a
2022.3 project.
v0.6.3
Added
- Every command that reaches the bridge now ends with one dim
[editor] ...line, and every
--jsonenvelope carries the same data as aneditorobject: edit/play/paused mode, the
active scene with dirty and untitled flags, the Console window's error and warning counts,
how many errors or warnings the command itself produced, and, only when true, compile
errors, compiling, importing, building, an open prefab stage, an active or armed recording.
The bridge attaches the summary to responses it already produces on the main thread, so it
costs no request and no editor frame; measured medians are unchanged.UCP_EDITOR_STATE=0
disables it. Agents no longer have to discover a red console or a dirty scene three
commands later. - Modal dialogs are detected before a request is sent. The bridge's handshake reports how long
ago Unity's main thread last ticked; when it is stale the CLI enumerates the editor's dialog
windows, answers the ones it recognises per--dialog-policy(Safe Mode, Packages with
Errors, version mismatch, project upgrade), and otherwise fails within about a tenth of a
second naming the dialog and its buttons instead of waiting out the request timeout. A
dialog that appears later, while a request is already waiting, is reported the same way when
that request times out (recognised prompts are answered so a retry succeeds). The line and
the JSON envelope carry aMODALentry. - Added
ucp editor dialogto list the editor's open modal dialogs and--answer <button>to
press one deliberately (exact, then substring, case-insensitive). Windows only for now. ucp connectnow reports whether Unity's main thread is actually serving requests
(mainThreadResponsivein JSON, a "Main thread:" line in text), anducp openno longer
returns while the editor is still in its first import or compile behind a live bridge socket.
Previously a fresh editor looked "connected" seconds after launch and the first real command
then sat in the request timeout.- Added a UI Toolkit authoring loop through
ucp ui list|lint|inspect|screenshot|checkfor
Unity 6 and newer.listdiscovers UXML documents and.ucp-ui.jsonscenarios;lintruns
Unity's own UXML, USS, and TSS importers and then clones each document, so an unknown element
or a broken stylesheet is reported against the asset with a line number instead of surfacing
later as a console error;inspectinstantiates a document in a transient editor panel and
returns a bounded resolved tree with layout, world bounds, a fixed resolved-style allowlist,
and per-binding results;screenshotcaptures that panel to a PNG once geometry and pixels
have stopped changing;checkchains lint, inspect, an audit, and capture across every
requested state and exits non-zero on failure. Nothing loads or dirties a scene, andlint
also works in batch mode. Contributed by @quentinleon (#3). - Added strict
.ucp-ui.jsonscenarios: named states with deep data overlays, an allowlisted
setblock (text,value,enabled,display,visibility,tooltip,class:<name>),
andcollectionsthat populate either an eagerrepeatgrid or a harness-owned virtualized
ListViewfrom a JSON pointer such as/items. UXMLDataBindingpaths are written as
usual and adapted to the JSON data source on the fly.--data-jsonand--data-fileoverlay
data for one run without editing the fixture;--width/--heightoverride the viewport as a
pair. Unknown fields, ambiguous selectors, and out-of-range values are rejected with a
location such asAssets/UI/Inventory.ucp-ui.json#states.populated.set[1].value. - Added an audit to
ui check: binding failures, focusable elements with zero size or outside
the viewport, and duplicated static names, with complete counts even when the returned detail
list is capped at 200.--fail-on-warningsturns warnings into a failed exit for bothlint
andcheck. - UI render commands run asynchronously in the bridge under a 300-second ceiling, report a
domain reload or editor shutdown mid-operation as a structurededitor_shutdownresult, and
recover a finished result throughui/statusif the completion notification was lost. Their
CLI timeout therefore defaults to 310 seconds; every other command keeps the 30-second
default, and an explicit--timeoutstill wins. - Added a
ucp-uimicro-skill, a UI Toolkit section in the omni skill, and a
docs/authoring/ui-toolkit.mdreference page with the scenario schema.
Changed
- Object ids on the wire are now 64-bit integers. Unity 6000.5 replaced 32-bit instance ids
withEntityId, whose upper word is a per-session stamp; truncating one tointproduced a
number that resolved to nothing (only the hierarchy-scan fallback keptobjectcommands
working, andprefab create,materialtexture references, andget-propertyon a fresh id
failed outright). EveryinstanceIdthe bridge returns or accepts is along; on 6000.0
through 6000.4 the numbers are unchanged, on 6000.5 and newer they are wide (for example
568105589213680530). The CLI already parsed ids as 64-bit. Clients that store ids in a
JavaScriptnumbershould treat them as opaque strings above 2^53. - The Unity compatibility matrix and release validation now request slots
6000.0through
6000.6. A slot without an installed editor falls back to the nearest installed one and is
reported as covered rather than re-run. On 6000.5 and newer the matrix lifts
com.unity.ai.navigation,com.unity.collab-proxy,com.unity.inputsystem,
com.unity.timeline, andcom.unity.visualscriptingto the versions bundled with 6000.5
(the pinned older ones no longer compile there). For every slot it reconciles the manifest's
com.unity.modules.*entries with what that editor ships, so a manifest last rewritten by
6000.5 (which addedphysicscore2dand droppedvr) no longer parks an older editor on
"Packages with Errors".
Fixed
- Commands no longer race a pending script compile. The bridge reports
compilingin its
handshake (cached from the main thread's last pump), and a command that connects while Unity
is compiling waits for the domain reload to finish before sending its request instead of
failing with "the bridge closed the connection during ...".ucp compile --no-waitfollowed
by any other command now behaves likeucp compilefollowed by that command. - Fixed
ucp playfailing with "the bridge closed the connection during 'play'" when Unity
tears the domain down before the response to the play request is flushed (seen on 6000.4).
The request had already taken effect; the command now proceeds to its state confirmation
instead of reporting a lost connection. - Fixed the CLI sometimes resolving a project's editor to one of Unity's
AssetImportWorker
processes, which carry the same-projectPath; window focus and dialog detection were flaky
as a result. - Fixed
ucp openand every other command that finds a running editor without a bridge never
answering Unity's startup prompts. The dialog policy (--dialog-policy, defaultauto) was
only applied inside the bridge wait loop, but an editor parked on "Enter Safe Mode?" or
"Packages with Errors" is handled by an earlier readiness check that timed out and printed
advice to re-run with the policy that was already in effect. That check now answers dialogs
on every poll, and reports which button it pressed. - Fixed
ucp run-testsfailing its console guard on log lines a test explicitly declared as
expected. Unity's runner bracketsLogAssert.ignoreFailingMessagessections with
IgnoreFailingMessages:true/falsemarker lines; the guard now skips everything inside such a
window (and the markers), so tests that deliberately import a broken asset no longer show up
as an extra failed "test". - Fixed the bridge's edit-mode test assembly failing to compile on Unity 6000.5, where
Object.GetInstanceID()is obsolete-as-error; the one remaining direct call in the tests now
goes through theEntityId-aware compat helper the rest of the package already uses. - Removed the empty
UCP.Bridge.Runtimeassembly definition. Every install loggedAssembly for Assembly Definition File 'Packages/com.ucp.bridge/Runtime/UCP.Bridge.Runtime.asmdef' will not be compiled, because it has no scripts associated with iton import, which also meant
every "clean console" check started at one warning. Nothing referenced the assembly.
Reported by @quentinleon (#4).
v0.6.2
Added
- Added first-class, CLI-friendly screen recording through
ucp record capture|start|stop|status|arm|signal. It records either the Game or Scene view
without injecting GameObjects, components, or scripts into the scene.captureblocks until the
finalized artifact is ready, whilestart/stopsupports longer same-domain command sequences. - Added event-driven recording with
play-enter,play-exit,log:<regex>, and
signal:<name>triggers. Armed play triggers persist through Unity domain reloads via
SessionState; named signals make workflows such as "when X happens, record five seconds"
directly scriptable. - Added
ucp exec run --record <path>with Game/Scene selection, longest-edge resolution, FPS,
bitrate, overwrite, and lead/tail context controls so anIUCPScriptinvocation and its visible
result can be captured as one artifact. - Added native H.264/MP4 output on Windows and macOS and VP8/WebM output on Linux, with explicit
format selection, configurable width/height, FPS, bitrate, duration, overwrite behavior, and a
platform-awareautoformat. - Added
ucp record --slowdown <factor>, which stretches playback without dropping or duplicating a
single captured frame. Video-understanding models do not watch a file, they sample it, typically at
about one frame per second regardless of the file's own frame rate. A six-second clip therefore
reaches the model as roughly six frames, and anything between those samples is invisible to it:
foot sliding, a camera settling, a one-frame animation pop. Raising--fpsdoes not help, because
the sampler ignores it.--slowdowndivides only the container's declared playback rate, so the
same real-time frames are spaced further apart and a one-frame-per-second sampler receives roughly
factorsamples per second of gameplay instead of one. Nothing is re-encoded and no frames are
interpolated. Measured directly: a clip captured at 30fps with--slowdown 6reports5/1as its
frame rate and a six-times longer duration for the same frames. This was found by testing a real
clip against a multimodal model, which reported "no defects observed" on footage containing an
obvious locomotion bug until the clip was stretched.
Changed
-
Documented that
ucp record --view gamerecordsCamera.main-- the camera taggedMainCamera--
and not the Game view's composited output. A project that renders through more than one enabled
camera (an overlay UI camera, a split-screen rig, a temporary framing camera) will therefore record
only one of them, and a higher-depth camera that visibly wins in the Game view is ignored. Adding a
camera and raising its depth is not sufficient to change what gets recorded; the recording follows
theMainCameratag.--view scenerecords the Scene view camera instead, which is independent of
gameplay and is the supported way to capture a fixed vantage point while the game camera keeps
following the player. -
Added
recordto the generated CLI command palette and documented the canonical blocking agent
workflow directly inucp record --help. The parent help distinguishescapture, detached
start/stop, and event-drivenarmafter an agent eval showed that models otherwise guessed
Playwright-style flags such asstart --length --game-view. -
Updated the omni skill,
ucp-viewmicro-skill, runtime media documentation, README, project
architecture reference, website mirrors, and machine-readable agent docs for recording workflows. -
Documented the encoder lifecycle boundary: an active native encoder finalizes before an assembly
or domain reload;arm --on play-enter|play-exitis the supported way to capture across those
transitions.
Fixed
- Fixed
ucp object get-propertyreturning a .NET type name instead of the value for every
serialized composite field.Dampingon a Cinemachine component reported
"type": "List`1", "value": "System.Collections.Generic.List`1[System.Object]"rather than
"type": "Vector3", "value": [0.1, 0.25, 0.3]. The read path resolves a property through
SerializedObject.FindPropertyfirst, which already returns JSON-shaped values, and the result
was then converted a second time; the second pass matched no case and fell through to
value.ToString(). This affected Vector2/3/4, Quaternion, Color, Rect, Bounds and object
references on any component, and reported the wrongtypefor floats.Transform.positionwas
unaffected only because its serialized name ism_LocalPosition, so it took the reflection path
instead. Agents reading a component property back -- to check a value before changing it, or to
verify a change landed -- received an unusable string. - Fixed
ucp run-tests --filterreporting a pass for a run that executed nothing. Unity's
Filter.testNamesmatches only exact fully-qualified names, so a class or method name such as
ControllerSmokeTestsselected no tests; the resulting childless root suite was then counted as
one passed test, and the run reportedAll 1 tests passedwith the "test" named after the
project. A mistyped filter therefore looked green, and the release flow's own targeted gate
(run-tests --mode edit --filter ControllerSmokeTests) had been validating nothing. Filters are
now matched as a regular expression against each test's full name, so partial and fully-qualified
names both work; empty suites are no longer counted as tests; and a filter that matches nothing is
an explicit error with a non-zero exit instead of a pass. The same filter now runs 48 tests. - Fixed
ucp editor restartsilently doing nothing when the editor took longer to close than the
close step's own budget.close_editorreturnedexited: falsewith the process still winding
down, and the reopen then observed the old process and reported "Unity editor already running",
so the editor was never actually restarted. Restart now waits for the previous process to leave
the process table before reopening, and fails with an explicit message naming the pid if it does
not exit, instead of reporting success. - Fixed
ucp playreportingThe bridge closed the connection during 'play/status'and advising a
retry even though play mode had been entered successfully. Entering play mode triggers a domain
reload that tears the bridge down mid-poll, which is the expected path rather than a failure. The
confirmation loop now tolerates transient connection loss until its timeout and still exits early
if the editor process itself has died.
Performance
- Recording renders directly from the selected editor camera into a hidden reusable
RenderTexture, reads into one reusableTexture2D, and feeds Unity's nativeMediaEncoder.
There are no per-frame scene allocations or injected scene objects, and the scheduler reports
captured and dropped frame counts. - Agent-oriented defaults use a silent, aspect-preserving 960px longest edge, 15fps, and 2Mbps to
keep capture and multimodal decoding costs bounded while remaining configurable up to 4096px and
60fps.
Reliability
- Recordings are written to a sibling
.partialfile and only published at the requested path
after encoder disposal. Extensionless paths receive the selected container suffix, mismatched
extensions are rejected, overwrite is explicit, and failed startup/encoding cleans temporary
files and native resources. - Added detached-recording safety limits, armed-trigger wait timeouts, bounded regular-expression
evaluation for log triggers, stop-based arm cancellation, domain-reload shutdown handling, and
structured status for state, path, dimensions, codec, duration, frames, dropped frames, size, and
errors.
Validation
- Added Rust parser coverage and Unity edit-mode smoke coverage for RPC registration, status,
aspect-preserving even dimensions, signal matching, and armed-trigger cancellation. Live stress
validation covered Game and Scene views, exec wrapping, signal/log triggers, play enter/exit,
extensionless output, atomic cleanup, and zero-drop H.264/YUV420p files inspected with FFprobe. - Validated agent-driven recording with a local Qwen3.6-35B-A3B llama.cpp/OpenCode workflow. The
eval confirmed that an agent can discover, capture, fetch, and submit finalized videos for native
multimodal inspection; it also recorded the prompt-quality pitfall that motion graders should
assess translation, rotation, and bobbing separately rather than ask only whether an object is
"moving or stationary".
v0.6.1
Performance
-
Bridge commands are about 5x faster —
ucp scene active498ms -> 100ms, anducp editor status(which never touches the bridge at all) 210ms -> 34ms. Measured as a controlled 2x2 over the pre- and post-change CLI and bridge against the same project, median of 9 runs each:ucp scene activeold bridge new bridge old CLI 498ms 398ms new CLI 199ms 100ms Roughly 300ms of the saving is CLI-side and 100ms bridge-side. The residual is process start plus one editor main-thread round trip, which varies with how idle the editor is. Three independent causes:
connect_clientnow takes a fast path for the overwhelmingly common case, an editor that is already up with a live bridge. It previously ran the full lifecycle check every time: a machine-wide process scan, plus a throwaway connect-and-handshake that was closed and immediately redone. If the lock file names a live pid and the handshake succeeds, that is the readiness check, so the connection is kept. The full lifecycle path (launch or adopt the editor, dismiss startup dialogs, wait for the bridge) still runs whenever the fast path does not apply.sysinforefreshes are now targeted.System::new_all()sweeps every process plus CPU, memory, disks and networks (~70ms warm, ~200ms on a process's first call);read_lock_fileneeds exactly one pid (~7ms), andlist_running_unity_editorsneeds command lines and executable paths but none of the rest.- The bridge answers
handshakeon the socket thread instead of queueing it for the editor's main-thread pump. Everything the handshake returns is editor identity, so it is captured once at startup; queueing it only bought a wait for the nextEditorApplication.updatetick, which every single CLI command paid before its real request could be dispatched.
-
The "update available" check no longer blocks the command that triggered it. It reads from cache and refreshes in a detached task, so a cold or expired cache costs nothing instead of adding a network round trip to an unrelated command.
-
ucp execno longer rescans every loaded assembly on each call. Implementing types are discovered once per app domain (a domain reload resets the cache anyway) and only assemblies that actually reference the bridge assembly are scanned, checked via reference metadata rather than by materialising the type list of every framework and Unity assembly.exec runalso stops at the first name match instead of constructing everyIUCPScriptin the project - previously any constructor side effect ran on every invocation of any script.
Added
ucp packages addnow accepts multiple packages in a single call (ucp packages add a b c), where it previously errored on the extra arguments. Packages are added sequentially — the Unity Package Manager runs one operation at a time, so each resolve fully settles before the next add starts, and--no-waitapplies only to the final package. CLI-only: no bridge/protocol change, so existing bridges keep working.ucp compilenow reports real compile results instead of always claiming success. The bridge captures per-assemblyCompilerMessages (errors + warnings) intoSessionState— which survives the domain reload on a successful build and stays put on a failed one — and a newcompile/diagnosticsRPC surfaces them. The CLI prints the error/warning breakdown and exits non-zero when compilation fails, so an agent no longer has to grepLibrary/ScriptAssembliesfreshness orCS####log lines to know a build broke. Bridges withoutcompile/diagnosticsdegrade to the previous plain-completion report.
Changed
- Profiler responses are bounded and steerable, so a query cannot flood an agent's context or stall the editor:
profiler hierarchyandprofiler timelineaccept--fields name,selfMs,...to return only the columns you asked for. Profiler rows are wide; on a 20-row hierarchy,--fields name,selfMscut the JSON payload by 71%.- Both now report
totalCountalongsidecount.truncated: trueon its own could not distinguish "50 of 52" from "50 of 50,000", so a caller could not tell whether to look further. Human output says so directly:Showing 6 of 143 rows. - Human output for
profiler hierarchyandprofiler timelineis a compact indented tree with inline timings, instead of pretty-printing every row of raw JSON. profiler summaryclamps its frame range to the most recent 600 frames and reports the clamp inwarnings. Aggregation walks every raw frame view on the editor's main thread, so an unbounded range (--first-frame 0on a long session) froze the editor for seconds.
- Scene/object edits via
ucp object …during Play Mode no longer fail opaquely on--save(Unity refuses to save scenes while playing). The CLI now detects Play Mode and returns a clear warning — in both human and--jsonoutput (playMode: true,warning: …) — that the change applies to the running instance only and will not persist, and it skips the doomed save instead of erroring. ucp openre-checks for an existing editor immediately before launching and adopts it instead of starting a second instance on the same project. A close/open race (or two concurrentopens) could otherwise spawn a rival Unity that locksLibrary/ScriptAssembliesand silently blocks recompilation.
Fixed
- The Unity editor no longer crashes when a
ucp execscript returns a Unity struct.MiniJson's serializer reflected over every public property of any value it did not recognise, and Unity's math structs expose computed properties that return their own type —Vector3.normalizedreturns aVector3, which has a.normalized, forever. The resulting infinite recursion overflowed the stack, which .NET cannot catch, so the editor process died outright; because the CLI relaunches a missing editor on the next command, this presented as "Unity keeps restarting" rather than "Unity crashed". A one-line script returningnew { pos = Vector3.zero }was enough to trigger it. The serializer now:- emits explicit shapes for
Vector2/3/4,Vector2Int/Vector3Int,Quaternion,Color/Color32,Rect/RectInt,Bounds/BoundsIntandMatrix4x4instead of reflecting over them; - projects any
UnityEngine.Objectto{name, instanceId, type}rather than walking a scene graph that is cyclic by construction (GameObject.transform.gameObject), and writesnullfor destroyed objects; - caps reflection depth (8) and total reflected objects, emitting
"<ucp:max-depth>"/"<ucp:truncated>", so an unrecognised type with self-returning properties degrades instead of crashing; - detects reference cycles and emits
"<ucp:cycle>".
- emits explicit shapes for
- Serializer output is now always valid JSON.
NaN/Infinityfloats (routine in Unity — degenerate bounds, zero-length normalize) were written literally and made the whole response unparseable; they now serialize asnull. Unsigned and narrow integers (uint,ushort,byte,ulong) serialized as{}and now emit numbers, non-IListenumerables serialize as arrays, and a property getter that throws mid-write no longer leaves a dangling"key":behind. MiniJson.Deserializeno longer spins forever on truncated input (an unterminated string literal wedged the editor's main thread) and rejects pathologically nested documents instead of overflowing the stack. Both now raise a normal, catchableFormatException.- A bridge that dies mid-command is now reported as such. The CLI previously surfaced a bare
Connection failed: ... forcibly closed by the remote host, giving no hint that the editor process was gone, and the next command silently relaunched it.ucpnow checks whether the editor is still alive — waiting out Unity's crash-handler teardown so a dying editor is not misreported — and distinguishes "the editor exited while '' was running" from "the bridge was restarted by a domain reload, retry". - Unity Safe Mode is now diagnosed instead of misreported. The bridge ships as a UPM package, and Unity loads no packages in Safe Mode, so a project with C# compile errors could present as an editor that is running but answers nothing - reported as "it is likely still closing or stuck", which sends you to look in entirely the wrong place. UCP now reads its own project-scoped editor log (never Unity's per-user global
Editor.log, which carries paths and project names from unrelated sessions), reports Safe Mode explicitly, and lists the deduplicatedCS####errors that caused it, capped at 10.- Verified alongside this: UCP's default
--dialog-policy autoanswers Unity's "Enter Safe Mode?" prompt with Ignore, so the editor boots normally, the bridge loads, and commands keep working while the project still has compile errors - withucp compilereporting them. Unity documents the same deadlock for its owncom.unity.pipelinewith no CLI-side workaround.
- Verified alongside this: UCP's default
ucp scene focusreported the previous Scene view camera pose.cameraPosition/cameraRotationEulerwere read fromSceneView.camera.transform, which Unity only syncs when the view actually repaints —Repaint()merely queues that — so any caller reading the response in the same frame as the focus, and every batch-mode run, got a stale pose. Both values are now derived from the authoritative view state (pivot/rotation/cameraDistance), whichLookAtDirectupdates immediately. This was surfacing as a long-standing failure in theSceneFocus_WithAxis_AlignsSceneCameraTowardTargeteditmode test; the test now asserts the RPC contract and the Scene view state rather than a render-time derivative, and the suite is green at 75/75.- The
AssetSearch_DoesNotEmitSceneReadObjectThreadedErrorseditmode test asserted that zero errors of any level reached the log buffer during anasset/search. That made it fail on a coldLibrary/, where the search pulls in lazy imports wh...
v0.6.0
Added
- In-scene authoring and spatial reasoning surface, the highest-leverage gap for agent-driven game-dev workflows:
ucp transform move|rotate|scale|look-at|get— first-class transform authoring with Euler angles, world/local space, and absolute/relative semantics, replacing error-prone raw serializedm_LocalPosition/quaternion writes. Targets address objects by--id,--path, or--name.ucp spatial raycast|overlap|bounds|ground|nearest— geometric queries so an agent can perceive a scene instead of inferring it: ray/shape casts against colliders, world-space AABBs, drop-to-surface placement, and nearest-object search. Physics queries sync transforms first so they see the current edit-mode state.ucp view capture|isolate|orbit— composed visual perception: target-framed renders, single-object isolation auto-framed from bounds, and multi-angle composite grids (with longest-edge caps and transparent backgrounds) so a vision model can read 3D shape from one image. Works headless via temporary cameras.
ucp object create --primitive Cube|Sphere|Capsule|Cylinder|Plane|Quadbuilds a primitive with mesh + collider in one call. Surfaced by an agent eval: without it, "create a cube" is effectively impossible over the CLI (an agent has to hand-assemble MeshFilter/MeshRenderer and cannot reference the built-in mesh).- Shared
{instanceId | path | name}object locator (ObjectLocator) backing the new commands, so scene work no longer depends solely on reload-fragile instance ids. - Agent-in-the-loop evaluation harness (
scripts/agent-eval/) that drives the new CLI surface with a weak model to surface documentation/ergonomics defects; methodology documented inAGENTS.md. - Per-command-surface micro-skills as a second Claude Code plugin,
ucp-surfaces(plugins/ucp-surfaces). Users can install either the single omni skill (ucp@unity-control-protocol→/ucp:unity-control-protocol) or 15 focused skills (ucp-surfaces@unity-control-protocol→/ucp-surfaces:ucp-objects,ucp-spatial,ucp-view, …). Generated byscripts/generate-micro-skills.mjs(with a--checkCI gate) so they stay coherent with the CLI surface; the existing omni plugin is byte-unchanged. - Machine-readable docs for AI agents: the docs site now publishes per-page Markdown mirrors (
https://unityctl.dev/docs/<page>.md, served astext/markdown), an/llms.txtindex,robots.txt, andsitemap.xml, generated at build time from the docs nav so they cannot drift. The CLI root help points agents at these.
Fixed
ucp editor closecan no longer hang the editor behind a native save-on-quit dialog. When the bridge was unreachable, close fell back to an OS window-close (WM_CLOSE) that makes Unity prompt to save a dirty scene — blocking the main thread with no one to dismiss it — and marked the close "graceful" so it never escalated to a force-kill. Close now uses only the in-editor quit (EditorApplication.Exit(0), prompt-free) and force-kills if that is unavailable. Surfaced by an agent eval where the model triggered this while trying to recover a wedged editor.- Restored Unity 6000.0–6000.4 bridge compilation. The 6000.5 EntityId compatibility work introduced an ambiguous
SceneHandle-to-longconversion (CS0457) in the pre-6000.5 code path, which broke the editor bridge across the entire 6.0–6.4 support matrix. Validated by running the editmode suite on 6000.4.0f1. ucpcommands no longer hang indefinitely when the Unity Editor is wedged behind a modal dialog (or stuck compiling/importing). RPC responses are now bounded by--timeoutand surface a clear, actionable error instead of blocking forever. Operations that intentionally block the editor's main thread for a long time —build start,compile, and package add/remove — are exempt so they are never cut short.- Linux release binaries are now built on Ubuntu 22.04 (glibc 2.35) instead of
ubuntu-latest(glibc 2.39), restoring support for older distributions such as Ubuntu 22.04. (#1)
Changed
- Hardened the entire
ucphelp surface for structural and semantic consistency. The root--helpnow carries along_about(what ucp is, an orientation block on instance ids /--json/--timeout 0, and a link to the docs site + its AI-readable mirrors). Every subcommand group gained an enum-level orientation doc; discoverability traps were fixed (settings keys now have examples + point to the listing getter;run-tests/build/exec/instantiate/bulk-movedocument their value shapes;--timeout 0and the global value-enum semantics are documented). Doc-only — no behavior changed. - Redesigned the docs website to a restrained, content-first aesthetic per the project design brief: removed gradient-clip headings, the typewriter hero, decorative blur/glow chrome, per-card rainbow accents, the fake auto-typing terminal, and glassmorphism; content now always renders (no scroll-gated opacity hiding sections from full renders or JS crawlers); fixed a font bug where the declared font never loaded.
- Consolidated the dirty-scene auto-save behavior shared by
scene loadandplayinto a single modal-safe guard (EditorModalGuard), removing duplicated logic and centralizing the contract that bridge commands must never trigger a blocking editor dialog. Added editmode coverage for titled auto-save, untitled discard, and the no-discard error path.
v0.5.2
Added
- Added
ucp object get-children --id <instanceId> [--depth <levels>]for targeted hierarchy reads scoped to a single GameObject, returning the same child metadata shape used byucp scene snapshotwithout requiring a scene-wide crawl. - Added runtime observability surfaces:
ucp log tail --followalias support, filter expressions (level>=warning,channel=Shader,text=...), anducp play --log-file <path>play-session log capture. - Added live log follow recovery so
ucp log tail --followreconnects after compile/play bridge restarts and drains buffered catch-up logs instead of silently dropping restart-window output. - Added
ucp shader errorsfor project-wide shader compiler diagnostics,ucp frame capture --out <file>.jsonfor structured frame/profiler exports, anducp profile --seconds <n>for one-shot frame-time profiling. - Added
ucp asset inspect <path>for material shader/keyword/texture/property summaries and prefab renderer/material inspection. - Added
ucp scene query "<expr>" --fields ...for lightweight hierarchy queries over name/component/active/tag/layer without external JSON traversal. - Added
ucp script doctor [--fix]to detect and repair stale generated.csprojcompile entries after raw filesystem script deletes.
Changed
- Expanded object authoring docs with a focused object-command workflow,
get-childrenoutput examples, JSON shape reference, and extra guidance for common property-write patterns and hierarchy operations. - Extended the QA playground harness to create a root/child/grandchild hierarchy and validate the new
object get-childrensubtree response in the canonical dev project. ucp compilenow performs a synchronous asset database refresh and best-effort solution regeneration before requesting script compilation, so newly writtenIUCPScriptfiles are discoverable immediately after compile in raw-file agent workflows.- Log collection now seeds buffered history from the Unity Console after domain reloads and listens on the threaded Unity log callback, making compile-time, play-start, and explicit audit reads much more reliable for agent workflows.
- Expanded runtime, asset, scene, scripting, and material docs for the new observability/query/inspection/script freshness workflows.
Fixed
- Fixed
ucp logsreliability gaps where buffered history could appear empty immediately after compilation, during play-mode transitions, or after explicit log audits because the bridge had restarted and lost its in-memory log buffer.
v0.5.1
Added
- Added console-aware Unity test-runner hardening so
ucp run-testsrecords post-start log deltas, reportsconsoleClean/ warning/error counts in structured output, and injects a synthetic failing guard when new Unityerrororexceptionlogs appear during a run. - Added targeted smoke coverage for delta-scoped log status queries and scene-safe asset search behavior that avoids Unity's
ReadObjectThreadedscene-object errors.
Changed
- Rewrote project README as agent-first documentation with rendered architecture and capabilities diagrams, replacing the previous command-reference style with workflow-oriented descriptions of what agents can automate through UCP.
ucp run-tests --jsonnow fails structurally with the full Unity result payload attached, making CI and agent workflows rely onsuccess: falseplus detailed failure data instead of a generic process error.- Human-readable test output now includes concise console warning/error summaries so non-test Unity issues stay visible at the command surface.
- Updated runtime testing docs to describe the console-log guard behavior and its failure semantics.
Fixed
- Fixed
ucp asset searchloading.unityassets throughLoadAllAssetsAtPath(...), which could emitDo not use ReadObjectThreaded on scene objects!noise during broad searches; scene assets now use the safe main-asset path. - Fixed batched
ucp asset bulk-movefolder preparation so destination parent folders are created before Unity enters asset-editing mode, avoidingParent directory is not in asset databasefailures during real bulk moves. - Fixed
ucp scene load --additiveresponse serialization to return a stable dictionary payload compatible with smoke tests and downstream structured consumers. - Fixed the dev sandbox fixtures and smoke baseline by cleaning malformed scene YAML, removing broken prefab/script attachments, and eliminating orphaned prefab component references that were surfacing hundreds of Unity console errors despite nominally passing tests.
v0.5.0
Added
- Added
ucp referencescommand family for high-performance, Rust-native asset reference search. Parses Unity's text-serialized YAML directly from disk using parallel scanning (rayon), building a reverse-reference index without requiring a running Unity editor.ucp references find --asset <path|guid>finds all files and objects referencing a given asset, with intelligent output grouping and pattern detection.ucp references index buildbuilds a full reference index with benchmarking output.ucp references index statusanducp references index clearfor index management.ucp references checkverifies project serialization compatibility for native indexing.
- Added configurable output controls for reference queries:
--detail summary|normal|verbose,--max-files,--max-per-file,--pattern-thresholdto minimize context consumption for agent workflows. - Added bridge-based fallback (
ReferenceController.cs) for projects using binary serialization, usingAssetDatabase.GetDependenciesplusSerializedObjectproperty walking. - Added serialization compatibility checks (Force Text + Visible Meta Files) to
ucp doctoranducp install, with actionable recommendations when settings are missing. - Added
docs/authoring/references.mdwith full usage documentation, syntax reference, flag descriptions, and output examples. - Added
ucp asset move <path> <destination>for Unity-aware asset and folder moves throughAssetDatabase.MoveAsset, preserving.metafiles and GUIDs so references stay intact. - Added
ucp asset bulk-move --moves <json>for ordered batch move/refactor workflows with structured per-entry results and optional--continue-on-error.
Changed
ucp installnow automatically appends.ucp/to the project's shared ignore file for the active VCS when available:.gitignorefor Git worktrees andignore.conffor Unity VCS / Plastic workspaces. Repeated installs detect existing entries and do not duplicate them.- Updated SKILL.md with reference search guidance, including when to use
--detail summaryfor agent-optimized context efficiency. - Expanded asset docs and skill guidance to cover Unity-safe move and bulk-move workflows for asset cleanup and refactoring.
- Reorganized documentation into workflow-oriented
overview,authoring,runtime, andprojectsections, replaced the old command inventory overview with stable lifecycle/setup guidance, and preserved legacy/docs/commands/*links through website aliases. - Frontend/docs redesign