Skip to main content

Harness Unity Bridge

PyPI Python 3.8+ CI codecov License: Apache 2.0 Unity 2021.3+ PyPI Downloads

File-based bridge enabling DeepSeek Harness to control Unity Editor operations in a running editor instance.

Why Harness Unity Bridge?

  • Zero config — No network setup, no port conflicts. Just install and go.
  • Deterministic CLI — Tested Python script handles UUIDs, polling, retries, and cleanup so DeepSeek Harness doesn't have to.
  • Multi-project — Each Unity project gets its own .harness-unity-bridge/ directory. Work on multiple projects simultaneously.
  • Full editor control — Run tests, compile, check logs, refresh assets, build, and control Play Mode.
  • Cross-platform — macOS, Linux, and Windows support.

Installation

Install the CLI:

pip install harness-unity-bridge
harness-unity-bridge install-skill

Or use the one-line installer:

# macOS / Linux / Git Bash
curl -sSL https://raw.githubusercontent.com/WarrenMondeville/harness-unity-bridge/main/install.sh | bash

# Windows (PowerShell)
irm https://raw.githubusercontent.com/WarrenMondeville/harness-unity-bridge/main/install.ps1 | iex

Add the Unity package (in Unity Editor):

Window > Package Manager > + > Add package from git URL...

https://github.com/WarrenMondeville/harness-unity-bridge.git?path=package

Quick Start

Open DeepSeek Harness in your Unity project directory and ask naturally:

"Run the Unity tests"
"Check for compilation errors"
"Show me the error logs"
"Build for Android"

Or use the CLI directly:

harness-unity-bridge run-tests --mode EditMode
harness-unity-bridge compile
harness-unity-bridge get-console-logs --limit 10
harness-unity-bridge get-status
harness-unity-bridge build --target Android

Commands

Command Description
run-tests Execute EditMode or PlayMode tests with optional filters
compile Trigger script compilation and report errors
get-console-logs Retrieve Unity console output (filter by Log/Warning/Error)
get-status Check editor state — compilation, play mode, updating
refresh Force asset database refresh
play / pause / step Control Play Mode — enter, pause, step frames
build Build project with direct pipeline or custom method

How It Works

DeepSeek Harness  -->  harness-unity-bridge CLI  -->  .harness-unity-bridge/command.json
                                                  |
                                            Unity Editor
                                                  |
DeepSeek Harness  <--  harness-unity-bridge CLI  <--  .harness-unity-bridge/response-{id}.json
  1. DeepSeek Harness (or you) runs a harness-unity-bridge command
  2. The CLI writes a JSON command with a unique UUID
  3. Unity Editor polls for and executes the command
  4. The CLI polls for the response with exponential backoff
  5. Results are formatted and displayed; response files are cleaned up

All file I/O is atomic (temp file + rename) to prevent corruption. The CLI handles file locking, retries, and stale file cleanup automatically.

Updating

harness-unity-bridge update

Documentation

License

Apache 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

harness_unity_bridge-0.3.0.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harness_unity_bridge-0.3.0-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file harness_unity_bridge-0.3.0.tar.gz.

File metadata

  • Download URL: harness_unity_bridge-0.3.0.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for harness_unity_bridge-0.3.0.tar.gz
Algorithm Hash digest
SHA256 90c352d58e374aea7a630c8e62283a901348c4582cf1589ca07c24cd349d6ed4
MD5 16d437be2c15375e0d36d39e8bdda0fe
BLAKE2b-256 a2ba5ad346212497293e75357d6729505f7a3af2c95b78caaf1d81915b39bc7b

See more details on using hashes here.

File details

Details for the file harness_unity_bridge-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for harness_unity_bridge-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 008088ad0a8da6edc1048a7318f14ae7ff4186dc3c0da9863009ad9ee6b775e9
MD5 d48091ca02fd9bffef3b8b2504855677
BLAKE2b-256 0cb983da55ad9faa2aa8db6b492fae721a50ed78e2fe520443960f2b5475d02b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page