kasakir-agent-sync 0.11.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. kasakir_agent_sync-0.11.0/LICENSE +21 -0
  2. kasakir_agent_sync-0.11.0/PKG-INFO +224 -0
  3. kasakir_agent_sync-0.11.0/README.md +194 -0
  4. kasakir_agent_sync-0.11.0/THIRD_PARTY_LICENSES.md +27 -0
  5. kasakir_agent_sync-0.11.0/agent_sync/__init__.py +6 -0
  6. kasakir_agent_sync-0.11.0/agent_sync/__main__.py +3 -0
  7. kasakir_agent_sync-0.11.0/agent_sync/agents.py +204 -0
  8. kasakir_agent_sync-0.11.0/agent_sync/audit.py +207 -0
  9. kasakir_agent_sync-0.11.0/agent_sync/backups.py +292 -0
  10. kasakir_agent_sync-0.11.0/agent_sync/catalog.py +258 -0
  11. kasakir_agent_sync-0.11.0/agent_sync/checks.py +38 -0
  12. kasakir_agent_sync-0.11.0/agent_sync/cleanup.py +87 -0
  13. kasakir_agent_sync-0.11.0/agent_sync/cli.py +1045 -0
  14. kasakir_agent_sync-0.11.0/agent_sync/config.py +186 -0
  15. kasakir_agent_sync-0.11.0/agent_sync/configure.py +602 -0
  16. kasakir_agent_sync-0.11.0/agent_sync/duplicates.py +258 -0
  17. kasakir_agent_sync-0.11.0/agent_sync/instructions.py +481 -0
  18. kasakir_agent_sync-0.11.0/agent_sync/inventory.py +285 -0
  19. kasakir_agent_sync-0.11.0/agent_sync/locking.py +39 -0
  20. kasakir_agent_sync-0.11.0/agent_sync/log.py +128 -0
  21. kasakir_agent_sync-0.11.0/agent_sync/mcp.py +627 -0
  22. kasakir_agent_sync-0.11.0/agent_sync/membership.py +89 -0
  23. kasakir_agent_sync-0.11.0/agent_sync/memory.py +278 -0
  24. kasakir_agent_sync-0.11.0/agent_sync/notify.py +402 -0
  25. kasakir_agent_sync-0.11.0/agent_sync/pending.py +161 -0
  26. kasakir_agent_sync-0.11.0/agent_sync/plugins.py +216 -0
  27. kasakir_agent_sync-0.11.0/agent_sync/privacy.py +71 -0
  28. kasakir_agent_sync-0.11.0/agent_sync/registry.py +122 -0
  29. kasakir_agent_sync-0.11.0/agent_sync/review.html +883 -0
  30. kasakir_agent_sync-0.11.0/agent_sync/review.py +969 -0
  31. kasakir_agent_sync-0.11.0/agent_sync/reviewpage.py +326 -0
  32. kasakir_agent_sync-0.11.0/agent_sync/roles.py +75 -0
  33. kasakir_agent_sync-0.11.0/agent_sync/schedule.py +321 -0
  34. kasakir_agent_sync-0.11.0/agent_sync/setup.py +163 -0
  35. kasakir_agent_sync-0.11.0/agent_sync/skill_catalog.json +2587 -0
  36. kasakir_agent_sync-0.11.0/agent_sync/skills.py +515 -0
  37. kasakir_agent_sync-0.11.0/agent_sync/statusline.py +380 -0
  38. kasakir_agent_sync-0.11.0/agent_sync/statuslines.py +133 -0
  39. kasakir_agent_sync-0.11.0/agent_sync/system.py +370 -0
  40. kasakir_agent_sync-0.11.0/agent_sync/textmerge.py +144 -0
  41. kasakir_agent_sync-0.11.0/agent_sync/tomledit.py +245 -0
  42. kasakir_agent_sync-0.11.0/agent_sync/tools.py +762 -0
  43. kasakir_agent_sync-0.11.0/agent_sync/upgrades.py +451 -0
  44. kasakir_agent_sync-0.11.0/agent_sync/writes.py +537 -0
  45. kasakir_agent_sync-0.11.0/kasakir_agent_sync.egg-info/PKG-INFO +224 -0
  46. kasakir_agent_sync-0.11.0/kasakir_agent_sync.egg-info/SOURCES.txt +95 -0
  47. kasakir_agent_sync-0.11.0/kasakir_agent_sync.egg-info/dependency_links.txt +1 -0
  48. kasakir_agent_sync-0.11.0/kasakir_agent_sync.egg-info/entry_points.txt +3 -0
  49. kasakir_agent_sync-0.11.0/kasakir_agent_sync.egg-info/top_level.txt +1 -0
  50. kasakir_agent_sync-0.11.0/pyproject.toml +60 -0
  51. kasakir_agent_sync-0.11.0/setup.cfg +4 -0
  52. kasakir_agent_sync-0.11.0/tests/test_agents.py +157 -0
  53. kasakir_agent_sync-0.11.0/tests/test_audit.py +146 -0
  54. kasakir_agent_sync-0.11.0/tests/test_backups.py +207 -0
  55. kasakir_agent_sync-0.11.0/tests/test_build_catalog.py +43 -0
  56. kasakir_agent_sync-0.11.0/tests/test_catalog.py +271 -0
  57. kasakir_agent_sync-0.11.0/tests/test_cleanup.py +184 -0
  58. kasakir_agent_sync-0.11.0/tests/test_configure.py +185 -0
  59. kasakir_agent_sync-0.11.0/tests/test_custom.py +56 -0
  60. kasakir_agent_sync-0.11.0/tests/test_duplicates.py +149 -0
  61. kasakir_agent_sync-0.11.0/tests/test_google_agents.py +203 -0
  62. kasakir_agent_sync-0.11.0/tests/test_instructions.py +744 -0
  63. kasakir_agent_sync-0.11.0/tests/test_inventory.py +197 -0
  64. kasakir_agent_sync-0.11.0/tests/test_log.py +50 -0
  65. kasakir_agent_sync-0.11.0/tests/test_mcp.py +506 -0
  66. kasakir_agent_sync-0.11.0/tests/test_membership.py +106 -0
  67. kasakir_agent_sync-0.11.0/tests/test_memory.py +494 -0
  68. kasakir_agent_sync-0.11.0/tests/test_notify.py +388 -0
  69. kasakir_agent_sync-0.11.0/tests/test_old_entry.py +172 -0
  70. kasakir_agent_sync-0.11.0/tests/test_package.py +70 -0
  71. kasakir_agent_sync-0.11.0/tests/test_pending.py +238 -0
  72. kasakir_agent_sync-0.11.0/tests/test_pending_cli.py +430 -0
  73. kasakir_agent_sync-0.11.0/tests/test_plugins.py +251 -0
  74. kasakir_agent_sync-0.11.0/tests/test_privacy.py +66 -0
  75. kasakir_agent_sync-0.11.0/tests/test_review.py +719 -0
  76. kasakir_agent_sync-0.11.0/tests/test_review_cli.py +170 -0
  77. kasakir_agent_sync-0.11.0/tests/test_review_instruction_regressions.py +125 -0
  78. kasakir_agent_sync-0.11.0/tests/test_review_mcp_stale.py +406 -0
  79. kasakir_agent_sync-0.11.0/tests/test_review_rule_regressions.py +83 -0
  80. kasakir_agent_sync-0.11.0/tests/test_review_skills_regressions.py +102 -0
  81. kasakir_agent_sync-0.11.0/tests/test_reviewpage.py +266 -0
  82. kasakir_agent_sync-0.11.0/tests/test_roles.py +34 -0
  83. kasakir_agent_sync-0.11.0/tests/test_run_order.py +56 -0
  84. kasakir_agent_sync-0.11.0/tests/test_schedule.py +186 -0
  85. kasakir_agent_sync-0.11.0/tests/test_setup.py +136 -0
  86. kasakir_agent_sync-0.11.0/tests/test_skill_collisions.py +227 -0
  87. kasakir_agent_sync-0.11.0/tests/test_skills.py +372 -0
  88. kasakir_agent_sync-0.11.0/tests/test_statusline.py +276 -0
  89. kasakir_agent_sync-0.11.0/tests/test_statuslines.py +240 -0
  90. kasakir_agent_sync-0.11.0/tests/test_subprocess_guard.py +13 -0
  91. kasakir_agent_sync-0.11.0/tests/test_system.py +159 -0
  92. kasakir_agent_sync-0.11.0/tests/test_system_marks.py +32 -0
  93. kasakir_agent_sync-0.11.0/tests/test_text_encoding.py +146 -0
  94. kasakir_agent_sync-0.11.0/tests/test_tomledit.py +158 -0
  95. kasakir_agent_sync-0.11.0/tests/test_tools.py +254 -0
  96. kasakir_agent_sync-0.11.0/tests/test_upkeep_updates.py +1180 -0
  97. kasakir_agent_sync-0.11.0/tests/test_writes.py +115 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kasakir-AI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,224 @@
