Skip to content

sumanthp/agentsync-vcs

agentsync-vcs

Universal Agent VCS and package manager for AI Agent behaviors.

CI codecov License Python Version PyPI version

Overview

agentsync-vcs is not just a file mirror; it is a behavior compiler and distribution system for AI agents.

Unlike tools that merely copy text between IDEs, agentsync-vcs allows you to maintain a single, versioned source of truth in Git and compiles it into the optimized, native configuration for every AI tool in your stack (Cursor, Claude Code, Copilot, etc.). It enables engineering teams to enforce architectural standards and "harness engineering" guidelines across any environment.

Supported Targets

  • Cursor: .cursor/rules/*.mdc and .cursorrules
  • Claude Code: CLAUDE.md and .claude/skills/
  • GitHub Copilot: .github/copilot-instructions.md and .github/instructions/*.md
  • Windsurf: .windsurf/rules/*.md and .windsurfrules
  • Trae: .trae/project_rules.md and .trae/skills/*.md
  • Hermes: .hermes/skills/*.md
  • Kiro: .kiro/steering/*.md
  • Codex: AGENTS.md
  • Gemini: GEMINI.md

Installation

Prerequisites

  • Python 3.8+

Install via pip

pip install agentsync-vcs

Usage

Initialize a project

agentsync-vcs init

This creates a sample-rule.md file and a .agent-sync/ configuration folder.

Define a Rule

Create a .md file with YAML frontmatter:

---
name: my-rule
description: Guidelines for this project
globs: ["src/**/*.ts"]
type: rule # Optional: 'rule', 'skill', or 'global'
---
- Use functional programming patterns.
- Ensure all exports are documented.

Advanced Targets

  • Cursor: Rules are compiled into modular .cursor/rules/*.mdc files. Use type: global for project-wide standards.
  • Claude Code: Standard rules merge into CLAUDE.md. Use type: skill for modular capabilities in .claude/skills/.
  • Windsurf: All rules are compiled into modular .windsurf/rules/*.md files for efficient context loading.
  • Trae: Universal guidelines go to .trae/rules/project_rules.md. Use type: skill for modular .trae/skills/.
  • Hermes: Compiles into .hermes/skills/*.md with required YAML frontmatter.
  • Kiro: Compiles to plain Markdown in .kiro/steering/*.md, extracting description text as quotes.
  • GitHub Copilot: Uses .github/copilot-instructions.md for global rules and .github/instructions/*.md for path-specific ones.
  • Gemini & Codex: All rules are intelligently merged into a single source of truth (GEMINI.md or AGENTS.md).

Remote Syncing

Sync rules from a shared team repository:

agentsync-vcs remote add https://github.com/my-org/agent-rules.git
agentsync-vcs sync
agentsync-vcs pull cursor

This will compile both your local rules and all rules from the remote Git repositories.

Documentation

For detailed guides on configuration, architecture, and IDE-specific adapters, see the Documentation.

License

This project is licensed under the Apache License 2.0 with Commons Clause v1.0.

This means:

  • Free for personal and internal use.
  • No Commercial Sale/Hosting: You cannot sell the software or provide it as a paid service (e.g., hosting, support, or consulting where the value is derived substantially from the software) without explicit permission.
  • Licensor retains all rights: The original author (Sumanth Polisetty) retains the right to distribute and sell the software commercially.

See the LICENSE file for the full text.

About

Universal Version Control System (VCS) for AI Agent behaviors. Decouple logic from proprietary tool formats and sync across teams using a Git-native registry.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors