Local-first two-way sync for agent skills, MCP servers and rules — across Claude Code, Codex, Gemini CLI, Cursor, VS Code Copilot and DSH.
SHA-256 state tracking, per-target backups, and conflicts that exit non-zero instead of quietly clobbering your work. Zero runtime dependencies.
npx skills add Jack91124/ai-extension-managerpip install git+https://github.com/Jack91124/ai-extension-managerSkills you write in one tool stay trapped there, and the sync scripts people write instead overwrite whatever changed last.
Every resource lives once under ~/.ai-extension-manager/library with a manifest, SHA-256 tree hash and version history. Agents consume copies or links from it.
Import scans any agent; distribute pushes to one, many, or every compatible agent. Each target records source_hash + target_hash so the next sync knows who changed what.
Both sides changed → conflict, exit code 2, nothing written. You resolve explicitly with --on-conflict, after automatic per-target backups.
mtime is not a merge strategy. aem compares library hash, last-synced hash and current target hash.
Not "yet another sync script" — the difference is how it decides what changed, and what it refuses to do.
| Capability | Manual cp / symlinks | One-way sync scripts | Tool built-ins | aem |
|---|---|---|---|---|
| Knows who changed what | mtime | mtime | single tool | 3 hashes + sync record |
| Both sides changed | overwrites | overwrites | tool-local | conflict, exit 2 |
| Cross-tool | manual, one by one | one direction only | no | six tools, both ways |
| Backup / rollback | no | no | partial | per target + versions |
| MCP secrets | copied as-is | copied as-is | varies | redacted, not synced |
| Works offline | yes | yes | varies | yes, zero deps |
Paths are verified against official docs and local installs. “Partial” means the directory is known but runtime behaviour is unverified on this machine.
| Tool | Skills | MCP | Rules | Plugins | Verified |
|---|---|---|---|---|---|
| Claude Code | yes | yes | yes | via plugin CLI | local |
| Codex | yes | yes | yes | config only | config-only |
| Gemini CLI | yes | yes | yes | extensions | docs |
| Cursor | yes | yes | yes | manual | partial |
| VS Code Copilot | yes | yes | yes | manual | local |
| DSH | yes | yes | yes | profile bundles | local |
Exact directories, MCP config files and plugin mechanisms for all six tools: where each tool keeps its skills →
Everything is dry-runnable, and every write is preceded by a backup.
# 1. see what is installed where aem scan # 2. pull a skill from one tool into the shared library aem import --source ~/.claude/skills/my-skill # 3. copy it to any other agent (or all compatible ones) aem sync --direction distribute --agent codex --agent cursor --resource my-skill # 4. prove the copies still match the library aem verify --all # 5. when both sides moved, look before you leap aem compare --resource my-skill --agent codex aem sync --direction distribute --agent codex --resource my-skill --on-conflict keep-target
No daemon, no network calls, no telemetry. It only touches the paths you point it at.
MCP configs are merged field-by-field; env values are redacted to ${ENV_VAR} in the library and never synced across tools.
Imports are statically scanned (curl | sh, eval, base64 blobs, credential paths) and high-risk items need explicit --allow-risk.
Every distribute and restore snapshots the target first; aem backup list/restore brings any version back.