Agentsync logo

Agentsync

Coordinates multi-agent work on shared Git repositories using claims, branch-backed state, and Git conflict checks.

Install Agentsync

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for agentsync, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The agentsync MCP server coordinates multiple AI agents working in the same Git repository through a shared coordination branch. It stores claims in a Git-backed `claims.json` board and uses push compare-and-swap behavior to detect competing claims before committing changes. Agents can survey peers, reserve paths, release or update claims, and check both declared overlaps and real merge conflicts. Reach for it when independent agents need to divide repository work without a separate lock service or continuous co-presence.

Use cases

  • Divide repository tasks among multiple coding agents
  • Survey peer claims before editing shared files
  • Reserve directories and dependencies before implementation
  • Check declared and textual conflicts before merging branches
  • Release abandoned work for another agent to take over

Key features

  • Git-backed coordination board on a dedicated branch
  • Path-aware claims with directory and glob overlap detection
  • Compare-and-swap updates through Git push
  • Peer surveys with stale-claim reporting
  • Declared-overlap and git merge-tree conflict checks
  • GitHub repository provisioning and collaborator management

Tools2

What Agentsync lets your agent do. Expand a tool for its parameters.

Self-reported~33 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 79d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit3mo agoMost recent push to the default branch.
Tools exposed2Callable tools this server registers over MCP.

How Agentsync works

What agentsync MCP server does

The agentsync MCP server coordinates agents that modify the same Git repository. Each agent records a claim containing its task, files it expects to touch, dependencies, working branch, and status. Other agents can inspect those claims before planning work, then reserve non-overlapping paths.

Coordination state lives in a claims.json file on a dedicated agentsync branch. Keeping this branch separate from the main development history prevents coordination data from entering normal code history. The board is a shared, long-lived repository artifact, and each collaborator can point the server at their own local clone of that board.

Path checks account for exact matches, parent-directory relationships, and globs. Paths are normalized before comparison, so equivalent forms such as ./auth.py and auth.py are treated as the same path.

How it works

The server reads the latest coordination state, evaluates the requested claim, and pushes an updated board. Git push acts as a compare-and-swap operation: if another update wins first, the server fetches the newer state and evaluates the request again. This lets a claim observe a competing claim before its own update is committed.

The server performs Git operations in a private worktree under .git/, leaving the agent's active code branch undisturbed. survey() reports peer tasks, paths, dependencies, branches, statuses, timestamps, claim age, and stale in-progress claims. claim() blocks when touched paths overlap an active peer claim or when required paths overlap a peer's in-progress work, unless force is requested.

After implementation, check_conflicts() compares the current branch with peer branches using two checks: declared path overlap and a textual git merge-tree dry run. This can reveal merge collisions that the original claims did not predict.

Setup and configuration

Install the Python dependency from requirements.txt; the project currently requires the mcp package. Configure the server as a standard stdio MCP process, providing each agent with its own identifier and local board clone.

AGENTSYNC_BOARD_REPO explicitly identifies the board clone, while AGENTSYNC_AGENT_ID identifies the collaborating agent. AGENTSYNC_REPO remains available as a legacy alias. AGENTSYNC_REMOTE defaults to origin, and AGENTSYNC_BRANCH defaults to agentsync. The branch is created automatically on the first survey() or claim() call when an explicitly addressed board is used.

GitHub operations require the GitHub CLI authenticated with repo scope. This applies to repository provisioning, collaborator invitations, and other GitHub-backed operations. provision() can create a private repository, initialize it, seed the coordination branch, and invite a collaborator; add_collaborator() grants access to an existing repository.

Tools and capabilities

  • survey() reads the latest board and identifies peer claims and stale work.
  • claim() reserves a task and its paths, with optional dependencies, branch, and forced override.
  • release() abandons the current claim without marking it complete.
  • update_status() sets planning, in-progress, or done; completed claims receive changed-file information based on the branch diffstat.
  • check_conflicts() checks declared overlaps and textual merge conflicts.
  • provision() bootstraps a shared GitHub repository; add_collaborator() invites users to an existing one.

The server supports multiple collaborators, not only two. Each agent should use a distinct ID because one ID represents one active claim; forced reuse is available for specified restart or exception cases and produces a warning when protection is displaced.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agentsync

agentsync is an MCP server that connects AI agents working in a shared Git repository through a Git-backed coordination board. Its main tools survey peer claims, reserve paths, release or update work, provision repositories, manage collaborators, and check declared or textual merge conflicts.

Install the Python dependency with `pip install -r requirements.txt`, then register the server as a stdio MCP process in your client. Set the board repository path and a unique agent ID for each collaborator. GitHub-backed operations also require an authenticated `gh` CLI with `repo` scope.

Set `AGENTSYNC_BOARD_REPO` to a clone holding the shared coordination board and `AGENTSYNC_AGENT_ID` to a unique agent name. Optional variables select the Git remote, coordination branch, stale-claim threshold, Git timeout, and GitHub partners. The server can create the coordination branch automatically.

It first compares claimed paths using exact matches, directory containment, normalized paths, and globs. `check_conflicts()` also runs a real `git merge-tree` dry run against peer branches, catching textual merge conflicts that declared intent did not predict.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgentsync AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agentsync?style=directory)](https://allmcps.com/mcp/agentsync)
HTML Embed
<a href="https://allmcps.com/mcp/agentsync"><img src="https://allmcps.com/api/badge/agentsync?style=directory" alt="Agentsync on AllMCPs" /></a>