Metadata-Version: 2.4
Name: kasakir-agent-sync
Version: 0.11.3
Summary: Keep AI coding agents in step (Claude Code, Codex, Cursor, Gemini CLI, Antigravity): skill packages, agents, model roles, MCP servers and CLI updates.
License-Expression: MIT
Project-URL: Homepage, https://github.com/Kasakir-AI/agent-sync
Project-URL: Documentation, https://github.com/Kasakir-AI/agent-sync/tree/main/docs
Project-URL: Changelog, https://github.com/Kasakir-AI/agent-sync/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/Kasakir-AI/agent-sync/issues
Keywords: claude-code,codex,cursor,gemini-cli,antigravity,mcp,skills,ai-agents
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: Operating System :: Microsoft :: Windows :: Windows 11
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: THIRD_PARTY_LICENSES.md
Dynamic: license-file

# agent-sync

Keep your AI coding agents in step. agent-sync gives **Claude Code**, **Codex**, **Cursor**, **Gemini CLI** and
**Antigravity** one set of skills, MCP servers, subagents, instructions and memory, and keeps them up to date on a
schedule.

You pick the agents and one source agent. agent-sync copies what you set up in the source agent to the others. It
installs and updates your skill packages, plugins and CLIs. It asks before it removes anything. It runs on macOS,
Linux, and Windows 10 and 11.

