Claude Code config

ai-rules-sync

Converts and syncs agent rules between CLAUDE.md, AGENTS.md and Cursor rules.

101 stars 6 forksConfig & memory Source

Install

From source
git clone https://github.com/PanisHandsome/ai-rules-sync.git

From the README

agentsync

One source of truth for your AI coding-agent rules.

πŸ”— Live playground: https://panishandsome.github.io/ai-rules-sync/

Codex reads AGENTS.md. Claude Code reads CLAUDE.md. Cursor reads .cursorrules.
Copilot reads .github/copilot-instructions.md. Keeping them in sync by hand is
tedious and they drift. agentsync converts between all of them β€” or
generates a clean AGENTS.md from a short spec.

Zero dependencies. The exact same engine (src/core/agentsync.js) powers both the
CLI and the browser playground.

Install

Or just clone and run from source β€” there are no dependencies:

Set it up in one command

That's the lazy path. In your repo it: generates AGENTS.md (by scanning the
project), writes an agentsync.json, runs the first sync, and installs a git
pre-commit hook so every commit keeps the files in sync. From then on you just
edit AGENTS.md and commit. Use agentsync setup --auto to let the hook accept
edits to *any* rule file, or --no-hook to skip the hook.

Quick start (manual)

Keep one source of truth, sync the rest

Write AGENTS.md once and let the other tools' files be generated from it. Create
the config (it auto-detects which rule files you already have):

Make it automatic with a pre-commit hook (so the committed files are always in sync):

Edit only AGENTS.md from then on β€” the other files are generated outputs.

Don't want to be tied to one file? Use --auto

With --auto you can edit whichever file your current tool prefers (CLAUDE.md in
Claude Code, .cursorrules in Cursor, AGENTS.md in Codex…). agentsync tracks a
snapshot in .agentsync-state.json, figures out which file you changed, and
regenerates the rest from it:

If you edited two files since the last sync, it stops and asks which one wins:

Hook it up the same way: echo "npx agentsync sync…
Read the full README on GitHub

Details

Language
JavaScript
License
MIT
Last updated
3 June 2026
Topics
agents-mdaiclaudeclicodexcoding-agentcopilotcursordeveloper-toolsllm

FAQ

What is ai-rules-sync?

Converts and syncs agent rules between CLAUDE.md, AGENTS.md and Cursor rules. It is a config for Claude Code, from PanisHandsome/ai-rules-sync on GitHub.

How do I install ai-rules-sync?

Clone PanisHandsome/ai-rules-sync from GitHub and follow the setup steps in its README.

Is ai-rules-sync popular?

PanisHandsome/ai-rules-sync has 101 GitHub stars and 6 forks. It was last updated on 3 June 2026.

More config & memory

Browse the most popular Claude Code mods, all config & memory, or the skills and MCP server directories.