Repository navigation
Releases
Remote Harness MCP v0.7.5
Remote Harness MCP v0.7.5
Native Windows Desktop Control & Fast UI Automation
- Windows
desktop_inputtool (core/desktop_input.py, PR #7 by @RogerYong, hardened & accelerated):- Zero-dependency mouse and keyboard automation via Windows
user32.SendInput/SetCursorPoswith Per-Monitor DPI v2 awareness:get_cursor,move,click(left/right/middle, single/double/triple),drag,scroll,type_text(layout-independent UTF-16 Unicode +Enteron\n), andkey_press(single keys and modifier chords). - Fast Windows UI Automation (
action="get_tree"): returns interactive UI elements (Button,Edit,Hyperlink,TabItem,ComboBox,MenuItem) and exact(x, y)center coordinates as compact JSON in ~600 ms — letting agents navigate Edge/Chrome and desktop apps without screenshots. - Batching (
action="sequence"&action="wait"): execute up to 25 UI steps (click → wait → type → wait →get_tree) in a single MCP tool call. - Security & platform guards: blocked under
MESH_READ_ONLY,--no-shell(MESH_ENABLE_SHELL=0),--folder(MESH_WRITE_ROOTS), activesandbox, Windows Session 0 (SESSIONNAME=Services), orMESH_ENABLE_DESKTOP_INPUT=0; automatically hidden on non-Windows hosts intools/listauto-profile (38tools inALL_TOOLS,40via gateway;36on Windows /35on Linux & macOS by default).
- Zero-dependency mouse and keyboard automation via Windows
- Fast
screen_capturemode (core/mcp_tools.py):- Optional
format="jpeg",max_side,quality, andupload_gdrive=Trueparameters shrink full-res PNGs (~2.5 MB) to ~120 KB downscaled JPEGs and optionally return a Drivefile_idin one call (falls back cleanly to stdlib PNG when Pillow is not installed).
- Optional
MESH_SERVER_NAMEoverride (core/server.py):- Customize
serverInfo.nameto distinguish multiple standalone nodes in MCP clients.
- Customize
Documentation & OAuth Session Tips
- Long Gemini session tips (PR #8 by @RogerYong + Russian mirror):
- Documented
MESH_OAUTH_TOKEN_TTLtrade-offs, session refresh behavior, and immediate token revocation (standalone.oauth_tokens.json) in bothREADME.mdandREADME_RU.md.
- Documented
Security Hardening & Repository Cleanup
- Runtime, Gateway, Installers & CI Hardening (
e9237f5):- Hardened
-AdminServiceininstall.ps1(%ProgramFiles%+ strict ACLs), script allowlisting inops/windows/run-hidden.vbs, Zip Slip protection intools/installer-exe/Launcher.cs, non-root Docker runtime (USER rhm,cap_drop: [ALL]), OIDC PKCE/nonce + atomicconsume_flow, and isolatedmktempstaging indeploy_gateway.sh.
- Hardened
- Legacy Cleanup (
bacb78d,50eddf9):- Removed dead legacy v1/SDK modules, obsolete docs, and stale build clutter; updated
docs/PROJECT_STRUCTURE.mdto match the current architecture.
- Removed dead legacy v1/SDK modules, obsolete docs, and stale build clutter; updated
Remote Harness MCP v0.7.4
Remote Harness MCP v0.7.4
Security & OAuth 2.1 Hardening
- Public Funnel OAuth DCR Protection (
core/server.py):- Blocked unauthenticated Dynamic Client Registration (
POST /oauth/register) and auto-approved OAuth flows on public/proxied hosts (Tailscale Funnel, Quick Tunnel, reverse proxies) by default (403 access_deniedon/oauth/*,404on/.well-known/*). Token auth (?token=/Authorization: Bearer) continues to work unchanged; public DCR now requires explicit opt-in (MESH_OAUTH_ALLOW_PUBLIC_DCR=1).
- Blocked unauthenticated Dynamic Client Registration (
- Gemini Persistent Linking & Manual Confidential OAuth (PR #6 by @RogerYong, hardened):
- Added pre-registered confidential OAuth client support (
MESH_OAUTH_CLIENT_ID,MESH_OAUTH_CLIENT_SECRET,MESH_OAUTH_REDIRECT_URIwith strict Google callback allowlist) and a local Consent UI with explicit Allow/Deny handling. - Added persistent
refresh_tokensupport (non-rotating, 30-day sliding TTL viaMESH_OAUTH_REFRESH_TOKEN_TTL) and atomic0600disk persistence of SHA-256 token digests (standalone.oauth_tokens.json) so active sessions survive restarts without storing raw tokens. - Hardened static client mode so
POST /oauth/registeris strictly blocked (403) and legacy DCR clients are not loaded when a confidential client is configured.
- Added pre-registered confidential OAuth client support (
Windows & CI Fixes
- Reliable
rhm restarton Windows (core/menu.py): Stops bothpython.exeand its parentcmd.exelog wrapper, verifies old PIDs actually exit, reports clear permission errors when the service runs elevated, and prints the new PID on success. - Elevated
cmd.exelauncher fix (bin/rhm.cmd): Resolves Python automatically viarhm.env,%LOCALAPPDATA%\Programs\Python\Launcher\py.exe, and standardPython3*directories even whenpyis not in the elevatedPATH. - Synced npm alias (
npm/gemini-computer-use/package.json): Kept in lockstep at0.7.4with the main package.
Remote Harness MCP v0.7.3
Remote Harness MCP v0.7.3
Highlights
- Autonomous Google Drive transfer (
share_gdrive):- Upload single files, file lists (
paths), or whole directories directly from any node (Windows, Linux, macOS, Android/Termux) to Google Drive via OAuth 2.0 Device Flow (drive.filenon-sensitive scope) — zero relay VPS involvement and zero pip dependencies. - Tokens are stored strictly outside git repositories in
core.paths.config_dir()(~/.config/remote-harness-mcp/gdrive_token.json,0600on POSIX), with optional BYO credentials (gdrive_client.jsonorRHM_GDRIVE_CLIENT_*). - Supports
chunks=Nbatch ZIP packaging for parallel subagent workflows, immediateaction="delete"(file_id/file_ids), and automatic background TTL cleanup for ephemeral (keep=False) transfers.
- Upload single files, file lists (
- Polished
rhmTUI (core/menu.py):- High-contrast ANSI color styling in interactive terminals (plain text preserved for
--once, pipes, andNO_COLOR). - Fixed QR code layout so long paths or status notices never push the QR off the main screen.
- Added interactive service restart (
r/rhm restart) and service stop+quit (q/rhm stop), both protected by explicit[y/N]confirmation; moved Remote Control toggle toc.
- High-contrast ANSI color styling in interactive terminals (plain text preserved for
Remote Harness MCP v0.7.2
Remote Harness MCP v0.7.2 — Windows Installer & In-Place Upgrade Fixes
Patch release fixing Windows visual installer (.exe) execution, drive selection, and clean in-place upgrades over an already-installed node.
Fixes
- Fixed PowerShell 5.1
-Fileparameter binding crash (-AddToPath:$true): Windows PowerShell 5.1 passed-AddToPath:$trueas the literal string"$true"to[bool]$AddToPath, abortinginstall.ps1before startup.install.ps1now accepts[object]$AddToPath = $trueand normalizes both native booleans and string forms ($true/$false/true/false/1/0). - Fixed mojibake in Russian installer error output:
install-gui.ps1(Read-TextFileTolerant) now falls back to the system OEM codepage (CP866 on Russian Windows) whencodePageis65001instead of re-decoding OEM stderr as UTF-8. - Fixed drive selection producing
D:\0.7.1:install-gui.ps1(Get-DefaultInstallDir) no longer defaults into the unpacked scratch directory...\RemoteHarnessMCP\setup\<version>, and switching drives ignores version-like folder names (^\d+\.\d+\.\d+) andsetup— selectingD:now defaults toD:\RemoteHarnessMCP. - In-place upgrade over existing installations: added
Get-ExistingInstallDirtoinstall-gui.ps1andinstall.ps1(checkingrhm.env,RemoteHarnessMCPService, and Startup VBS). When an existing installation is detected, the installer targets that exact directory and locks the location fields with a clear notice (loc_existing_hint). - Graceful stop before upgrade: added
Stop-ExistingNodeInstancesininstall.ps1beforeCopy-NodePayloadto stop running scheduled tasks (RemoteHarnessMCPService) and node/watchdog processes so file overwrites and port binding (SO_EXCLUSIVEADDRUSE) succeed cleanly before restarting the updated version.
Verification
install-gui.ps1 -SelfTest— all checks passed.pytest tests/test_installer_location.py tests/test_installer_gui.py tests/test_funnel_installers.py— 56 passed, 1 skipped (including real Windows PowerShell 5.1-File install.ps1 -DryRun -AddToPath:$true/-AddToPath:$falsetests).
Remote Harness MCP v0.7.1
Remote Harness MCP v0.7.1 — Faster, leaner MCP surface, shell-free Git & Fetch, OAuth 2.1, and Zero-Admin Standalone Mode
First stable release of the 0.7.x architecture (no bridge required by default — each node publishes itself via Tailscale Funnel or quick tunnel), combining the fast Windows/Linux data layer, read_media multimodal support, GUI installer improvements, and a comprehensive set of context-efficiency, security, and onboarding upgrades.
Highlights & All Changes Since v0.7.0-rc1-alpha
1. Context Efficiency & Faster Search
- ~50% smaller
tools/listschema payload: compressed tool and parameter descriptions acrosscore/mcp_tools.pyandgateway.py(33 base tools: 33.5 KB → 16.9 KB; default desktop auto-profile of 34 tools: 17.1 KB;MESH_TOOLSETS=coreof 22 tools: 10.4 KB, −69%). - Modular toolsets (
MESH_TOOLSETS) & OS auto-profile: configure active tool groups (all,core,git,web,device,admin) viaMESH_TOOLSETS; phone-only tools (device_messages,device_capture) are hidden by default on desktop nodes unless explicitly enabled.core/server.pynow servestools/listdynamically viamcp_tools.list_tools(). - Compact
grep_searchoutput: addedformat="compact"returning flat relative paths (rel/path.py:line: text), cutting grep response tokens by >50% (13.5 KB vs 30.6 KB), while keepingformat="json"clean without duplicate fields. - Bytes-level literal
grep_searchpre-filter:core/fs_search.pyperforms a fastneedle_bytes in raw_bytescheck before UTF-8 decoding and regex matching for literal patterns (fixed=Trueor plain literals withignore_case=False). - Fast data layer & background indexing: zero-dependency
fs_search, SQLite FTS5fs_indexwith background/scheduled refresh,win_places,doc_read,batch_read,batch_edit(withdry_run), and multi-languagerun_script(python,powershell,bash,cmd).
2. New Shell-Free Tools & Multimodal Support
git_status&git_diff: read-only tools executinggitdirectly (shell=False,-c core.fsmonitor=false -c core.hooksPath=), working even inread_onlymode or with--no-shell.fetch_urlwith SSRF protection:https://-only fetcher validating every resolved IP viaipaddress(blocking loopback, private, link-local, multicast, reserved, and IPv4-mapped IPv6), per-hop redirect validation (up to 5 hops), 300 KB body cap, and optional HTML-to-text stripping.read_media& binary guard inread_file:read_filenow detects binary files via NUL-byte check in the first 8 KB and returns a clean error with file size, MIME type, and a hint to useread_media(which returns native MCP image/PDF/audio/video/OCR content blocks, plus Windows OCR helpertools/ocr_windows.py).
3. Security, Reliability & Windows Hardening
- Protected
.git/writes:core/policies.py(is_protected_git_path,check_write_allowed) blocks writes/edits to.git/hooks/*and.git/configacrosswrite_file,edit_file, andbatch_edit(handling path traversal, symlinks, Windows case-insensitivity, and NTFS ADS). - Shell disable switch (
--no-shell/MESH_ENABLE_SHELL=0): cleanly disablesbash_exec,run_script, andrun_jobfor file-only deployments. - No duplicate port bind on Windows:
core/server.pydisablesallow_reuse_addressand setssocket.SO_EXCLUSIVEADDRUSEonwin32. - Async rotating usage journal:
core/usage.pywrites call logs through a backgroundqueue.SimpleQueuedaemon thread with size-based rotation (1 MB × 3 backups) andflush(), cutting empty-call protocol overhead from ~16 ms to ~1 ms.
4. Onboarding, OAuth 2.1, Installer & Docs
- Zero-admin single-folder mode (
--folder,--no-shell,--quick-tunnel): launch a standalone sandboxed server on any project folder without admin privileges or Tailscale setup, with optional Cloudflare quick tunnel (cloudflared) auto-detection. - Minimal OAuth 2.1 (PKCE S256) in standalone mode: added
GET /.well-known/oauth-authorization-server,GET /.well-known/oauth-protected-resource,POST /oauth/register,GET /oauth/authorize, andPOST /oauth/tokenalongside staticMESH_TOKEN. - Installer &
rhmmenu updates: selectable install location and component toggles ininstall-gui.ps1, localised drive labels, tunnel visibility and repair fromrhm, and updated admin service / container docs. - Threat Model & README sync: added Threat Model / Модель угроз sections to
README.mdandREADME_RU.md, updated tool counts (36 node / 38 gateway), and added CI contract testtests/test_readme_tools_sync.py. - Cross-platform CI fix: fixed POSIX case-sensitive glob assertions in
tests/test_fs_index.pysoubuntu-latest(py3.11, py3.13) andwindows-latest(py3.13) all pass cleanly.
Upgrade / Install
- curl (Linux / macOS / Termux):
curl -fsSL https://raw.githubusercontent.com/LevRa7/remote-harness-mcp/main/install.sh | bash - PowerShell (Windows):
irm https://raw.githubusercontent.com/LevRa7/remote-harness-mcp/main/install.ps1 | iex
- npx:
npx remote-harness-mcp@0.7.1
- Existing nodes: run
mesh_update(action="apply") or update from therhmmenu — GitHub Releases attachesmesh-payload-0.7.1.zip,RemoteHarnessMCP-Setup-0.7.1.exe, and their.sha256checksums automatically.
Remote Harness MCP v0.7.0-rc1-alpha
Remote Harness MCP 0.7.0-rc1-alpha — no bridge: the node ships its own public endpoint
A pre-release of the architecture change. Until 0.6.x every node needed a relay: a
VPS with a shared domain that terminated TLS and forwarded calls over an outbound
WebSocket tunnel. From 0.7.0 the installer puts the whole stack on the machine and
publishes it with Tailscale Funnel; a node has its own HTTPS address and a
bridge is no longer part of the default install.
Tagged v0.7.0-rc1-alpha: it installs, updates and serves on this machine, but try
it on one node before rolling it out.
The architecture change
- A node is its own public endpoint.
https://<node>.<tailnet>.ts.net/sse?token=…
terminates on the machine itself (Funnel forwards to127.0.0.1:<port>). No VPS,
no shared domain, no DNS, no inbound port on the router, and no second place that
holds the node's token. - The installer defaults to it.
install.ps1 -Mode standalone -Funneland
install.sh --mode=funnelare what the wizard and the shell installer now choose
first; tunnel mode (-Mode tunnel,--mode=tunnel) still exists for many nodes
behind one address. - Shares are served by the node, not built into a bridge path:
https://<node>.<tailnet>/<slug>/<file>instead of<domain>/<node>/<slug>/<file>. - Tailscale is the only external dependency. The installer installs the client
when it is missing, walks through the one-time browser sign-in, and needs Funnel
allowed for the tailnet (a one-time ACL switch):
"nodeAttrs": [{"target": ["autogroup:member"], "attr": ["funnel"]}].
Install, step by step
install-gui.cmd(wizard, Funnel pre-selected) or the console installer.- Tailscale installed and signed in;
BackendState=Runningwaited for. <node>.<tailnet>.ts.netread fromtailscale status --json, thenMESH_TOKEN,
MESH_ALLOWED_HOSTSandMESH_PUBLIC_URLwritten tostandalone.env(0600).- A free port chosen (8096, or the next free one) and autostart registered: the
RemoteHarnessMCPServicetask (SYSTEM, before logon, restart on failure) or
rhm-node.vbsat logon; the real outcome recorded inautostart.state.json. tailscale funnel --bg --https=443 http://127.0.0.1:<port>started and verified.- The ready link printed and copied: paste it into the Gemini connector.
rhm now describes the installed node
- The menu reads the node's own configuration directory (the service keeps it in
%ProgramData%\remote-harness-mcp), the installer'sautostart.state.jsonand
standalone.env, so a Funnel node shows its ownts.netaddress and token
instead of a bridge URL and anlk_…key left by an earlier tunnel install. Status:is true for a Funnel node as well: with no heartbeat to read (the tunnel
agent writes it, the standalone server does not), the menu probes the node's
loopback/healthand caches the answer for five seconds.rhm --jsonadditionally reportsendpoint_mode,nodeandconfig_dir.
The rhm command survives a moved payload
- The Windows shim no longer carries the payload path: it reads
rhm.envnext to
itself, which every install rewrites. A stale path now prints which file is wrong
and exits 127 instead of "No module named core.menu". - The POSIX shim reads
~/.config/remote-harness-mcp/launcher.envand now actually
changes into the payload — the previous script ranpython -m core.menufrom
whatever directory the caller happened to be in.
Migration from 0.6.x
- Run the installer again; the wizard already offers Funnel first.
- Replace the connector URL in Gemini with the new
…ts.net/sse?token=…link. agent.env/domain.envfrom the tunnel era stay on disk as history — a Funnel
node does not read them and never dials the bridge.- The old bridge VPS can be switched off when no tunnel-mode node uses it.
Known limits of this alpha
- Termux still has no Funnel (Android has no
tailscaled): the phone keeps using
tunnel or local-standalone mode. - Funnel exposes 443, 8443 and 10000 only.
- The link is the credential: whoever holds it can run commands on that machine.
- A pre-release is older than 0.7.0 itself, so a node on this build updates to the
final release automatically once it ships (setMESH_UPDATE_CHANNEL=prerelease
to keep following pre-releases).
Verification
tests/test_menu.py,tests/test_funnel_installers.py— desktop endpoint and
launcher contract, including the new standalone liveness probe.tests/test_version_single_source.py,tests/test_updater.py— the tag, the
module,package.jsonand the docs name one version.tests/test_standalone_env.py,tests/test_standalone_shares.py,
tests/test_server_hardening.py— the allowlist and the standalone share route.
Remote Harness MCP v0.6.0
Remote Harness MCP 0.6.0 — device cabinet, security hardening, and a usable console menu
A feature-and-security release. It adds the first real device cabinet, closes the
findings of the 2026-11-19 audit, and replaces the console menu's repainting with
a proper terminal frame.
Device cabinet (P1)
- One device inventory.
registry.json(credentials) andaccount.db
(owner, display name, tenant) are joined into a single list, so the cabinet
shows every device of the signed-in owner with its platform, online state and
last activity. - Pairing confirmation from the cabinet. A pairing code can be confirmed in
the browser (P1-B) instead of only through the admin API. - Unclaimed devices are opt-in. A node registered before the cabinet existed
is not shown to anybody until the owner adopts it with its link key (P1-C).
Security (2026-11-19 audit)
This release closes 20 findings of the audit; the remaining ones are documented
residuals (operator trust, release signing, separate share origin).
- Shares are sandboxed: a user-published HTML file can no longer read the
cabinet. Every relayed share carriesContent-Security-Policy: sandbox …,
X-Content-Type-Options: nosniffandReferrer-Policy: no-referrer; a
protocol-relativeLocationis rejected. - No anonymous inventory: unknown node names answer with the same
401as a
wrong credential, an unknown or offline share answers404,/healthis a
bare{"status":"healthy"}unless the caller proves a credential (or the
operator setsMESH_PUBLIC_HEALTH=1), and/api/registerno longer suggests
which name is taken. - Link keys are hashed at rest.
link_key_sha256replaces the plaintext
value; existing registries are migrated on startup, and a reinstall keeps the
old digest as an overlap until an explicit rotate. - Credentials stop travelling in URLs: a device token in the query string is
only accepted withMESH_ALLOW_LEGACY_QUERY=1, and rotate/revoke accept it in
a header only./api/registerignores a token supplied in the query. - Rate limits actually bind:
client_iptrustsX-Forwarded-Foronly from
MESH_TRUSTED_PROXIES(last hop), the rate-window map is bounded, pairing has
a per-address quota and evicts the oldest request instead of failing everyone. - Smaller fixes: unknown
MESH_REGISTER_MODEfails closed, usernames are
limited to 40 characters, admin tokens are comma-separated and must be at
least 32 characters (optional TOTP viaMESH_ADMIN_TOTP_SECRET, optional
MESH_ADMIN_REQUIRE_LOCALHOST=1), the registry read is cached per file
identity, share relay bodies are capped and concurrency-limited, shell
classification rejects pipelines after a "safe" prefix, and the secret
redactor masks short and$-prefixed passwords. - Cabinet login: the OAuth flow is bound to the browser that started it, the
CSRF check verifiesOrigin, login is rate-limited, and an optional
MESH_OWNER_EMAILS/MESH_OWNER_DOMAINSallowlist keeps a shared gateway to
its owners.MESH_CLOSE_REGISTER_WITH_ACCOUNT=1closes self-registration when
the cabinet is on.
Console menu (rhm)
- A frame that fits. The menu is computed for the current window, never
taller than it, and repainted through the Win32 console API
(FillConsoleOutputCharacter/SetConsoleCursorPosition) so plainconhost
works without ANSI or VT processing. Unchanged frames are not repainted. - Token and QR in the menu.
Token: lk_…and the MCP endpoint are always
visible; the QR is drawn beside the status block on a wide window, below it on
a tall one, andeopens it full-screen otherwise. - Home has an edit affordance:
Home: <path> [d] edit. - Keys work in any layout. Input is read as Win32 virtual-key codes
(VK_D→d), so pressing the physical key works with the Russian layout too;
themsvcrtfallback translates Cyrillic characters to their Latin keys. rhmno longer crashes on start (Keysnow implements the context-manager
protocol) and prints once when stdout is redirected instead of repainting a
stream.
Changes you should know before upgrading
- The persistent
goalis disabled by default. One objective stored on the
node was shared by every chat, so the tool is absent fromtools/list,
mesh_statusreturnsgoal: null, and the menu hides the line. The old
behaviour is available withMESH_GOAL=1; per-chat scoping is not implemented. /healthis private by default (see above).- An admin token shorter than 32 characters no longer works.
- Unknown
MESH_REGISTER_MODEvalues mean "closed". - A device token in a URL needs
MESH_ALLOW_LEGACY_QUERY=1(migrate, rotate,
then remove the flag). - A reinstall rotates the link key; the previous URL keeps working until the
owner rotates it explicitly.
Verification
python -m pytest tests -q → 1585 passed, 8 skipped.
Remote Harness MCP v0.5.2
Remote Harness MCP 0.5.2 — links follow the bridge, shares render correctly
A patch release for 0.5.1. It fixes four defects that made published files and
pages come back broken, and one that made every link name a domain the gateway
was no longer reached at.
What was broken
-
Published links named the wrong domain.
core/web_sharebuilds
<domain>/<node>/<slug>/…fromcore.domain, whose last fallback is the
built-in default. On Windows the configureddomain.envhad been written to
the pre-rename directory, and once the new config directory existed the
resolver stopped looking there: the node silently fell back to the built-in
default and minted every share and page link onsmart-server.onlinewhile
its tunnel went to the Tailscale name. Tokens (printed by the gateway) and
links (printed by the node) disagreed, and only machines with ahosts
override could open the links at all. -
Text shares rendered as mojibake. The share server answered
Content-Type: text/plainwith no charset, so a Russian Windows decoded the
UTF-8 bytes as windows-1251:какbecameкак. -
A published site returned 404 for its own assets. The nginx snippet
answered 404 for.json,.log,.conf,.env,.yml/.yaml,.bak,
.old,.sql,.inipaths and for/vendor/,/node_modules/,
/wp-content/,/wp-admin/— scanner-noise control that also matched real
files inside a share (manifest.json,package.json, a vendored bundle). -
A BOM in
shares.jsonemptied the share registry. PowerShell writes one
withSet-Content -Encoding UTF8;json.loadthen failed, the failure was
swallowed as "no shares", and every published link answered 404. -
The served
install.shhad CRLF line endings (published from a Windows
checkout), socurl … | bashdied on$'in\r'.
The fix
- The gateway announces its public domain to every node when the tunnel
connects ({"type":"hello","public_base":…}) and the node adopts it for all
link generation (core.agent.apply_gateway_hello). One config — the
gateway'sdomain.env— switches tokens, file links and page links
together; a node's owndomain.envremains the fallback for a gateway that
does not announce one. Nodes logPublic links: <url> (source: …)at startup,
so a silent fallback can no longer hide. - Text responses carry
; charset=utf-8, added by the node's share handler and
by the gateway's relay (which also covers a node still running older code).
An explicit charset sent by the node is never overridden. - The share namespace
/<node>/<slug>-<16 hex>/…is matched before the
scanner rules in the nginx snippet. shares.jsonis read withutf-8-sig.- The published installers bake the domain and are served with LF.
New tests pin the relay charset (including the "node sends no charset" case and
that an explicit charset survives), the BOM-tolerant registry, the hello payload
and its adoption by the node.
Upgrading
Nodes update through mesh_update / npx as usual. A node that keeps its own
domain.env keeps working either way; once it runs 0.5.2 it also follows a
domain change made on the gateway alone.
Remote Harness MCP v0.5.1
Remote Harness MCP 0.5.1 — a fresh install can start again
A patch release for 0.5.0, which could not be installed from scratch on either
platform.
What was broken
0.5.0 moved every OS-specific behaviour into a package, core/platforms/<os>/….
Both installers bootstrap a new node by fetching a list of files, and both lists
were flat (core/*.py): the package was never downloaded. A node installed that
way — curl … | bash on Linux, irm … | iex on Windows — died on the first
import:
ImportError: cannot import name 'platforms' from 'core'
A node that already had the code (mesh_update, npx, a git checkout) was not
affected, because the update payload ships the whole tree. Only a fresh
install was broken, which is exactly the case the curl and npx packages exist for.
The fix
install.shandinstall.ps1fetchcore/platforms/…with its directories,
and create each file's parent directory before writing (a nested path used to
fail silently).install.ps1was also missingagent_harness.py,code_cache.py,
device.py,hooks.py,policies.py,rekey.py,redact.py,schemas.py,
subagents.py,termux.pyandtriggers.py; its list now matches
install.sh.tests/test_installer_bootstrap.pywalkscore/recursively, checks that
both installers agree with the tree, and then does what the installer does:
copies exactly the listed files into a temporary directory and imports
core.mcp_toolsfrom it. That import is what failed here, so it is now a test.
Upgrading
Nodes on 0.5.0 update through mesh_update as usual — the payload is complete
there. Nothing else changed in this release.
npx remote-harness-mcp@0.5.1 and gemini-computer-use@0.5.1 publish the same
code; the curl installers on the shared domain were redeployed with it.
Remote Harness MCP v0.5.0
Remote Harness MCP 0.5.0 — the node can be steered, and it remembers
24 tools became 28: the node gained three ways to be driven from the chat
(node_control, goal, schedule) and one to look at its own screen
(screen_capture). Everything that used to require walking to the machine —
read-only, the working directory, the isolated container, pause — is now an MCP
call; and a long task no longer has to fit into a 30-second tool call.
New tools
| Tool | What it does |
|---|---|
node_control |
The node's own switches: status, mode (read_only/approval/full), cd (the working directory every other tool resolves against), pause/resume, sandbox (the isolated Docker/Podman container) and remote_control. Changes apply to the next call; nothing restarts. |
goal |
The objective this chat is working on, stored on the node: set, get, complete, blocked, clear. It survives a reconnect, an agent restart and a new session — the next initialize carries it back into the session instructions. |
schedule |
Timers, the honest answer to "a tool call must return in ~30 s". after_sec, every_sec (≥10) or at="HH:MM" daily, with an optional command that starts as a background job when it fires. The firing becomes a continuation: it is injected into the session instructions and mesh_status until it is acknowledged with schedule(action="ack"). |
screen_capture |
The desktop of the node it runs on: GDI on Windows, CoreGraphics on macOS. A headless server answers available: false with the reason instead of a black image. Linux has no portable screen API — an X11 session needs a client library the node does not ship, Wayland refuses cross-client pixels, and a server has no display — so Linux reports that honestly rather than pretending. |
Approvals: a confirmation continues the call
In approval mode a mutating call used to end with approval_required, which
made the model stop after every step and ask the user to continue. Now the node
queues the call, waits for the operator and runs it in the same call:
ainrhmapproves once and the waiting call continues;A(orrhm approvals allow) allows everything until revoked — one press for
a whole task;R(rhm approvals off) restores the prompt;- changing the access mode revokes a standing "always", so switching to approval
means approval again; - the cabinet (
/account) no longer asks the node to approve the owner's own
click — a logged-in person is not a model.
The cabinet
/account now does something: a device is linked once by name plus its link key
(lk_…) or device token, and the page then shows and changes the same switches
as rhm — the remote-control lock first (right after login, with the warning
that it can only be turned back on at the machine), then mode, working directory,
isolation and pause. Cabinet buttons, the console menu and rhm subcommands all
go through one implementation, core/settings.py, so they cannot disagree.
rhm without the menu
rhm status
rhm mode read_only|approval|full
rhm cd /path/to/project
rhm isolation on|off
rhm remote-control on|off
rhm pause | rhm resume
rhm approvals allow [minutes] | once | off
rhm goal "text" | rhm goal | rhm goal done "note"
rhm schedule | rhm schedule cancel <id> | rhm schedule ack [id]
rhm --json statusOne platform contract instead of scattered if os.name branches
Every OS-dependent behaviour lives in core/platforms/ behind a single
PlatformBackend contract, and core/mcp_tools.py, core/vitals.py and
core/device.py delegate to it:
- Windows — telemetry, process tree and screenshots through Win32/ctypes
(GlobalMemoryStatusEx,GetSystemTimes,GetDiskFreeSpaceExW, Toolhelp32,
GDI). No PowerShell, WMI,taskkillor Git is required, and a clean install
answers. - Linux —
/procand/sysreplacedf/free/ps/uptime; process
control is a syscall. - Android —
/proc+/sysfirst, Termux:API only where Android forbids the
rest (camera, SMS, location, clipboard). - macOS —
sysctlbynameandstatfsfor telemetry (the numbers Activity
Monitor shows),libprocfor liveness and resident memory, CoreGraphics for a
screenshot,pbcopy/pbpastefor the clipboard. The backend was announced in
an earlier commit but not actually built; it exists now, and a test builds it
on every host.
Fixes
- Background jobs stream. A Python child whose stdout is a pipe
block-buffers, so a long download reported nothing for minutes and looked
stuck; every child now getsPYTHONUNBUFFERED=1unless the operator set it. - One configuration directory. The agent wrote its heartbeat to the new
directory whilerhmand the watchdog read the pre-rename one, so a connected
node looked dead and the watchdog could start a duplicate. The agent now
resolves the directory throughcontrol.control_dir(). - The watchdog, the doctor and the updater find the node again. They chose
the configuration directory by "does the new path exist", and a cabinet
database was enough to create it;agent.envdecides now. - The gateway reports its public host.
core/domain.pywas importable but
its own import failed on the deployed layout, sohostwas empty. - The bootstrap lists carry every module.
core/goal.py,
core/schedule.py,core/settings.pyandcore/web_settings.pyare fetched
byinstall.sh/install.ps1, so a fresh node is not missing a module a tool
imports.
Upgrading
Nodes update themselves: the release publishes mesh-payload-0.5.0.zip with its
SHA-256, and mesh_update installs it, verifies the hash and restarts. The token
and the MCP URL already in Gemini are unchanged — see 0.4.8 if that question is
new. npx remote-harness-mcp@0.5.0 and the gemini-computer-use alias publish
the same code.