Urgent.News

What's breaking now, across thousands of outlets.

Tech

Announcing jj-musubi: live sync for Jujutsu

I am excited to introduce jj-musubi, a groundbreaking source control tool that enables live syncing of Jujutsu (jj) repository copies across multiple machines. As soon as jj snapshots your work, jj-musubi transfers it to all machines in a matter of moments, while also handling commits, rebases, and fetches. This simple feature proves to be incredibly powerful, allowing seamless collaboration between machines without the need to manage working locations.

This tool is particularly useful for individuals who work across several machines, as it treats the working copy as a commit, making snapshots readily available through jj status. The shell prompt can run jj status, so users rarely need to think about snapshots. Furthermore, each machine maintains its own working copy and workspaces, ensuring that syncs of commits, snapshots, and rewrites can occur without disrupting ongoing builds.

Users can work offline on a laptop, and the system will sync when back online. In addition, jj-musubi supports ephemeral uses by treating a collection of repo copies as a "hive." Agents can lease their repo's membership in the hive, automatically forgetting the repo if they fail to renew the lease. The synchronization mechanism relies on a hub and daemons exchanging history over SSH, creating a lightweight setup suitable for individual use.

Safety concerns are addressed through extensive testing, including Lean proofs of network protocol properties, Rust code comparisons to the model, and various mutation and adversarial tests. These tests cover concurrent edits, interrupted syncs, hub restarts, and numerous other challenging scenarios. Users can experience jj-musubi by downloading the binary or building it themselves using cargo install --locked jj-musubi.

After setting up the hub on a server machine and joining a local machine to it, jj-musubi will ensure seamless collaboration across devices.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at serpentine.com →

More in Tech

More from Friday 20 November →