Skip to main content

agent-sync

One canonical .agents/ folder, fanned out to all your AI coding agents.

Website and docs: https://agent-sync.sh/

The Commons — the canonical ~/.agents/ directory — holds the single real copy of every config you share: skills, instructions, MCP servers, slash commands, agents and hooks. agent-sync sync fans it out to every agent you actually have installed.

Configs that can be byte-identical everywhere are symlinked, so there is one file seen from ten places and drift is impossible by construction. Configs that cannot be — MCP servers and hooks, which live inside files the agent also owns, in formats no two agents share — are rendered and key-merged, with your other keys preserved.

There is no state file. There never will be. The filesystem is the state.

~/.agents/
├── skills/<name>/       fanned out as symlinks
├── commands/<name>.md
├── agents/<name>.md
├── AGENTS.md            symlink, import-line, include-entry, or rules-dir link per agent
├── mcp.json             rendered into each agent's native dialect
└── hooks/<Event>.toml   merged by command string

Install

npm install -g agent-sync-sh   # prebuilt binary, macOS, Linux and Windows, no toolchain
pip install agent-sync-sh      # the same binary, shipped as a wheel
cargo install agent-sync-sh    # from source, needs Rust 1.100+

npx agent-sync-sh doctor       # or try it first, without installing anything
uvx agent-sync-sh doctor       # the same, if you reach for uv rather than npm

On macOS and Linux there is also a Homebrew tap. It lives in this repository rather than a separate homebrew-agent-sync one, so it is tapped by URL:

brew tap agent-sync-sh/tap https://github.com/agent-sync-sh/agent-sync
brew trust agent-sync-sh/tap   # Homebrew 6 refuses to load untrusted third-party taps
brew install agent-sync

Use

agent-sync init            # create the Commons and report what this machine already has
agent-sync adopt <path>    # take a path under management; --dry-run names the mechanic
agent-sync sync            # fan out; --dry-run prints the full plan
agent-sync status          # what is linked, what is not, and what is not ours
agent-sync doctor          # installed agents, Commons hygiene, Sourced entries
agent-sync revert <agent>  # offboard one agent (refuses until you disable it)
agent-sync mcp list | adopt | remove | enable | disable

adopt picks its mechanic from where the path lives: a real config inside an agent's directory is moved into the Commons with a link left behind; a path inside a git repo becomes a Sourced entry — the Commons links out to it and the repo keeps the truth; anything else is copied in. To gate CI on drift use status (exit 0 clean, 2 actionable, 1 error) — sync --dry-run previews, it does not gate.

Agents

Claude Code, Codex, opencode, pi, oh-my-pi, OpenClaw, Hermes, Gemini CLI, Cursor, Windsurf, Roo and Cline. Detection is simply whether the agent's config directory exists — agent-sync never creates one. Agents that read ~/.agents/skills natively (Codex, opencode, oh-my-pi, Gemini CLI, Cursor) get no skill links written, because nothing needs to be — and where an agent still reads its old fan-out directory beside the Commons (Codex, Cursor), sync prunes agent-sync's now-duplicate links from it.

Interop

The Commons speaks the conventions that won: skills/<name>/SKILL.md — the layout opencode and friends read natively — one AGENTS.md, and an mcp.json in the standard mcpServers shape. .agents Protocol surfaces (tasks/, memories/, models.json, system-prompt.md) are recognized by doctor and never touched.

What it will not touch

Anything it does not own. A symlink pointing outside the Commons, a hand-written file, an MCP server whose name isn't in the Commons — all Foreign, all reported by status, none ever modified. A real directory shadowing a Commons entry is a Variant: deliberate, preserved, and counted as actionable only when its contents are identical to the Commons copy, so you can dedupe on purpose.

The Commons is exactly that — a commons, not agent-sync's alone. opencode, oh-my-pi and Hermes read ~/.agents/ themselves, and other tools keep their own files there. doctor names entries that aren't agent-sync's and leaves them be; status stays target-only, since a neighbour's file has no fan-out to report.

Configuration

Optional agent-sync.toml in $XDG_CONFIG_HOME/agent-sync/ (default ~/.config/agent-sync/): disable targets, define custom ones, choose each agent's instructions route, scope MCP servers per agent, per-agent Tweaks.

[instructions]
claude = "symlink"   # "symlink" or "import"; omitted, the agent's default

Claude, opencode and Gemini CLI offer both routes and default to import. Claude Cowork on the desktop skips a ~/.claude/CLAUDE.md that is a symlink (Claude Code memory docs), and it also skips an import that points outside the session's folder, so there it reads only CLAUDE.md's own text. For opencode and Gemini, symlink lets claude-mem, and Gemini's own memory tool, write through the link into the Commons. Every other agent takes the one route it has, and naming a route it lacks is a configuration error (ADR-0009).

