rulesync writes one rule set into every tool’s files. Harbor learns the rules and serves the few that fit each task.
rulesync is a free, MIT-licensed CLI. You write rules once under .rulesync/, and it generates each tool’s own files: CLAUDE.md, AGENTS.md, Cursor rules, Copilot instructions and more, plus MCP config, skills, hooks and permissions, for over 70 tools. Harbor keeps the rules itself, on your machine: it learns them from coding sessions and the CLAUDE.md and AGENTS.md you have, hands each Claude Code, Codex, Cursor and Copilot session the few that fit the task, and refuses banned commands.
Harbor is free and open source (MIT), with no account. Every line about rulesync is from its own pages, read on 2 December 2026.
Decide what gets in. See what gets used.
Three things Harbor does for the person behind the agents, each beside what rulesync's own pages say about the same job.
You approve what gets in
A new rule goes live when you approve it, and one that reverses a live rule always waits for you.
In rulesyncNo approval step of its own. The files are committed, so review is your usual pull request. Its MCP server lets an agent write .rulesync/ files directly.
You see what got used
Every rule shows how often it was served and how often an answer cited it.
In rulesyncIts pages describe no view of which rules an agent loaded or followed.
You block a risky command
A guardrail refuses a shell command, a file write or an MCP call before it runs, in Claude Code, Codex, Cursor and Copilot.
In rulesyncIt writes each tool’s own permission config, with allow, ask or deny per command pattern, from one permissions file. Each tool enforces it, and its docs say some tools cannot express every pattern.
Harbor and rulesync, row by row.
| Harbor | rulesync | |
|---|---|---|
| What it is | Open source memory and guardrails for coding agents, on your machine. It keeps what your agents learn as rules and hands each session the few that fit its task. | A Node.js CLI that generates the configuration files of many AI coding tools from one set of rule files. |
| Where the knowledge comes from | What your agents learn in their sessions, the CLAUDE.md and AGENTS.md your repo already has, and documents or websites you import. | Markdown files you write under .rulesync/, or import from the CLAUDE.md, Cursor and Copilot files you already have. Shared rules can come from another Git repo or npm, pinned by a lockfile. |
| Who decides what gets in | You do. A new rule goes live when you approve it, unless you tell Harbor to let captures in. A rule that reverses a live one always waits for you. | No approval step of its own. The files are committed, so review is your usual pull request. Its MCP server lets an agent write .rulesync/ files directly. |
| How it reaches the agent | Hooks add the rules that fit before each prompt. The same rules are on a local MCP server and the harbor command. | Files on disk: rulesync generate writes each tool’s native files, and the whole file loads in that tool. Nothing runs at prompt time. |
| When a decision changes | A repeat strengthens the old rule instead of making a copy. A reversal waits for you, and the old rule keeps a Restore. Rules no agent uses fade, and can retire if you turn that on. | You edit the source and run generate again. --watch regenerates on save, and generate --check fails CI when the committed files are stale. |
| Seeing what was used | The agent names the rules it used, so every rule shows how often it was served and how often an answer cited it. | Its pages describe no view of which rules an agent loaded or followed. |
| Stopping a risky command | Guardrails refuse a shell command, a file write or an MCP call before it runs, with the reason you wrote, in Claude Code, Codex, Cursor (shell and MCP) and GitHub Copilot. | It writes each tool’s own permission config, with allow, ask or deny per command pattern, from one permissions file. Each tool enforces it, and its docs say some tools cannot express every pattern. |
| Agents | Claude Code, Codex, Cursor and the GitHub Copilot CLI. | Over 70 tools, among them Claude Code, Codex CLI, Cursor, GitHub Copilot, Cline, Kiro, Google Antigravity, Zed and Warp. |
| Open source and hosting | MIT licensed on GitHub and npm (harborloop). It runs on your machine, on 127.0.0.1 only. There is no hosted service. | MIT licensed. A local CLI, with no hosted service. |
| Price | Free and open source (MIT). No account, no card and no AI key needed. | Free and open source. Its pages list no paid tier. |
| Best for | Developers who want every coding session, in every agent they run, to start with what they already taught it. | Teams whose rules are already written down and who want plain files in git for many tools, with nothing hosted. |
rulesync's side comes from its own pages, read on 2 December 2026: rulesync on GitHub · rulesync docs: file formats · rulesync docs: CLI commands · rulesync docs: declarative sources · rulesync on npm. Out of date? Open an issue.
Pick the one built for your job.
Pick Harbor if
- Your rules come from correcting the agent in its sessions, and nobody writes them into a file.
- You want each task to get the few rules that fit, not the whole file in every session.
- You want a repeat or a reversal caught before a rule is saved, not a file that only grows.
- You want to see, rule by rule, which ones agents were served and which ones they used.
Pick rulesync if
- Your rules are written down and change rarely.
- You want plain files in git and no app running beside your agents.
- Your team uses tools beyond Claude Code, Cursor, Codex and Copilot.
- You also want MCP config, skills, commands and hooks generated from one place, for free.
Before you choose.
Can I run Harbor and rulesync together?
Yes. Keep rulesync generating your checked-in files. Harbor imports the CLAUDE.md and AGENTS.md it writes, and it covers the corrections nobody wrote down.
Can I start with Harbor today?
Yes. Run npm install -g harborloop, then harbor local. It is free and open source, with no account. rulesync installs today with npm, with no account.
Is Harbor open source?
MIT licensed on GitHub and npm (harborloop). It runs on your machine, on 127.0.0.1 only. There is no hosted service. rulesync: MIT licensed. A local CLI, with no hosted service.
Where do the claims about rulesync come from?
From rulesync's own public pages, read on 2 December 2026, which are listed under the table. Products move, so if a line is out of date, open an issue on GitHub and we will fix it.
Open source memory and guardrails
for your coding agents.
Nothing to migrate and nothing to write. Harbor reads the CLAUDE.md and AGENTS.md you have, keeps what your agents learn, and shows you which rules they cite.
npm install -g harborloop, then harbor local. Free and open source, with no account.