1
+ Metadata-Version: 2.4
2
+ Name: kasakir-agent-sync
3
+ Version: 0.11.0
4
+ Summary: Keep AI coding agents in step (Claude Code, Codex, Cursor, Gemini CLI, Antigravity): skill packages, agents, model roles, MCP servers and CLI updates.
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/Kasakir-AI/agent-sync
7
+ Project-URL: Documentation, https://github.com/Kasakir-AI/agent-sync/tree/main/docs
8
+ Project-URL: Changelog, https://github.com/Kasakir-AI/agent-sync/blob/main/CHANGELOG.md
9
+ Project-URL: Issues, https://github.com/Kasakir-AI/agent-sync/issues
10
+ Keywords: claude-code,codex,cursor,gemini-cli,antigravity,mcp,skills,ai-agents
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: MacOS
15
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 10
16
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 11
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Software Development
24
+ Classifier: Topic :: Utilities
25
+ Requires-Python: >=3.11
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ License-File: THIRD_PARTY_LICENSES.md
29
+ Dynamic: license-file
30
+
31
+ # agent-sync
32
+
33
+ Keep your AI coding agents in step: one set of skills, MCP servers, subagents, instructions and memory for
34
+ **Claude Code**, **Codex**, **Cursor**, **Gemini CLI** and **Antigravity**, kept up to date on a schedule.
35
+
36
+ You pick the agents and one source agent. agent-sync copies what you set up there to the others, installs and
37
+ updates your skill packages, plugins and CLIs, and asks before it removes anything. It runs on macOS, Linux and
38
+ Windows 10 and 11.
39
+
40
+ > Status: 0.11.0. 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).
41
+
42
+ ## At a glance
43
+
44
+ | What | How it's kept in step |
45
+ | --- | --- |
46
+ | Skills | Skill packages install for every agent; skills you write in the source agent are copied to the others |
47
+ | Subagents | Package agents are written in each agent's own format, with the models you choose |
48
+ | MCP servers | Added where they're missing; stale copies repaired; pinned versions moved up within their major |
49
+ | Instructions | Optional: one set of global instructions shared by every agent |
50
+ | Memory | Optional: Claude Code's memory notes shared, with private ones kept back |
51
+ | Status line | One status line with model, limits, context and cost in every CLI that supports it |
52
+ | Updates | Plugins, extensions, CLIs, MCP programs and agent-sync itself, held to your major versions |
53
+
54
+ ## Install
55
+
56
+ Requires Python 3.11+, git, and Node (for `npx`).
57
+
58
+ ```sh
59
+ uv tool install kasakir-agent-sync # or: pipx install kasakir-agent-sync, or: brew install kasakir-ai/tap/agent-sync
60
+ agent-sync setup # find your agents; install missing prerequisites and CLIs
61
+ agent-sync run --dry-run # see what the first run would change
62
+ agent-sync run --force # first run, every step on screen
63
+ agent-sync install --launcher # schedule it; --launcher adds "Agent Upkeep" to the Desktop (macOS)
64
+ ```
65
+
66
+ On Windows, in PowerShell:
67
+
68
+ ```powershell
69
+ irm https://raw.githubusercontent.com/Kasakir-AI/agent-sync/main/install.ps1 | iex # git, uv and agent-sync, then setup
70
+ agent-sync run --dry-run
71
+ agent-sync run --force
72
+ agent-sync install # schedule it with Task Scheduler
73
+ ```
74
+
75
+ The schedule wakes hourly and at login and does the work once every 20 hours, so a day the computer was off is
76
+ caught up soon after it starts. On Linux it is a systemd user timer: run `loginctl enable-linger` to let it run
77
+ while you're logged out. On Windows it is a Task Scheduler task that runs without a window, and a run's questions
78
+ come up in a dialog.
79
+
80
+ On PyPI the package is `kasakir-agent-sync` (`agent-sync` there is another project); the commands are `agent-sync`
81
+ and `agent-sync-statusline`. A copy installed from git (`pipx install git+https://github.com/Kasakir-AI/agent-sync.git`
82
+ or `uv tool install git+...`) still works and keeps updating to each release's tag; a uv copy takes the package's
83
+ new name once by hand: run `install.ps1` again on Windows, or `uv tool install --force kasakir-agent-sync`. Installing without uv, pipx or
84
+ Homebrew, setup options and uninstalling: [install](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/install.md).
85
+
86
+ ## Everyday commands
87
+
88
+ ```sh
89
+ agent-sync review # compare settings across agents in a local page and choose what to keep
90
+ agent-sync pending # what's waiting for your approval, and recent warnings
91
+ agent-sync pending --approve KEY # let the next run go ahead with one item (--keep KEY: never)
92
+ agent-sync inventory # what each agent loads, duplicates and outdated pins
93
+ agent-sync status # the last run, versions, log and backup size
94
+ agent-sync audit # check what the agents load for credentials, curl | sh and paths outside a skill
95
+ agent-sync config # change the settings by answering questions
96
+ agent-sync agents add gemini # keep another agent in step (agents remove ... to stop)
97
+ agent-sync skill suggest # skills that fit the project you're in
98
+ agent-sync run --dry-run # what the next run would change, without changing it
99
+ ```
100
+
101
+ `status`, `inventory`, `pending` and `audit` print JSON with `--json`. `audit` exits 1 when it finds something.
102
+
103
+ ## Skills
104
+
105
+ agent-sync comes with a catalog of 130+ skills for 80+ technologies. A skill is a small bundle of instructions
106
+ that teaches an agent one kind of work. agent-sync spots what a project uses from its manifests and files
107
+ (`package.json`, `pyproject.toml`, `Cargo.toml`, a `Dockerfile` and more) and suggests the skills that fit.
108
+
109
+ ```sh
110
+ # Spot the project's technologies and see the skills that fit
111
+ agent-sync skill suggest
112
+
113
+ # Install a skill
114
+ agent-sync skill install docker-expert
115
+
116
+ # Install every suggestion without asking
117
+ agent-sync skill suggest --install --all
118
+
119
+ # Search the catalog
120
+ agent-sync skill list kubernetes
121
+ ```
122
+
123
+ - **Most skills come from their makers.** About 100 of them install from their makers' own repositories, such as
124
+ Angular, Vercel, Cloudflare, Anthropic, Clerk, Prisma, Supabase and WordPress, so you get the original, not a
125
+ copy. `agent-sync skill list` shows where each one comes from.
126
+ - **[Kasakir-AI/agent-sync-skills](https://github.com/Kasakir-AI/agent-sync-skills)** fills the gaps, with skills
127
+ for technologies whose makers don't publish one. Improvements and new skills are welcome as pull requests.
128
+ - **Each skill is pinned to the commit that was reviewed.** `agent-sync skill install` installs that exact commit,
129
+ and the `skills` CLI records it with a hash of the files. Upkeep doesn't move a pinned skill to a newer commit.
130
+ To get a skill's newer pin from a later agent-sync release, install it again.
131
+ - **What the review leaves out.** The catalog build runs the same checks as `agent-sync audit` on every listed
132
+ skill and flags what it finds. A person then reads each flagged skill and decides. Skills that steer agents to
133
+ paid services, install other skills or MCP servers, pre-approve commands or run them when they load, or give
134
+ unsafe advice are left out. The list and the reasons are in [`catalog/excluded.toml`](https://github.com/Kasakir-AI/agent-sync/blob/main/catalog/excluded.toml).
135
+ The official command that starts a new project, such as `npx @angular/cli@latest new`, stays in.
136
+ - Skills still tell your agent to run your project's own tools, such as `npx playwright test`, which use the
137
+ version your project pins. Your agent asks before running a command, as it always does.
138
+
139
+ Skills install into the project you're in, for each agent you keep in step. Add `--global` to install for every
140
+ project. `agent-sync skill install owner/repo/name` installs a skill the catalog doesn't list (`name` is the one in
141
+ its `SKILL.md`), from that repository's newest commit, unpinned.
142
+
143
+ Skill packages you want everywhere go in `skill_packages` (default: [pstack](https://github.com/backnotprop/pstack)).
144
+ Upkeep installs and updates them for every agent. If a package install would replace a skill it didn't install,
145
+ such as one you wrote, upkeep puts yours back and asks whether the package's version should replace it.
146
+
147
+ ## Approvals and backups
148
+
149
+ - A run never removes something you or another program installed, and never installs a new major version, until
150
+ you approve it. It asks in the terminal, in a desktop window, or in the
151
+ [Plannotator](https://github.com/backnotprop/plannotator) Inbox when you have it.
152
+ - Before changing a file, a run saves the original under `~/.local/state/agent-sync/backups/`. Backups expire
153
+ after 30 days or when they pass 500 MiB, starting with the largest.
154
+ - Values that look like secrets stay in the agent where they are: they aren't copied to MCP settings, shared
155
+ memory or instructions.
156
+
157
+ Details: [approvals and backups](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/approvals-and-backups.md), [memory and privacy](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/memory-and-privacy.md).
158
+
159
+ ## Review differences
160
+
161
+ `agent-sync review` opens a local page that compares instructions, rules, model roles, skills and MCP servers
162
+ across your agents. Each card says in one sentence what differs. Pick a version to keep, check the exact lines
163
+ each file gains or loses, and apply. Only the lines that differ are written, and every changed file is backed up
164
+ first. `agent-sync review --list` prints the same comparison in the terminal. More in [review](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/review.md).
165
+
166
+ ## Configure
167
+
168
+ Run `agent-sync config` to change settings by answering questions, or edit `~/.config/agent-sync/config.toml`
169
+ yourself (start from [`config.example.toml`](https://github.com/Kasakir-AI/agent-sync/blob/main/config.example.toml)). Every key is optional. The most used:
170
+
171
+ | Key | Default | What it does |
172
+ | --- | --- | --- |
173
+ | `agents` | `["claude", "codex", "cursor"]` | the agents to keep in step |
174
+ | `source` | `"claude"` | the agent the others follow |
175
+ | `skill_packages` | `["backnotprop/pstack"]` | skill packages installed for every agent |
176
+ | `mirror_instructions` | `false` | share global instructions |
177
+ | `mirror_memory` | unset | share Claude Code's memory notes (asked once) |
178
+ | `keep_installed` | `[]` | items upkeep never removes or replaces |
179
+ | `update_global_tools` | `false` | also update your global npm, pipx, uv (and Homebrew) tools |
180
+
181
+ Every setting: [configuration](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/configuration.md). Your own steps, models and notes:
182
+ [make it yours](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/customizing.md). The full list of what's kept in step and how:
183
+ [what it keeps in step](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/what-it-keeps-in-step.md). The status line: [status line](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/status-line.md).
184
+
185
+ ## What it changes
186
+
187
+ | Agent | Files |
188
+ | --- | --- |
189
+ | Claude Code | `~/.claude/skills/*`, `~/.claude/agents/*.md`, `~/.claude/rules/pstack-models.md`, `~/.claude.json` (`mcpServers`), `~/.claude/settings.json` (`statusLine`), `~/.claude/CLAUDE.md` (opt-in) |
190
+ | 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) |
191
+ | 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) |
192
+ | Gemini CLI | `~/.agents/skills/*`, `~/.gemini/agents/*.md`, `~/.agents/pstack-models.md`, `~/.gemini/settings.json` (`mcpServers`), `~/.gemini/GEMINI.md` (opt-in, memory index) |
193
+ | 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) |
194
+ | All | `~/.agents/memory/*` (memory copies), MCP server programs and global tools through their package managers |
195
+
196
+ `agent-sync skill install` writes only into the project's skill folders (`.claude/skills`, `.agents/skills` and
197
+ the like), or into the ones above with `--global`.
198
+
199
+ State, backups and pending approvals live in `~/.local/state/agent-sync/`. The log is
200
+ `~/Library/Logs/agent-sync.log` on macOS and `~/.local/state/agent-sync/agent-sync.log` on Linux.
201
+
202
+ ## Safety
203
+
204
+ Skills, skill packages and the `skills` CLI run with your agents' full permissions, so install only what you
205
+ trust and read a skill before you rely on it. You can pin `skills_cli` to choose when it updates. Read
206
+ [SECURITY.md](https://github.com/Kasakir-AI/agent-sync/blob/main/SECURITY.md) for how to report a problem.
207
+
208
+ ## Support
209
+
210
+ 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.
211
+
212
+ ### Sponsors
213
+
214
+ <!-- sponsors:start -->
215
+ <!-- This section is updated automatically. Edits here are overwritten. -->
216
+
217
+ No sponsors featured here yet. [Become the first](https://github.com/sponsors/Kasakir-AI)!
218
+ All sponsors: [SPONSORS.md](https://github.com/Kasakir-AI/.github/blob/main/SPONSORS.md).
219
+ <!-- sponsors:end -->
220
+
221
+ ## License
222
+
223
+ 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
224
+ separate projects with their own licenses.
@@ -0,0 +1,194 @@
1
+ # agent-sync
2
+
3
+ Keep your AI coding agents in step: one set of skills, MCP servers, subagents, instructions and memory for
4
+ **Claude Code**, **Codex**, **Cursor**, **Gemini CLI** and **Antigravity**, kept up to date on a schedule.
5
+
6
+ You pick the agents and one source agent. agent-sync copies what you set up there to the others, installs and
7
+ updates your skill packages, plugins and CLIs, and asks before it removes anything. It runs on macOS, Linux and
8
+ Windows 10 and 11.
9
+
10
+ > Status: 0.11.0. 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).
11
+
12
+ ## At a glance
13
+
14
+ | What | How it's kept in step |
15
+ | --- | --- |
16
+ | Skills | Skill packages install for every agent; skills you write in the source agent are copied to the others |
17
+ | Subagents | Package agents are written in each agent's own format, with the models you choose |
18
+ | MCP servers | Added where they're missing; stale copies repaired; pinned versions moved up within their major |
19
+ | Instructions | Optional: one set of global instructions shared by every agent |
20
+ | Memory | Optional: Claude Code's memory notes shared, with private ones kept back |
21
+ | Status line | One status line with model, limits, context and cost in every CLI that supports it |
22
+ | Updates | Plugins, extensions, CLIs, MCP programs and agent-sync itself, held to your major versions |
23
+
24
+ ## Install
25
+
26
+ Requires Python 3.11+, git, and Node (for `npx`).
27
+
28
+ ```sh
29
+ uv tool install kasakir-agent-sync # or: pipx install kasakir-agent-sync, or: brew install kasakir-ai/tap/agent-sync
30
+ agent-sync setup # find your agents; install missing prerequisites and CLIs
31
+ agent-sync run --dry-run # see what the first run would change
32
+ agent-sync run --force # first run, every step on screen
33
+ agent-sync install --launcher # schedule it; --launcher adds "Agent Upkeep" to the Desktop (macOS)
34
+ ```
35
+
36
+ On Windows, in PowerShell:
37
+
38
+ ```powershell
39
+ irm https://raw.githubusercontent.com/Kasakir-AI/agent-sync/main/install.ps1 | iex # git, uv and agent-sync, then setup
40
+ agent-sync run --dry-run
41
+ agent-sync run --force
42
+ agent-sync install # schedule it with Task Scheduler
43
+ ```
44
+
45
+ The schedule wakes hourly and at login and does the work once every 20 hours, so a day the computer was off is
46
+ caught up soon after it starts. On Linux it is a systemd user timer: run `loginctl enable-linger` to let it run
47
+ while you're logged out. On Windows it is a Task Scheduler task that runs without a window, and a run's questions
48
+ come up in a dialog.
49
+
50
+ On PyPI the package is `kasakir-agent-sync` (`agent-sync` there is another project); the commands are `agent-sync`
51
+ and `agent-sync-statusline`. A copy installed from git (`pipx install git+https://github.com/Kasakir-AI/agent-sync.git`
52
+ or `uv tool install git+...`) still works and keeps updating to each release's tag; a uv copy takes the package's
53
+ new name once by hand: run `install.ps1` again on Windows, or `uv tool install --force kasakir-agent-sync`. Installing without uv, pipx or
54
+ Homebrew, setup options and uninstalling: [install](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/install.md).
55
+
56
+ ## Everyday commands
57
+
58
+ ```sh
59
+ agent-sync review # compare settings across agents in a local page and choose what to keep
60
+ agent-sync pending # what's waiting for your approval, and recent warnings
61
+ agent-sync pending --approve KEY # let the next run go ahead with one item (--keep KEY: never)
62
+ agent-sync inventory # what each agent loads, duplicates and outdated pins
63
+ agent-sync status # the last run, versions, log and backup size
64
+ agent-sync audit # check what the agents load for credentials, curl | sh and paths outside a skill
65
+ agent-sync config # change the settings by answering questions
66
+ agent-sync agents add gemini # keep another agent in step (agents remove ... to stop)
67
+ agent-sync skill suggest # skills that fit the project you're in
68
+ agent-sync run --dry-run # what the next run would change, without changing it
69
+ ```
70
+
71
+ `status`, `inventory`, `pending` and `audit` print JSON with `--json`. `audit` exits 1 when it finds something.
72
+
73
+ ## Skills
74
+
75
+ agent-sync comes with a catalog of 130+ skills for 80+ technologies. A skill is a small bundle of instructions
76
+ that teaches an agent one kind of work. agent-sync spots what a project uses from its manifests and files
77
+ (`package.json`, `pyproject.toml`, `Cargo.toml`, a `Dockerfile` and more) and suggests the skills that fit.
78
+
79
+ ```sh
80
+ # Spot the project's technologies and see the skills that fit
81
+ agent-sync skill suggest
82
+
83
+ # Install a skill
84
+ agent-sync skill install docker-expert
85
+
86
+ # Install every suggestion without asking
87
+ agent-sync skill suggest --install --all
88
+
89
+ # Search the catalog
90
+ agent-sync skill list kubernetes
91
+ ```
92
+
93
+ - **Most skills come from their makers.** About 100 of them install from their makers' own repositories, such as
94
+ Angular, Vercel, Cloudflare, Anthropic, Clerk, Prisma, Supabase and WordPress, so you get the original, not a
95
+ copy. `agent-sync skill list` shows where each one comes from.
96
+ - **[Kasakir-AI/agent-sync-skills](https://github.com/Kasakir-AI/agent-sync-skills)** fills the gaps, with skills
97
+ for technologies whose makers don't publish one. Improvements and new skills are welcome as pull requests.
98
+ - **Each skill is pinned to the commit that was reviewed.** `agent-sync skill install` installs that exact commit,
99
+ and the `skills` CLI records it with a hash of the files. Upkeep doesn't move a pinned skill to a newer commit.
100
+ To get a skill's newer pin from a later agent-sync release, install it again.
101
+ - **What the review leaves out.** The catalog build runs the same checks as `agent-sync audit` on every listed
102
+ skill and flags what it finds. A person then reads each flagged skill and decides. Skills that steer agents to
103
+ paid services, install other skills or MCP servers, pre-approve commands or run them when they load, or give
104
+ unsafe advice are left out. The list and the reasons are in [`catalog/excluded.toml`](https://github.com/Kasakir-AI/agent-sync/blob/main/catalog/excluded.toml).
105
+ The official command that starts a new project, such as `npx @angular/cli@latest new`, stays in.
106
+ - Skills still tell your agent to run your project's own tools, such as `npx playwright test`, which use the
107
+ version your project pins. Your agent asks before running a command, as it always does.
108
+
109
+ Skills install into the project you're in, for each agent you keep in step. Add `--global` to install for every
110
+ project. `agent-sync skill install owner/repo/name` installs a skill the catalog doesn't list (`name` is the one in
111
+ its `SKILL.md`), from that repository's newest commit, unpinned.
112
+
113
+ Skill packages you want everywhere go in `skill_packages` (default: [pstack](https://github.com/backnotprop/pstack)).
114
+ Upkeep installs and updates them for every agent. If a package install would replace a skill it didn't install,
115
+ such as one you wrote, upkeep puts yours back and asks whether the package's version should replace it.
116
+
117
+ ## Approvals and backups
118
+
119
+ - A run never removes something you or another program installed, and never installs a new major version, until
120
+ you approve it. It asks in the terminal, in a desktop window, or in the
121
+ [Plannotator](https://github.com/backnotprop/plannotator) Inbox when you have it.
122
+ - Before changing a file, a run saves the original under `~/.local/state/agent-sync/backups/`. Backups expire
123
+ after 30 days or when they pass 500 MiB, starting with the largest.
124
+ - Values that look like secrets stay in the agent where they are: they aren't copied to MCP settings, shared
125
+ memory or instructions.
126
+
127
+ Details: [approvals and backups](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/approvals-and-backups.md), [memory and privacy](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/memory-and-privacy.md).
128
+
129
+ ## Review differences
130
+
131
+ `agent-sync review` opens a local page that compares instructions, rules, model roles, skills and MCP servers
132
+ across your agents. Each card says in one sentence what differs. Pick a version to keep, check the exact lines
133
+ each file gains or loses, and apply. Only the lines that differ are written, and every changed file is backed up
134
+ first. `agent-sync review --list` prints the same comparison in the terminal. More in [review](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/review.md).
135
+
136
+ ## Configure
137
+
138
+ Run `agent-sync config` to change settings by answering questions, or edit `~/.config/agent-sync/config.toml`
139
+ yourself (start from [`config.example.toml`](https://github.com/Kasakir-AI/agent-sync/blob/main/config.example.toml)). Every key is optional. The most used:
140
+
141
+ | Key | Default | What it does |
142
+ | --- | --- | --- |
143
+ | `agents` | `["claude", "codex", "cursor"]` | the agents to keep in step |
144
+ | `source` | `"claude"` | the agent the others follow |
145
+ | `skill_packages` | `["backnotprop/pstack"]` | skill packages installed for every agent |
146
+ | `mirror_instructions` | `false` | share global instructions |
147
+ | `mirror_memory` | unset | share Claude Code's memory notes (asked once) |
148
+ | `keep_installed` | `[]` | items upkeep never removes or replaces |
149
+ | `update_global_tools` | `false` | also update your global npm, pipx, uv (and Homebrew) tools |
150
+
151
+ Every setting: [configuration](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/configuration.md). Your own steps, models and notes:
152
+ [make it yours](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/customizing.md). The full list of what's kept in step and how:
153
+ [what it keeps in step](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/what-it-keeps-in-step.md). The status line: [status line](https://github.com/Kasakir-AI/agent-sync/blob/main/docs/status-line.md).
154
+
155
+ ## What it changes
156
+
157
+ | Agent | Files |
158
+ | --- | --- |
159
+ | Claude Code | `~/.claude/skills/*`, `~/.claude/agents/*.md`, `~/.claude/rules/pstack-models.md`, `~/.claude.json` (`mcpServers`), `~/.claude/settings.json` (`statusLine`), `~/.claude/CLAUDE.md` (opt-in) |
160
+ | 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) |
161
+ | 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) |
162
+ | Gemini CLI | `~/.agents/skills/*`, `~/.gemini/agents/*.md`, `~/.agents/pstack-models.md`, `~/.gemini/settings.json` (`mcpServers`), `~/.gemini/GEMINI.md` (opt-in, memory index) |
163
+ | 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) |
164
+ | All | `~/.agents/memory/*` (memory copies), MCP server programs and global tools through their package managers |
165
+
166
+ `agent-sync skill install` writes only into the project's skill folders (`.claude/skills`, `.agents/skills` and
167
+ the like), or into the ones above with `--global`.
168
+
169
+ State, backups and pending approvals live in `~/.local/state/agent-sync/`. The log is
170
+ `~/Library/Logs/agent-sync.log` on macOS and `~/.local/state/agent-sync/agent-sync.log` on Linux.
171
+
172
+ ## Safety
173
+
174
+ Skills, skill packages and the `skills` CLI run with your agents' full permissions, so install only what you
175
+ trust and read a skill before you rely on it. You can pin `skills_cli` to choose when it updates. Read
176
+ [SECURITY.md](https://github.com/Kasakir-AI/agent-sync/blob/main/SECURITY.md) for how to report a problem.
177
+
178
+ ## Support
179
+
180
+ 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.
181
+
182
+ ### Sponsors
183
+
184
+ <!-- sponsors:start -->
185
+ <!-- This section is updated automatically. Edits here are overwritten. -->
186
+
187
+ No sponsors featured here yet. [Become the first](https://github.com/sponsors/Kasakir-AI)!
188
+ All sponsors: [SPONSORS.md](https://github.com/Kasakir-AI/.github/blob/main/SPONSORS.md).
189
+ <!-- sponsors:end -->
190
+
191
+ ## License
192
+
193
+ 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
194
+ separate projects with their own licenses.
@@ -0,0 +1,27 @@
1
+ # Third-party licenses
2
+
3
+ The skill catalog's map of technologies to skills (catalog/sources.toml and agent_sync/skill_catalog.json) started from MIT-licensed work. Its notice follows.
4
+
5
+ ```
6
+ MIT License
7
+
8
+ Copyright (c) 2025 Yuniel Acosta
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+ ```
@@ -0,0 +1,6 @@
1
+ """Keep AI coding agents in step (Claude Code, Codex, Cursor, Gemini CLI, Antigravity).
2
+
3
+ Skill packages, agents, model roles, MCP servers and the CLIs.
4
+ """
5
+ __version__ = "0.11.0"
6
+ DISTRIBUTION = "kasakir-agent-sync" # the package's name on PyPI (pyproject.toml); the commands are agent-sync
@@ -0,0 +1,3 @@
1
+ from .cli import main
2
+
3
+ raise SystemExit(main())