agentsync
Sync Claude Code and Cursor rules, skills, and MCP configs from one source of truth. One CLI for Codex, Gemini CLI, and other AI coding agents.
Install / Use
claude mcp add x0c -- npx -y github:x0c/agentsyncIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of agentsync
agentsync scores 83/100 on our quality scale, 2984th of 4,722 Development & Engineering skills we index.
Its MCP Server is 8.2 KB long, well organised into 11 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated yesterday, so agentsync is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands (2 minor notes below).
- noteInstalls by piping a downloaded script into a shellline 22
irm https://raw.githubusercontent.com/x0c/agentsync/main/install.ps1 | iex - noteInstalls by piping a downloaded script into a shellline 28
curl -fsSL https://raw.githubusercontent.com/x0c/agentsync/main/install.sh | sh
Automated pattern scan on 2026-11-27. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
agentsync compared with similar skills
All 4 of these similar skills score higher than agentsync; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| agentsync (this skill)by x0c | 83 | 10 | 1d ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 122.3k | 1d ago | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 115.4k | 3d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 91.5k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.6k | today | CLAUDE.md |
Frequently asked questions
- How do I install agentsync?
- Run
claude mcp add x0c -- npx -y github:x0c/agentsync. The install tabs above show the steps for each supported agent. - Which AI agents does agentsync work with?
- It is written for Claude Code, Claude Desktop, Cursor, Gemini CLI and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is agentsync safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands (2 minor notes below). It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is agentsync still maintained?
- The repository was last updated yesterday, so agentsync is actively maintained.
Skill content
View source on GitHubLanguages: English | 简体中文
agentsync
One command to share rules, skills, and MCP configs across your AI tools.
Keep one copy across Claude Code, Codex, OpenCode, Gemini CLI, Antigravity, Qwen Code, Copilot CLI, Kimi Code, Grok CLI, Amp, Crush, Goose, Factory Droid, iFlow, Kilo, Pi, dsh, Cursor, Windsurf, Zed, CodeBuddy, Qoder, Junie, Kiro, JoyCode, and Aider Desk, plus the shared ~/.agents entry. A lightweight standalone binary.

