Skip to main content

CLI tool to synchronize AGENTS, CLAUDE, and GEMINI markdown files.

Project description

sync-ai-coding-instructions

Sometimes the brute-force solution is the most elegant.


Table of Contents


1. What is this tool?

This is a simple pre-commit hook or Python CLI tool to syncrhonize different AI coding assistant instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, ...).

For example, if you only have CLAUDE.md in your repo, this tool would create an AGENTS.md file and keep them in sync. (Whichever file gets modified last, its contents will be copied over to the other file(s).)

2. Why should you use this tool?

It's best to allow different code contributors to the same project to use their preferred AI coding tools, so keeping multiple instruction files becomes necessary. (As of November 2025, Claude Code still hasn't adopted AGENTS.md.)

Unlike other solutions online that uses @ or symbolic link (non-trivial to learn and may not always work), this tool uses a brute-force solution (copy/paste). It's guaranteed to work and has no learning curve. (The prerequisite is to learn to use pre-commit, of course.)

3. How to use this tool?

3.1. 3.1 Use as a pre-commit hook

  1. Install the dependencies for this project (typically within a virtual environment).
  2. Add this repository to your .pre-commit-config.yaml, for example:
repos:
    - repo: https://github.com/jsh9/sync-ai-coding-instructions
    rev: <LATEST_VERSION>
    hooks:
        - id: sync-ai-coding-instructions
          # Optional: override the default AGENTS/CLAUDE/GEMINI list.
          # args: [--files, AGENTS.md,CLAUDE.md,GEMINI.md]
  1. Run pre-commit install inside your project to enable the hook.

With this configuration, every commit automatically syncs AGENTS.md, CLAUDE.md, and GEMINI.md using the newest file as the source.

3.2. 3.2 Use from the command line

Install the project (editable install recommended during development):

pip install sync-ai-coding-instructions

Then run the CLI directly in the directory that contains the markdown files:

sync-ai-coding-instructions

You can also point at another directory:

sync-ai-coding-instructions --path /path/to/project

Alternatively, execute via Python without installing:

python -m sync_ai_coding_instructions.main --path /path/to/project

Provide a custom comma-separated file list with --files. At least two file names are required:

sync-ai-coding-instructions --files AGENTS.md,CLARITY.md,GEMINI.md

The command exits with status codes indicating whether files were created, synced, or untouched (non-zero when files are created or updated).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sync_ai_coding_instructions-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sync_ai_coding_instructions-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file sync_ai_coding_instructions-0.1.0.tar.gz.

File metadata

File hashes

Hashes for sync_ai_coding_instructions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dce04a445a03ec33d95e861a4a1f68ea9ae696370e4cbb8a7cc691f7c379461e
MD5 2653777b4c9defd7f649de07c1b87991
BLAKE2b-256 04f15e5f9c8c0dc5604a9a1b0aecf9f47e544054a8862937206d51aa1592f558

See more details on using hashes here.

File details

Details for the file sync_ai_coding_instructions-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sync_ai_coding_instructions-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6c26fd111dd45104b3289a02b3ddd03525703f00a8cadc5486345b012c72a21
MD5 27db732fa87975399b8a005f7e77d8c4
BLAKE2b-256 819f7fb2a98af686b4f92c8b265aa5e5800c74607bf7810f39409f1bfe40da53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page