The lock — agent-sync's only machine state — lives in $XDG_STATE_HOME/agent-sync/ (default ~/.local/state/agent-sync/). Environment: AGENT_SYNC_HOME relocates the Commons (doctor warns — native readers won't follow), AGENT_SYNC_TARGET_ROOT resolves everything against another root, AGENT_SYNC_LOCK_TIMEOUT_MS bounds the lock wait.

What it does not do

No cross-machine sync — version the Commons with git or chezmoi. No undo — refusals come before writes, sync plans everything before writing anything, sync and adopt preview with --dry-run, re-runs are idempotent, and a git-versioned Commons is better history than any journal. No memory sync: agent memory is not a defined artifact and agent-sync will not pretend otherwise. No GUI, daemon or file watcher. It does not install skills; it fans out whatever is in the Commons, whoever put it there.

On Windows, creating symlinks requires Developer Mode (Settings → System → For developers) or an elevated shell; sync says exactly that when it cannot link.

Name and inspiration

The name is a nod to GNU Stow, the classic symlink-farm manager — agent-sync does for agent configs what Stow does for dotfiles. The project is also inspired by two neighbours in the same space: dotagents and agentsync.

Documentation · agent-sync.sh · MIT

Metadata

Release files for agent-sync-sh 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for agent-sync-sh 1.3.0
File Actions
agent_sync_sh-1.3.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for agent_sync_sh-1.3.0-py3-none-win_arm64.whl
agent_sync_sh-1.3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for agent_sync_sh-1.3.0-py3-none-win_amd64.whl
agent_sync_sh-1.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for agent_sync_sh-1.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
agent_sync_sh-1.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for agent_sync_sh-1.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
agent_sync_sh-1.3.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for agent_sync_sh-1.3.0-py3-none-macosx_11_0_arm64.whl
agent_sync_sh-1.3.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for agent_sync_sh-1.3.0-py3-none-macosx_10_12_x86_64.whl
agent_sync_sh-1.3.0-py3-none-any.whl Python 3 none any Details for agent_sync_sh-1.3.0-py3-none-any.whl

Total release size: 4.7 MB

Release files / agent_sync_sh-1.3.0-py3-none-win_arm64.whl

Download URL agent_sync_sh-1.3.0-py3-none-win_arm64.whl
Size 737.8 kB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
07a59e02e702113cae172670097af991445c33bca783342a95aadae58d998d67
BLAKE2b-256 checksum
How to use checksums
5cc24192dd9a87755d65376d482420ec74d51a9a38ebb47c1602542049dbebb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / agent_sync_sh-1.3.0-py3-none-win_amd64.whl

Download URL agent_sync_sh-1.3.0-py3-none-win_amd64.whl
Size 815.9 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d8425e83a8ee3313ffadde02b909414e2d5efef7e1f1700c8251a2046f6452f4
BLAKE2b-256 checksum
How to use checksums
9df83fd7aeaf12c5a3f667bf9e7913bb69c0c14e4809fb90f4551beaf61422f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / agent_sync_sh-1.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL agent_sync_sh-1.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 836.8 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e0dda24ce2445d41a6517ca528f57091a971cb30dbc72814d87b6494a4bfcf34
BLAKE2b-256 checksum
How to use checksums
ee78534ebad036e14b5ff54d6ac2720fca9f386ab94fa377b45f44d85aa9d428
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / agent_sync_sh-1.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL agent_sync_sh-1.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 766.1 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c080050c279c59b56a864e59783656711ef546e3de51d7912de1113e85052955
BLAKE2b-256 checksum
How to use checksums
3f5429cd5ab4cce5b5b8a3091abee1c45a4255a962bd60ff6f415bbdefca67c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / agent_sync_sh-1.3.0-py3-none-macosx_11_0_arm64.whl

Download URL agent_sync_sh-1.3.0-py3-none-macosx_11_0_arm64.whl
Size 754.1 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b5b0d81c7540ad5d25c67b524fd5b294cdd72b8b5056b41bdb0b1f7d4169efea
BLAKE2b-256 checksum
How to use checksums
f6d7ff62903e1ef1e94e31b9d19317581ede8b0472c2a815d8dd66634b316d99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / agent_sync_sh-1.3.0-py3-none-macosx_10_12_x86_64.whl

Download URL agent_sync_sh-1.3.0-py3-none-macosx_10_12_x86_64.whl
Size 813.6 kB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
574876f32268eace3d37f8b142fdcfc022e96e6bec4c76b4ed5d17fdc45f9c7a
BLAKE2b-256 checksum
How to use checksums
966ffbac4a0cae68dc9d8adf06e5a82d5107687cb01593cf365839ffa45a4dcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / agent_sync_sh-1.3.0-py3-none-any.whl

Download URL agent_sync_sh-1.3.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04bf011eaa965ff4e65065443b5a2171cbc94394f0de1a6087be23766bce5810
BLAKE2b-256 checksum
How to use checksums
e45c741f0fb054652939b2781b090c2e88fed074423e272369c00d05b8b15c7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for agent-sync-sh 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for agent_sync_sh-1.3.0-py3-none-win_arm64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page