A real Claude Code + Codex run; output excerpted for readability.
Local-first by design: 100% local execution · zero telemetry · dry-run preview (
agentsync --check) · automatic backup snapshots withagentsync --rollback latest.
Install
Windows — PowerShell:
irm https://raw.githubusercontent.com/x0c/agentsync/main/install.ps1 | iex
macOS / Linux — shell:
curl -fsSL https://raw.githubusercontent.com/x0c/agentsync/main/install.sh | sh
The installers download the matching release archive (agentsync_windows_<arch>.zip on Windows, agentsync_<os>_<arch>.tar.gz on macOS/Linux) and verify its SHA-256 checksum before installing. AGENTSYNC_INSTALL_DIR overrides the default (%LOCALAPPDATA%\Programs\agentsync\bin on Windows, ~/.local/bin on macOS/Linux); the Windows installer adds it to the user PATH.
macOS / Linux — Homebrew:
brew install --cask x0c/tap/agentsync
Any OS — Go 1.25.8+:
go install github.com/x0c/agentsync@latest
Add Go's bin directory to PATH if needed (usually ~/go/bin; %USERPROFILE%\go\bin on Windows).
Without an installer or Go: download and extract a release binary, then put it on PATH. Available for macOS and Linux (arm64 / amd64), and Windows (arm64 / amd64). Checksums are included.
Run
First preview, then apply:
agentsync --check
agentsync
That's it. agentsync merges your existing instructions, collects your skill folders, and imports your MCP servers into one shared source — then links or writes them back to each installed tool in its native format. Files replaced during sync are backed up automatically; tools you haven't installed are skipped.
From then on, maintain these files in ~/.config/agentsync/ (%USERPROFILE%\.config\agentsync\ on Windows):
| File | What you manage once |
|---|---|
| AGENTS.md | Global instructions |
| skills/ | Complete skill folders, including scripts and references |
| mcp.json | MCP servers |
| instructions/ | Optional per-tool fragments such as pi.md |
Run agentsync again after changes, or use the optional watcher below.
Optional commands
| Need | Command |
|---|---|
| Preview without writing | agentsync --check |
| Automatically apply source changes | agentsync --watch |
| Restore the latest backup | agentsync --rollback latest |
| Link a project's CLAUDE.md to its AGENTS.md | agentsync --repo |
| Print the version | agentsync --version |
See the workflow guide for background services, batch repository sync, filters, and backup details.
Good to know
- Default sync manages global configuration on this machine. Project files are handled by the separate repository mode.
- Support varies by tool. See instruction and skill support and MCP support.
- Instructions and skills use links where possible. Cursor gets a managed
.mdcrule; Antigravity stays linked up to22,000bytes and automatically splits larger canonicalAGENTS.mdfiles into managed~/.gemini/AGENTS.md+~/.gemini/config/rules/agentsync-part-*.mdparts (trigger: always_on) to avoid Antigravity's24,000-byte per-file truncation limit. On Windows, skill directories link as a symbolic link first, then an NTFS directory junction, otherwise agentsync reports an error naming Windows Developer Mode. See Cursor loading limits. - Exclude servers, skills, or instructions per tool with a
sync-policy.jsonbeside the canonical sources; see filtering. Filtering never removes content from the canonical source. - Add rules for one tool only with
instructions/<runtime>.md(for exampleinstructions/pi.md):agentsyncappends the fragment under a marked block and writes that runtime a managed copy instead of a link, so an extra restriction reaches only the tool that needs it. Tools without a fragment stay linked. Cursor keeps itsalwaysApplyfrontmatter, and Windsurf reports a warning above its 6,000-characterglobal_rules.mdlimit. See per-tool instructions. - Edit the shared source. The watcher pushes changes out to your tools; it does not import edits made in another tool's settings. Keep
mcp.jsonlocal: it may contain tokens and machine-specific paths..gitignore/.stignoreentries protectingmcp.jsonare written only when the configuration directory is already a Git repository (.git) or a Syncthing folder (.stfolder). - Safety checks reject unsupported arguments, invalid MCP entries, and unsafe skill-directory overlaps. Your own rules are merged in before copies are generated; Codex servers that share a name keep their local restrictions and authentication options. Rollbacks use collision-resistant backup snapshots, and
latestskips backups with no file changes. See the preservation boundaries.
Questions or a missing tool? Open an issue with the tool name, OS, and redacted output. Contributor instructions: AGENTS.md.
FAQ
How do I keep CLAUDE.md, AGENTS.md, skills, and MCP configs in sync across Claude Code, Cursor, Codex, and Windsurf?
Maintain one canonical source in ~/.config/agentsync/ (AGENTS.md, skills/, mcp.json, and optional instructions/<runtime>.md), preview changes with agentsync --check, and apply with agentsync or agentsync --watch. Inside a project repository, run agentsync --repo to link CLAUDE.md to AGENTS.md.
Is agentsync safe to run on existing configs? Does it upload my mcp.json secrets?
Yes. agentsync executes 100% locally with zero telemetry and never uploads your configurations, rules, or MCP tokens. Every replaced file is saved to a collision-resistant backup snapshot that you can restore via agentsync --rollback latest, and agentsync --check previews changes without writing.
How is x0c/agentsync different from manual symlinks?
Plain symlinks break when tools expect different file formats or enforce size limits. agentsync automatically generates Cursor .mdc rules with alwaysApply, splits Antigravity instructions above its 24 KB limit, handles Windows symbolic links or directory junctions, supports per-tool instructions/<runtime>.md fragments, and filters tools via sync-policy.json.
🧩 Related Tools in the AI Coding Suite
If you run multiple AI coding agents daily, check out the rest of the local-first toolkit:
| Repository | Description |
| :--- | :--- |
| corral | Run Claude Code, Codex, OpenCode, Cursor & Pi side-by-side in a terminal session manager, then continue from iPhone or Mac. |
| subswap | Check remaining quota and switch Claude Code, Codex, Cursor, Kimi Code & OpenCode accounts without logging out. |
| agent-doc-skills | Navigable project knowledge base skills (doc-init, doc-update, doc-compact) so coding agents don't rediscover your repo every session. |
| sesskit | Parse and export local Claude Code, Codex CLI, and Cursor session transcript files from disk. |
License
Related Skills
taste-skill
122.3kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
115.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
91.5kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.6k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
