AgentSync is a configuration sync workspace/library that centralizes AI agent instructions in one source and syncs them to tool-specific formats.
Edit only .ai/src/.
Do not edit generated tool folders directly (.agent/, .claude/, .gemini/, .github/).
.ai/
├── src/ # Authoring source (edit here)
│ ├── AGENTS.md
│ ├── rules/*.md
│ ├── skills/*/SKILL.md
│ └── tools/*.yaml # Tool enable/disable + targets (edit here)
├── system/ # Sync engine
│ ├── sync.sh
│ ├── setup_hooks.sh
│ ├── check.sh
│ └── config.yaml
└── README.md # Authoring guide
Enabled tools are defined in .ai/src/tools/*.yaml.
- Edit source files in
.ai/src/. - Run sync:
.ai/system/sync.sh- Optional preview:
.ai/system/sync.sh --dry-run- Optional partial sync:
.ai/system/sync.sh --only claude,copilot
.ai/system/sync.sh --skip geminiInstall once:
.ai/system/setup_hooks.shThis installs post-merge and post-checkout hooks that run .ai/system/sync.sh automatically.
sync.sh updates the block between:
# --- AI SYNC GENERATED START ---# --- AI SYNC GENERATED END ---
This block is rebuilt from enabled tool targets in .ai/src/tools/*.yaml.
- Authoring rules and conventions:
.ai/README.md - Sync engine details and YAML schema:
.ai/system/README.md
