JSPM

  • Created
  • Published
  • Downloads 1051
  • Score
    100M100P100Q126566F
  • License MIT

A fast CLI tool to sync AI agent configurations and MCP servers across Claude, Copilot, Cursor, and more using symbolic links.

Package Exports

  • @dallay/agentsync
  • @dallay/agentsync/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dallay/agentsync) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@dallay/agentsync

npm version
license
repository

Effortlessly synchronize AI agent configurations across tools like Copilot, Claude, Cursor, and other MCP-compatible servers using symbolic links and an intuitive CLI.

🌟 Explore the Full Documentation Here


✨ Key Features

  • Simple CLI: Manage symbolic links with minimal setup.
  • Multi-assistant support: Compatible across Copilot, Claude, Gemini, Cursor, VS Code, OpenCode and 25+ more assistants. See the full list and file locations in the main documentation: https://dallay.github.io/agentsync/ (or the repo README).
  • Cross-platform binaries: Available for Linux, MacOS, and Windows.
  • Node.js integration: Use programmatically within your applications.

🚀 Installation

Make sure you have Node.js (>=18) installed.

pnpm install -g @dallay/agentsync

Using npm:

npm install -g @dallay/agentsync

Using yarn:

yarn global add @dallay/agentsync

Using bun:

bun add -g @dallay/agentsync

Verify installation:

agentsync --help

🛠️ Usage

Managing Configurations

Sync Configurations:

Run the following to create symbolic links across your AI coding assistants:

agentsync apply

Clean Configurations:

Remove previously created symbolic links:

agentsync clean

🎯 Example Workflows:

  • Programmatic Usage in Node.js:

    const { main } = require('@dallay/agentsync');
    
    main(['apply']).catch((error) => {
       console.error(error);
       process.exit(1);
    });
  • Integrate with npm scripts: Add configuration syncing to your npm scripts to automate process workflows. For example, in your package.json:

    {
      "scripts": {
        "precommit": "pnpm exec agentsync apply --dry-run",
        "prepare": "pnpm exec agentsync apply"
      }
    }
  • For complex workflows, see the detailed API documentation.

MCP & Skills

  • AgentSync supports MCP generation for multiple agents (Claude, Copilot, Gemini, Cursor, VS Code, OpenCode). The canonical list and file locations live in the repo README and in the docs site (guides/mcp).
  • Skills live under .agents/skills/ in the project.

👷 Development

This package is part of the AgentSync mono-repo. It serves as a Node.js wrapper for the high-performance Rust core.

Prerequisites

  • pnpm: Dependency manager.
  • Node.js >= 22.22.0 (for development).
  • Rust: For building the core CLI.

Steps

  1. Clone the repository:

    git clone https://github.com/dallay/agentsync.git
    cd agentsync
  2. Install dependencies:

    pnpm install
  3. Build:

    make js-build
    # or
    pnpm run build
  4. Run tests and type checks:

    make js-test
    # or
    pnpm run typecheck
  5. Format:

    make fmt

🛠️ Troubleshooting

PNPM_NO_MATURE_MATCHING_VERSION

If pnpm install fails with this error, it's likely due to a strict package release age policy. You can try installing with --ignore-scripts or wait for the package to "mature" in the registry.

Lefthook installation failure

If pnpm install fails during the lefthook setup, you can try:

pnpm install --ignore-scripts

🌐 Resources


📜 License

MIT License. See the LICENSE for details.


🙏 Acknowledgments

Special thanks to the developer community for their contributions and feedback. For suggestions and improvements, feel free to open a pull request!


📣 Ready? Start syncing agent configs today with @dallay/agentsync!