Install
Open your repository
SyncStaff runs through npx, so there is nothing to install globally. You need Node.js 22.5 or newer.
cd path/to/your/repository
node -vSet up a project, connect an agent, take a first lease, and see what happens when a second agent wants the same file.
The path
Steps 1 to 4 connect your repository. Steps 5 to 8 show what SyncStaff does once agents start working.
Install
SyncStaff runs through npx, so there is nothing to install globally. You need Node.js 22.5 or newer.
cd path/to/your/repository
node -vConfigure
This creates a project named after the folder and writes the configuration your coding agents need.
npx -y syncstaff-mcp setup --create-projectConnect
The terminal prints a link and a six-character code, then waits. Open the link, check the code and the project, and approve. Setup finishes by itself. Then restart your coding agent so it loads SyncStaff.
Register
This folder is now bound to the project. Your agent appears on the Team page after its first call.
First declaration
Ask in a normal prompt. Before editing, the agent declares what it plans to change, and SyncStaff answers clear, conflict or escalate.
Change the greeting in src/app.ts.First lease
The agent then asks for a lease on the file. A lease lasts 15 minutes and renews while the agent keeps running.
First conflict
While the first agent holds its lease, open a second session in the same repository and ask it to change the same file.
Also change the greeting in src/app.ts.Agent instructions
The refusal names the file, who holds it and what they are doing. The agent can narrow its plan, pick up something else, or wait. A full refusal also becomes a decision that can reach a person.
{
"granted": false,
"conflicts": [{
"path": "src/app.ts",
"held_by_human": "your-github-login",
"vendor": "claude_code",
"intent_summary": "Change the greeting",
"expires_at": "2026-10-30T22:09:47Z"
}],
"partial_grant_available": false,
"human_decision_required": true,
"suggested_action": "wait"
}