Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 22 Jul 08:13
· 27 commits to master since this release

Added

  • Transform tools: set_transform, duplicate_object, reparent_object
  • Profiler tools: profiler_start, profiler_stop, profiler_clear, profiler_get_samples using Unity.Profiling.ProfilerRecorder
  • profiler_benchmark: fires a named ProfilerMarker with real CPU work to produce measurable timing samples (use with profiler_start)
  • help tool: returns full description and argument details for any command on demand
  • screenshot now returns the image inline (base64 PNG) with optional max_size downscale
  • execute_script: compile and run C# code snippets in the Editor
  • IAgentCommand.Core property: command classes declare themselves as core with bool Core => true
  • Go integration tests for profiler commands and execute_script, including a live data-capture test that fires a ProfilerMarker and verifies sampleCount > 0

Changed

  • play_mode (single command with action parameter) replaced by play_enter and play_exit (no arguments each)
  • run_tests (single command with mode parameter) replaced by run_editor_tests and run_playmode_tests
  • commands renamed to list_commands
  • console_logs simplified: limit and type filter arguments removed; always returns all buffered logs
  • MCP tools/list context cost reduced by 31% (from ~3,000 to ~2,063 tokens) by moving argument descriptions behind the help tool
  • serve.go now loads core tools dynamically from Unity at startup via list_commands instead of a hardcoded allowlist. No Go recompile needed when adding new Unity commands.
  • agent_schema.json removed; no offline schema cache needed.
  • Dropped profiler_set_deep and profiler_get_frame (required internal Unity APIs with no public equivalent)
  • Removed --schema CLI flag from dffrnt-agent

MCP context size

=== MCP context size (fixed tools only) ===
tool                        bytes  ~tokens
-------------------------------------------
screenshot                    234       58
help                          205       51
invoke                        161       40
set_project                   138       34
-------------------------------------------
TOTAL (4 tools)               738      184
note: dynamic core tools from Unity are registered at runtime via the 'core' flag