# agentsync

A zero-dependency CLI and browser tool that converts and keeps in sync the rule files different AI coding agents read, such as AGENTS.md, CLAUDE.md, and .cursorrules.

agentsync keeps one source of truth for the instruction files that AI coding agents read: AGENTS.md for Codex, CLAUDE.md for Claude Code, .cursorrules for Cursor, and Copilot's instructions file, among others. It converts between these formats or generates a new AGENTS.md from a short specification, using the same zero-dependency engine in both its command-line tool and its browser playground.

A setup command scans a project, writes an AGENTS.md and a configuration file, runs the first sync, and installs a git pre-commit hook so future commits keep every rule file synchronized; only AGENTS.md then needs editing by hand. An auto mode instead tracks a snapshot of every rule file and regenerates the others from whichever one was last changed, so a developer can keep editing the file their own tool prefers.

It installs from npm or runs directly from a git clone, and is MIT licensed.

Website: https://panishandsome.github.io/ai-rules-sync/