> Status: 0.11.3. See the [changelog](https://github.com/Kasakir-AI/agent-sync/blob/main/CHANGELOG.md) and the [roadmap](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/ROADMAP.md).

## What it keeps in step

| What | How |
| --- | --- |
| Skills | Installs your skill packages for every agent. Copies skills you write in the source agent to the others. |
| Subagents | Writes package subagents in each agent's own format, with the models you choose. |
| MCP servers | Adds servers that are missing and repairs stale copies. Moves pinned versions up within their major version. |
| Instructions | Optional. Shares one set of global instructions with every agent. |
| Memory | Optional. Shares Claude Code's memory notes and keeps private ones back. |
| Status line | Sets one status line in Claude Code, Codex, Cursor and Antigravity. |
| Updates | Updates plugins, extensions, CLIs, MCP programs and agent-sync itself within your major versions. |

## Install

On macOS, use Homebrew:

```sh
brew install kasakir-ai/tap/agent-sync
```

On macOS or Linux without Homebrew, use uv or pipx. The PyPI package is `kasakir-agent-sync`. The `agent-sync`
package on PyPI is another project.

```sh
uv tool install kasakir-agent-sync        # or: pipx install kasakir-agent-sync
```

On Windows, run this in PowerShell. It installs git and uv when they are missing, then agent-sync, then runs
`agent-sync setup`.

```powershell
irm https://raw.githubusercontent.com/Kasakir-AI/agent-sync/main/install.ps1 | iex
```

agent-sync needs Python 3.11 or later. Homebrew and uv bring their own. Other ways to install, setup options and
uninstalling are in [install](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/install.md).

## First run

1. Find your agents and install what is missing. On macOS and Windows, `setup` installs git, Node and the agent
   CLIs you choose. On Linux without Homebrew, install git and Node with
   your package manager.

   ```sh
   agent-sync setup
   ```

2. See what the first run would change, without changing it.

   ```sh
   agent-sync run --dry-run
   ```

3. Run it, with every step on screen.

   ```sh
   agent-sync run --force
   ```

4. Schedule it. On macOS, `--launcher` also puts a double-click "Agent Upkeep" on the Desktop.

   ```sh
   agent-sync install --launcher
   ```

The schedule wakes every hour and at login. A run does the work once every 20 hours, so a day the computer was off
is caught up soon after it starts. On Linux the schedule is a systemd user timer. Run `loginctl enable-linger` to
let it run while you are logged out. On Windows it is a Task Scheduler task that runs without a window, and a
run's questions come up in a dialog.

## Everyday commands

```sh
agent-sync run --dry-run          # what the next run would change, without changing it
agent-sync pending                # what waits for your approval, and recent warnings
agent-sync pending --approve KEY  # let the next run go ahead with one item (--keep KEY: never)
agent-sync review                 # compare settings across agents in a local page and choose what to keep
agent-sync status                 # the last run, versions, log and backup size
agent-sync inventory              # what each agent loads, duplicates and outdated pins
agent-sync audit                  # check skills and MCP settings for credentials and risky commands
agent-sync restore                # list backups; agent-sync restore latest puts the newest one back
agent-sync config                 # change the settings by answering questions
agent-sync agents add gemini      # keep another agent in step (agents remove gemini to stop)
agent-sync skill suggest          # skills that fit the project you are in
```

`status`, `inventory`, `pending` and `audit` print JSON with `--json`. `audit` exits 1 when it finds something.
`agent-sync uninstall` removes the schedule and the launcher.

## Skills

agent-sync has a catalog of 130+ skills for 80+ technologies. A skill is a small bundle of instructions that teaches
an agent one kind of work. `agent-sync skill suggest` reads the project's files, such as `package.json`,
`pyproject.toml`, `Cargo.toml` and `Dockerfile`, and suggests the skills that fit.

```sh
agent-sync skill suggest                   # suggest skills for this project
agent-sync skill suggest --install --all   # install every suggestion without asking
agent-sync skill install docker-expert     # install one skill
agent-sync skill list kubernetes           # search the catalog
```

- About 100 skills install from their makers' own repositories, such as Angular, Cloudflare, Prisma, Supabase and
  Vercel. [Kasakir-AI/agent-sync-skills](https://github.com/Kasakir-AI/agent-sync-skills) fills the gaps. `agent-sync
  skill list` shows where each skill comes from.
- Each catalog skill is pinned to the commit that was reviewed. Upkeep does not move a pinned skill to a newer
  commit. To get a newer pin from a later agent-sync release, install the skill again.
- The review leaves out skills that steer agents to paid services, install other skills or MCP servers,
  pre-approve or auto-run commands, or give unsafe advice. The list and the reasons are in
  [`catalog/excluded.toml`](https://github.com/Kasakir-AI/agent-sync/blob/main/catalog/excluded.toml).
- `skill install` writes into the project you are in, for each agent you keep in step. Add `--global` to install
  for every project.
- `agent-sync skill install owner/repo/name` installs a skill the catalog does not list, from that repository's
  newest commit, unpinned.

Skill packages you want everywhere go in `skill_packages`. The default is
[pstack](https://github.com/backnotprop/pstack). If a package would replace a skill it did not install, such as
one you wrote, upkeep puts yours back and asks whether the package's version should replace it.

## Approvals and backups

- A run never removes something you or another program installed, and never installs a new major version, until
  you approve it. It asks in the terminal, in a desktop dialog, or in the
  [Plannotator](https://github.com/backnotprop/plannotator) Inbox when you have it.
- Before a run changes a file, it saves the original. `agent-sync restore` puts a backup back. Backups are
  kept for 30 days and up to 500 MiB in all (`backup_days`, `backup_max_mb`).
- Values that look like secrets stay in their agent. agent-sync does not copy them to MCP settings, shared memory
  or instructions.

More in [approvals and backups](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/approvals-and-backups.md) and [memory and privacy](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/memory-and-privacy.md).

## Review differences

`agent-sync review` opens a local page that compares instructions, rules, model roles, skills and MCP servers
across your agents. Pick the version to keep, check the lines each file gains or loses, and apply. agent-sync
writes only the lines that differ and backs up each file first. `agent-sync review --list` prints the comparison
in the terminal. More in [review](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/review.md).

## Settings

Run `agent-sync config` to change settings by answering questions. You can also edit
`~/.config/agent-sync/config.toml` yourself. Start from
[`config.example.toml`](https://github.com/Kasakir-AI/agent-sync/blob/main/config.example.toml). Every key is
optional. These are the most used:

| Key | Default | What it does |
| --- | --- | --- |
| `agents` | `["claude", "codex", "cursor"]` | The agents to keep in step. |
| `source` | `"claude"` | The agent the others follow. |
| `skill_packages` | `["backnotprop/pstack"]` | Skill packages installed for every agent. |
| `mirror_instructions` | `false` | Share global instructions. |
| `mirror_memory` | unset | Share Claude Code's memory notes. The first run asks. |
| `keep_installed` | `[]` | Items upkeep never removes or replaces. |
| `update_global_tools` | `false` | `true` also updates your global npm, pipx and uv tools. A list such as `["npm", "homebrew"]` picks the managers. |

More pages:

- [Configuration](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/configuration.md): every setting.
- [Make it yours](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/customizing.md): your own steps, models and notes.
- [What it keeps in step](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/what-it-keeps-in-step.md): everything it keeps in step, and how.
- [Status line](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/status-line.md): what the status line shows.

## What it changes

Paths start in your home folder. On Windows, that is `%USERPROFILE%`.

| Agent | Files |
| --- | --- |
| Claude Code | `~/.claude/skills/*`, `~/.claude/agents/*.md`, `~/.claude/rules/pstack-models.md`, `~/.claude.json` (`mcpServers`), `~/.claude/settings.json` (`statusLine`), `~/.claude/CLAUDE.md` (opt-in) |
| Codex | `~/.agents/skills/*`, `~/.codex/agents/*.toml`, `~/.agents/pstack-models.md`, `~/.codex/config.toml` (`[mcp_servers.*]`, `[tui] status_line`), Codex plugins, `~/.codex/AGENTS.md` (opt-in, memory index) |
| Cursor | `~/.agents/skills/*`, `~/.cursor/plugins/local/<package>-agents/`, `~/.cursor/rules/pstack-models.mdc`, `~/.cursor/mcp.json`, `~/.cursor/cli-config.json` (`statusLine`), `~/.cursor/rules/agent-sync-instructions.mdc` (opt-in, memory index) |
| Gemini CLI | `~/.agents/skills/*`, `~/.gemini/agents/*.md`, `~/.agents/pstack-models.md`, `~/.gemini/settings.json` (`mcpServers`), `~/.gemini/GEMINI.md` (opt-in, memory index) |
| Antigravity | `~/.gemini/config/skills/*`, `~/.gemini/config/agents/*.md`, `~/.agents/pstack-models.md`, `~/.gemini/config/mcp_config.json`, `~/.gemini/antigravity-cli/settings.json` (`statusLine`), Antigravity plugins, `~/.gemini/GEMINI.md` (opt-in, memory index) |
| All | `~/.agents/memory/*` (memory copies), MCP server programs and global tools through their package managers |

`agent-sync skill install` writes only into the project's skill folders, such as `.claude/skills` and
`.agents/skills`. With `--global`, it writes into the folders above.

agent-sync keeps its own files in the same places on every system:

- Settings: `~/.config/agent-sync/config.toml`
- State, backups and pending approvals: `~/.local/state/agent-sync/`
- Log: `~/Library/Logs/agent-sync.log` on macOS, `agent-sync.log` in the state folder elsewhere

`XDG_CONFIG_HOME` and `XDG_STATE_HOME` replace `~/.config` and `~/.local/state` when set.

## Safety

Skills, skill packages and the `skills` CLI run with your agents' full permissions. Install only what you trust,
and read a skill before you rely on it. Pin `skills_cli` to choose when the `skills` CLI updates. Read
[SECURITY.md](https://github.com/Kasakir-AI/agent-sync/blob/main/SECURITY.md) for more and for how to report a
problem.

## Support

agent-sync is free. If it helps you, you can [star the repo](https://github.com/Kasakir-AI/agent-sync), [buy me a coffee on Ko-fi](https://ko-fi.com/kasakir), or [sponsor on GitHub](https://github.com/sponsors/Kasakir-AI), once or monthly.

### Sponsors

<!-- sponsors:start -->
<!-- This section is updated automatically. Edits here are overwritten. -->

No sponsors featured here yet. [Become the first](https://github.com/sponsors/Kasakir-AI)!
All sponsors: [SPONSORS.md](https://github.com/Kasakir-AI/.github/blob/main/SPONSORS.md).
<!-- sponsors:end -->

## License

MIT, see [LICENSE](https://github.com/Kasakir-AI/agent-sync/blob/main/LICENSE). Skills in the catalog keep their
makers' licenses. pstack and the `skills` CLI are separate projects with their own licenses.
