Skip to main content

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).

Metadata

Release files for sync-ai-coding-instructions 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sync-ai-coding-instructions 0.1.0
File Size Uploaded
sync_ai_coding_instructions-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sync-ai-coding-instructions 0.1.0
File Interpreter ABI Platform
sync_ai_coding_instructions-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / sync_ai_coding_instructions-0.1.0.tar.gz

Download URL sync_ai_coding_instructions-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dce04a445a03ec33d95e861a4a1f68ea9ae696370e4cbb8a7cc691f7c379461e
BLAKE2b-256 checksum
How to use checksums
04f15e5f9c8c0dc5604a9a1b0aecf9f47e544054a8862937206d51aa1592f558
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / sync_ai_coding_instructions-0.1.0-py3-none-any.whl

Download URL sync_ai_coding_instructions-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6c26fd111dd45104b3289a02b3ddd03525703f00a8cadc5486345b012c72a21
BLAKE2b-256 checksum
How to use checksums
819f7fb2a98af686b4f92c8b265aa5e5800c74607bf7810f39409f1bfe40da53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page