Skip to content

Releases

sync_gate 0.2.0

Choose a tag to compare

@KAYOKG KAYOKG released this 28 Nov 15:44

sync_gate 0.2.0

Hardening of the files sync_gate trusts, limits and recovery for the MCP hub, and the MCP 2026-07-28 replies. Changes since 0.1.4 (#23 to #34, and #35). Two changes can stop a config from loading: read Breaking before you update.

Breaking

  • An MCP server's cwd must be absolute (#32). In [mcp.<name>], cwd must be "inherit" or an absolute path. A relative cwd no longer loads, and that includes /x on Windows, which is not absolute there. env and env_from names must be valid variable names (not empty, no =, no NUL). Before, a relative cwd was resolved from the daemon's folder by the hub and from the session's folder by the relay. Fix: write the full path, or "inherit".
  • Files another account can change are refused (#34). config.toml and the other files sync_gate trusts (the adoption record, the shims, the stored commands of queued tickets, the daemon's records, the PostgreSQL cluster it runs) are refused when an account other than yours can change them. On Windows, the owner and the permissions of the data folder, its parents and each file are checked; a link or other reparse point, a share, or a drive that is not local and fixed is refused, and the message gives the icacls command that fixes it. On Linux and macOS, a file must be yours, not writable by group or others, and have one link: a config.toml owned by another account (root included), for example under /etc, or in a folder your group can write, is not read. sync_gate never repairs a refused file; what to do for each one is in SECURITY.md.

Security hardening

  • Every file sync_gate trusts is checked and then read from the same handle, and a file another program has open for writing is refused.
  • File names that Windows would change or read as something else (a final dot or space, a stream, a device name) are refused before the path is resolved.
  • The control and hub pipes name the user as their owner, as the guest pipe already did (#24).
  • The installer checks its own folder and files (bin\, launcher.cmd, install-state.json, rollback\) with sync_gate paths --check, run by the downloaded binary verified against SHA256SUMS, before it reads its state or resumes a rollback. An uninstall without the installed binary reads no state.
  • The hub answers a client request without "jsonrpc":"2.0" with -32600, before it reaches any queue or server.

Hub

  • Rejected initialize (#31). When the first shared server answers the hub's initialize with an error, its sessions run the server themselves instead of failing. A timed-out initialize still restarts through the backoff.
  • Subscribers (#31). A session whose instance is in crash backoff is served by a ready instance; its resources/subscribe and resources/unsubscribe still wait for the instance that holds them.
  • Recovery (#31). An unsupported server is probed again after 10 minutes. A key is not retired, and an extra instance is not shrunk, while its crashes still count towards a crash loop.
  • Relay fallback (#29). When the hub is lost, the relay replays the client's initialize (up to 8 MiB, any field order) to its own server and checks the whole reply. If it cannot, the session ends with an error instead of running a server that never saw the handshake.
  • Supervisor (#30). Restart notes carry the exit code. Startup cleanup honors stop_grace_secs (1 to 300, default 5) under one total deadline and keeps the state of a child it cannot stop or identify. Each spawn gets its own launch id, so a reused pid never inherits an exit code.
  • One request deadline (#23). A request queued in the hub or the mux keeps the deadline it got when the client sent it, instead of a fresh one when it leaves the queue.
  • Memory (#24, #33). Hub memory is net of what a just-admitted job reserved, and the core counts hub units not measured yet.

MCP spec

#32, for a stateless server, where the hub speaks the 2026-07-28 revision to its clients:

  • a version other than 2026-07-28 gets -32022 with supported and requested;
  • a request missing clientCapabilities gets -32602;
  • results carry resultType;
  • subscriptions/listen is acknowledged with an empty notifications filter; a legacy client still gets -32601;
  • list_changed goes only to sessions that opened with initialize;
  • server/discover is answered as a modern request on a stateless server.

Limits

#33. Fixed values, documented in docs/install.md. A session cut by a limit runs its server itself, as when the hub is down.

Limit Value
Connections to the hub at once 256; one more is closed before anything is read
Write deadline per message to a session 30 s; past it the session is disconnected (stopped reading for 30 s)
Budget shared by every hub queue 256 MiB; past it, a queue holding more than its share takes nothing more
Deadline of the initialize replay the server's request_timeout_secs (default 300)

Fixes

  • Leftover processes on Windows (#27, #28). The recorded start time of a leftover process is the full 100 ns creation time instead of whole seconds, and the check and the stop go through one handle. Rows written in seconds by older versions are forgotten without touching the process.
  • sync_gate wait N while another wait renews the same ticket (#34). It used to exit 2 and ask you to run the original command again while the other wait was running it. It now retries for up to 1 s and, if the renewal lasts, exits 1 as busy.
  • pg_ctl start with no server.log (#13, #26). The starter gets three distinct standard handles; on the GitHub Windows runner, 114 failures in 32000 starts before, 0 in 32000 after.

Plugin

  • New installs use the Sync Labs catalog: claude plugin marketplace add sync-labs-team/plugins and sync-gate@sync-labs (#25). The old sync_gate catalog still works.

Install

Windows (PowerShell):

irm https://gate.synclabs.team/install.ps1 | iex

macOS and Linux:

curl -fsSL https://gate.synclabs.team/install.sh | sh

If an earlier version is installed, the same command updates it. Fix a relative MCP cwd first, or the daemon will not load that config. More in docs/install.md.

Downgrade

Pin the older version with the same command:

& ([scriptblock]::Create((irm https://gate.synclabs.team/install.ps1))) -Version 0.1.4
curl -fsSL https://gate.synclabs.team/install.sh | sh -s -- --version 0.1.4

A version before 0.2.0 cannot check the installer's files; the installer says so and goes on because you pinned it. On Windows, going back to 0.1.1 or older loses the value a SYNC_GATE_* user variable had before sync_gate first wrote it. Details in docs/install.md.

Known limits

From SECURITY.md:

  • Pending command files are readable by other accounts on Windows when a sandbox setup grants them read access to the profile. Do not put a secret on the command line.
  • A refused file is not repaired, and what is checked is its state when it is read: a program that opened a file for writing before its permissions were fixed keeps that access.
  • The program files and the logon task are checked by the installer only, once, before it starts. An uninstall trusts the installed sync_gate.exe to check.
  • A shims folder already on your user PATH keeps running until you delete it and run sync_gate shims install.
  • The release binaries are not code-signed. Check them against SHA256SUMS.
  • The update check calls GitHub once every update_check_days, and the cost key shown in sync_gate status reaches the agent's model provider.

From #2, still open:

  • The hub pipe has no cross-account test yet, and the elevated-daemon case was checked by reading the code, not on a machine.
  • notifications/message from a stateless server stays dropped (no request id to route it on stdio), and the relay keeps an acknowledged subscriptions/listen id in flight until the connection ends.
  • Incoming-line buffers are outside the 256 MiB budget, writes to a server's stdin have no deadline, and the budget ceiling shows only in the log.
  • Large messages are parsed twice, and the time spent under...
Read more

sync_gate 0.1.4

Choose a tag to compare

@KAYOKG KAYOKG released this 27 Nov 16:02

sync_gate 0.1.4

Fixes for Windows, the MCP hub and the test suite. Changes since 0.1.3 (#17 to #22).

Fixes

  • An elevated daemon accepts sandbox guests again (#12). On Windows, a daemon started from an elevated shell created the guest pipe owned by Administrators, and guests in the sandbox refused it. The pipe now names the user as its owner.
  • pg_ctl output in the start error (#13). When the PostgreSQL start fails, the error now carries what pg_ctl printed, and the start is repeated once when nothing started.
  • Hub race with many sessions (#2). With 10 sessions starting at once, the relay sometimes ran the MCP server directly instead of going through the hub (6 to 8 failures in 40 runs before, 0 in 40 after). The hub pipe holder check is now retried; if the holder list does not settle, the relay refuses to start (fails closed) instead of running the server on its own.

CI and tests

  • The CI runs every test (#15). The test jobs no longer stop at the first failing test binary (--no-fail-fast). The hosted Windows runner of GitHub now runs the whole suite, and it is green for the first time.
  • Stable guest_connections test (#14). The guest deadlines now start after the clients are held (17 failures in 100 runs before, 0 in 100 after).

Documentation

  • Known limit of a 0.1.2 crash journal (#16). If the 0.1.2 installer crashed in the middle of a reinstall and 0.1.3 or newer recovered its journal, an empty SYNC_GATE_* MultiString variable you had set yourself is removed instead of restored: the 0.1.2 journal records an empty MultiString and a missing variable the same way. This is documented, not changed. Details in docs/install.md.
  • Downgrade from 0.1.3 to 0.1.2 documented: it works, nothing is lost on that step, and 0.1.2 ignores update_check_days and leaves update-check.json in place.

Install

Windows (PowerShell):

irm https://gate.synclabs.team/install.ps1 | iex

macOS and Linux:

curl -fsSL https://gate.synclabs.team/install.sh | sh

If an earlier version is installed, the same command updates it. More in docs/install.md.

Downgrade

Pin the older version with the same command:

& ([scriptblock]::Create((irm https://gate.synclabs.team/install.ps1))) -Version 0.1.3
curl -fsSL https://gate.synclabs.team/install.sh | sh -s -- --version 0.1.3

On Windows, going back to 0.1.1 or older loses the value a SYNC_GATE_* user variable had before sync_gate first wrote it: an uninstall then deletes the variable instead of restoring it. Write those values down before you go back. Details in docs/install.md.

Known issues

  • #13: pg_ctl start sometimes exits 1 with no server.log. The root cause is still unknown; the error now shows the pg_ctl output, so please paste it in the issue if it happens.
  • #14: the declared_extensions tests may still be flaky under load (did not reproduce in 180 attempts).
  • #2: the rest of the MCP hub reliability and resource limits work.

Files

File System
sync_gate-0.1.4-x86_64-pc-windows-msvc.zip Windows x64
sync_gate-0.1.4-x86_64-unknown-linux-musl.tar.gz Linux x64 (static)
sync_gate-0.1.4-aarch64-unknown-linux-musl.tar.gz Linux ARM64 (static)
install.ps1, install.sh installers
SHA256SUMS checksums of all files above

License

MIT or Apache-2.0, at your option.

sync_gate 0.1.3

Choose a tag to compare

@KAYOKG KAYOKG released this 27 Nov 13:05

sync_gate 0.1.3

A behavior change in sync_gate run, a weekly update notice, and fixes in the Windows installer. Changes since 0.1.2 (#9, #10, #11; the rest of #1).

Behavior change: sync_gate run always queues

A command typed after sync_gate run now always goes through the queue, and gets its own cost key in the memory model. Before, run sorted the command by its name like the shortcuts do, so a heavy job behind cmd.exe or the PowerShell tool ran free and never counted.

If you wrapped light commands in sync_gate run, they now wait for the queue too. Call them without run. The shortcuts (cargo, npm, pytest and the rest) did not change: they still let light commands through.

Update notice (on by default)

sync_gate status and the session hook of Claude Code and Codex print one line when a newer release exists, with the install command.

  • The daemon looks once every 7 days: one anonymous request to the GitHub releases API through curl. A command you type never makes the call. Offline, it stays silent; a look that fails waits the whole interval too.
  • Turn it off with update_check_days = 0 in config.toml. Off means no call at all. SYNC_GATE_UPDATE_CHECK=0 in the daemon's environment also works, but a variable in your shell does not reach a daemon that the installer started, so the config is the sure way.
  • A config that cannot be read counts as off.

Other changes

  • docker compose --profile p up --build and the other compose global options that take a value are recognized as heavy.
  • Tests and cargo xtask ci fixed for the hosted Windows runner (PowerShell module path, short and long temp folder names, xtask.exe relinked while it runs).

Installer fixes (Windows)

  • A SYNC_GATE_* user variable whose value is not text (a DWord or a QWord, for example) is never rewritten as text. The installer refuses before changing anything.
  • The uninstall journal records the kind of each value it leaves, so the rollback of a failed uninstall no longer takes an expanding value for one changed by someone else.
  • The install test compares only what the installer can change on the real machine (install folder, task, SYNC_GATE_* variables with their kind, profile blocks, agent configs), not every task and file.

Install

Windows (PowerShell):

irm https://gate.synclabs.team/install.ps1 | iex

macOS and Linux:

curl -fsSL https://gate.synclabs.team/install.sh | sh

If an earlier version is installed, the same command updates it. More in docs/install.md.

Downgrade

Pin the older version with the same command:

& ([scriptblock]::Create((irm https://gate.synclabs.team/install.ps1))) -Version 0.1.2
curl -fsSL https://gate.synclabs.team/install.sh | sh -s -- --version 0.1.2

0.1.2 ignores the update_check_days key, so the config can stay. On Windows, going back to 0.1.1 or older loses the value a SYNC_GATE_* user variable had before sync_gate first wrote it: an uninstall then deletes the variable instead of restoring it. Write those values down before you go back. Details in docs/install.md.

Known issues

  • #12: Windows, an elevated daemon rejects sandbox guests (the guest pipe owner is Administrators).
  • #13: pg_ctl start sometimes exits 1 with no server.log.
  • #14: flaky tests under load.
  • #15: the Windows CI job stops at the first failing test binary, so the hosted Windows runner has not run the whole suite. The full suite passes on a local Windows machine and on the hosted Ubuntu runner.
  • #16: recovering a crash journal left by 0.1.2 may delete an empty MultiString variable (not confirmed).

Files

File System
sync_gate-0.1.3-x86_64-pc-windows-msvc.zip Windows x64
sync_gate-0.1.3-x86_64-unknown-linux-musl.tar.gz Linux x64 (static)
sync_gate-0.1.3-aarch64-unknown-linux-musl.tar.gz Linux ARM64 (static)
install.ps1, install.sh installers
SHA256SUMS checksums of all files above

License

MIT or Apache-2.0, at your option.

sync_gate 0.1.2

Choose a tag to compare

@KAYOKG KAYOKG released this 27 Nov 03:00

sync_gate 0.1.2

Fixes in the queue rules, the Windows installer and the documentation. Changes since 0.1.1:

  • cargo xtask <anything> is now a heavy command and goes through the queue (#5).
  • Heavy commands are recognized when tool options come before the subcommand, such as cargo +nightly build, cargo --color always test, go -C web build, docker -c ctx build ., npm --prefix web run build, pnpm -C web build and yarn --cwd web build (part of #1).
  • sync_gate wait N runs the stored command with the environment of the shell that calls it, not the one that queued it. This is now said in the hook context, the agent skill and the READMEs; the ticket still stores no environment (#4).
  • Windows uninstaller: it no longer warns that a user variable was "changed by someone else" when the variable is already gone (#6).
  • Windows installer: a SYNC_GATE_* user variable that existed before sync_gate wrote it is given back, with its value and kind, on uninstall. Before, it was deleted. Installs made by 0.1.0 or 0.1.1 did not record the original value, so removing them deletes as before.
  • The minimum Rust version is now 1.95 (part of #1).
  • New scheduler test: a job whose estimate equals the budget is admitted (part of #1).

Install

Windows (PowerShell):

irm https://gate.synclabs.team/install.ps1 | iex

macOS and Linux:

curl -fsSL https://gate.synclabs.team/install.sh | sh

If an earlier version is installed, the same command updates it. More in docs/install.md.

Files

File System
sync_gate-0.1.2-x86_64-pc-windows-msvc.zip Windows x64
sync_gate-0.1.2-x86_64-unknown-linux-musl.tar.gz Linux x64 (static)
sync_gate-0.1.2-aarch64-unknown-linux-musl.tar.gz Linux ARM64 (static)
install.ps1, install.sh installers
SHA256SUMS checksums of all files above

License

MIT or Apache-2.0, at your option.

sync_gate 0.1.1

Choose a tag to compare

@KAYOKG KAYOKG released this 26 Nov 20:38

sync_gate 0.1.1

The GitHub organization name is now lowercase, sync-labs-team, in every place sync_gate points to GitHub: the links in the documents, the installers (install.sh, install.ps1), the Claude Code and Codex plugin manifests, and the instructions the MCP server sends. Everything else is the same as in 0.1.0.

Install

Windows (PowerShell):

irm https://gate.synclabs.team/install.ps1 | iex

macOS and Linux:

curl -fsSL https://gate.synclabs.team/install.sh | sh

If 0.1.0 is installed, the same command updates it. More in docs/install.md.

Files

File System
sync_gate-0.1.1-x86_64-pc-windows-msvc.zip Windows x64
sync_gate-0.1.1-x86_64-unknown-linux-musl.tar.gz Linux x64 (static)
sync_gate-0.1.1-aarch64-unknown-linux-musl.tar.gz Linux ARM64 (static)
install.ps1, install.sh installers
SHA256SUMS checksums of all files above

License

MIT or Apache-2.0, at your option.

sync_gate 0.1.0

Choose a tag to compare

@KAYOKG KAYOKG released this 26 Nov 18:34

sync_gate 0.1.0

First release. sync_gate is the gatekeeper of your machine: when several coding agents share one computer, their heavy commands (builds, tests, installs, docker build) wait in a queue until there is memory for them. Light commands never wait.

What is in it

  • A queue for heavy commands, reached through shortcuts on the PATH or sync_gate run -- <command>. Exit code 75 means "still queued": sync_gate wait N runs it later.
  • Shared MCP servers: a server you adopted (sync_gate mcp adopt <name>) serves all your sessions with up to 3 instances (the default) instead of one per session. You adopt servers by name; nothing is adopted for you.
  • A PostgreSQL database per command for declared projects, dropped when the command ends (docs/postgres.md).
  • Plugins for Claude Code and Codex (session hook or SessionStart context, a skill and the MCP server).
  • A proxy benchmark, with how to run it (docs/benchmark.md).

Install

Windows (PowerShell):

irm https://gate.synclabs.team/install.ps1 | iex

macOS and Linux:

curl -fsSL https://gate.synclabs.team/install.sh | sh

No administrator rights; it writes only to your own folders. The installer checks the release archive against SHA256SUMS before it changes anything; on macOS it builds the tagged source with cargo instead. Update, uninstall and recovery: docs/install.md.

Files

File System
sync_gate-0.1.0-x86_64-pc-windows-msvc.zip Windows x64
sync_gate-0.1.0-x86_64-unknown-linux-musl.tar.gz Linux x64 (static)
sync_gate-0.1.0-aarch64-unknown-linux-musl.tar.gz Linux ARM64 (static)
install.ps1, install.sh installers
SHA256SUMS checksums of all files above

macOS has no prebuilt file in 0.1.0: install.sh builds it with cargo (it needs Rust) and says so before it starts. It has not been run on a real Mac yet. Windows ARM64 is not part of 0.1.

Limits

  • On Windows, the files of pending commands can be read by the accounts of Codex's sandbox group. A pending command stays on disk until it runs, or for up to 25 hours. A guest in elevated mode that does not enqueue stays with no time limit, and so does an orphan marker. Do not put a secret on a command line. More in SECURITY.md.
  • The cost key (program, up to two short words, folder name) appears in sync_gate status, so it enters the agent's context and reaches the provider of the agent's model.
  • Sandbox commands join the queue only after the account is in guests; before that they run directly.
  • On Windows, the shortcut does not hide a program that exists only as a .ps1 when you run sync_gate shims install. If one appears later, it exits 127 with an instruction until the next install.
  • On Windows, the machine PATH comes before the user PATH: a program installed for all users goes through the queue only in PowerShell with the profile block. cmd.exe has no shortcuts. Elsewhere, wrap the command: sync_gate run -- <command>.
  • WSL and containers without systemd --user do not start the daemon by themselves; the installer says how to start sync_gated.

License

MIT or Apache-2.0, at your option.