Team sync

Team plan, not hosted yet

Lanes on different machines see each other live, with a shared dashboard and Slack alerts.

Team sync is built but the hosted service isn’t running yet. This page describes how it works; you can run the service yourself for testing (pnpm --filter @lanekeeper/cloud dev).

Today every developer’s daemon sees the lanes on their own machine. With Team sync, each daemon also connects to your team’s room, so a lane on a colleague’s laptop clashes with yours exactly like a second local worktree would.

Turning it on

lk login --server <url>      # confirm the code in the browser
lk sync on --org acme        # link this repository to your team

Until the hosted service exists there is no default server: pass your own with --server (or set LANEKEEPER_API_URL), and lk login says so when neither is set. After that, lk whoami, lk sync and the daemon use the server you signed in to, as long as it is the only one.

lk sync on links the repository on this machine and sets sync.enabled: true in .lanekeeper/config.yml if the file doesn’t say otherwise; commit that so teammates sync too. lk sync status shows the connection, and lk sync off unlinks this machine. The token is stored in ~/.lanekeeper/credentials.json, readable only by you.

What happens

  • Lanes everywhere: lk status lists the lanes on other machines, and clashes with them reach your agents through the same hooks and MCP tools as local ones.
  • Claims across machines: exclusive claims are granted by the room, so two people can’t hold overlapping exclusive claims.
  • Offline first: changes queue on your machine and are sent, in order, when you reconnect. Local warnings never wait for the network.

What is shared

Lanes (name, branch, base), the symbols each lane changed with their hashes and argument counts, the new uses it adds (symbol, file, line), claims and clashes. Never source code, diffs, signature text or prompts; each session’s one-line intent only after lk sync intents on (each developer decides for their own clone; the repository’s config can’t turn it on). See Privacy and data.

Hashed sync

To keep even names off the server, run lk sync key and commit the two files it touches: .lanekeeper/sync.key (the team’s key) and .lanekeeper/config.yml (sync.hashedSymbols: true). Names, paths, lane and branch names and claims then leave each machine hashed with that key. Clashes still reach your agents in plain names, because your machine reads back every name it also knows. The dashboard and Slack show hashes, and so does a teammate’s lane name you don’t have.

Lanes are compared only with lanes synced the same way: the same key, or plain names on both sides. If some teammates haven’t pulled the key yet, or have another one, lk sync status says how many lanes it can’t compare and what to do. Nobody is turned away. A running daemon picks up a pulled key or setting within a minute. Once a clone has synced hashed names, checking out a branch from before hashing turns sync off instead of sending plain names; lk sync plain allows plain names again. Rotate by deleting the file, running lk sync key again and committing; machines move over as they pull it. Claims on globs with a wildcard inside a name (src/auth*, **/*.ts) can’t be hashed, so they stay on your machine, and other machines aren’t warned about edits inside them.

In the dashboard

The dashboard shows each repository’s lanes live: what every lane is changing, its claims, and its clashes, which you can open and acknowledge. Alongside are the merge plan, pull-request checks, and clash history. For pull-request checks, give the GitHub Action a cloud-api-url (your team server) and a cloud-token: an API token with the ci scope, made in Settings → API tokens. Its verdicts then appear under the repository’s “PR checks”.

Slack

An owner or admin connects Slack in Settings and picks a channel. Lanekeeper posts when a new high-severity clash opens, and when a pull request’s check turns to “breaks”. Each message carries names and links, never code.

Plans

A new organization gets 14 days of the Team plan. After that, Team sync, Slack and history beyond 7 days need a Team subscription (Settings → Billing). Local tools keep working either way.