Show HN: I got tired of hand-syncing AI coding rules across four tools
One reliable canonical source for AI coding agent rules, commands, skills, MCP, hooks, and permissions — synced across AI coding assistants. - sampleXbro/agentsmesh
Full article excerpt tap to expand
AgentsMesh — AI Coding Config Sync for Every Tool AgentsMesh is an open-source CLI and TypeScript library for AI coding configuration sync. One canonical .agentsmesh/ directory manages rules, prompts, commands, agents, skills, MCP servers, hooks, ignore files, and permissions across every major AI coding tool. Edit once and generate CLAUDE.md, AGENTS.md, .cursor/rules, .github/copilot-instructions.md, .gemini/settings.json, .windsurf/rules, .codex/config.toml, .kiro/steering, and more from the same source. Import existing Claude Code, Cursor, Copilot, Gemini CLI, Windsurf, Codex CLI, and other configs back into canonical form without losing round-trip metadata. Works with Claude Code · Cursor · GitHub Copilot · Gemini CLI · Windsurf · Continue · Cline · Kiro · Codex CLI · Junie · Roo Code · Antigravity — plus plugin targets. See the full feature matrix. Full documentation: samplexbro.github.io/agentsmesh Why developers use AgentsMesh Unify AI coding rules across Claude Code, Cursor, Copilot, Gemini CLI, Windsurf, Codex CLI, and mixed-tool teams. Adopt existing projects safely with bidirectional import and generate instead of rewriting every tool config by hand. Sync personal global config from ~/.agentsmesh/ to user-level assistant folders such as ~/.claude/, ~/.cursor/, and ~/.codex/. Standardize MCP, hooks, permissions, skills, and agents where tools support them natively, with metadata-backed projections where they do not. Catch config drift in CI with lock-file checks, diffs, linting, and merge recovery built for team workflows. Share and extend configuration with community packs, remote extends, runtime plugins, and a typed programmatic API. Install Requires Node.js 20+. Supported platforms: Linux, macOS, and Windows (native, not WSL). npm install -D agentsmesh # or: pnpm add -D / yarn add -D npx agentsmesh --help # run without installing CLI aliases: agentsmesh and amsh. Windows notes: All paths are normalized internally so generated configs and installs.yaml are portable across platforms. Watch mode uses polling on Windows because ReadDirectoryChangesW can miss just-created files in tmpdirs. CI runs the full test suite on Linux, macOS, and Windows. Quick start New project agentsmesh init # scaffold .agentsmesh/ # edit .agentsmesh/rules/_root.md agentsmesh generate # produce configs for every enabled tool Existing project — adopt with one import agentsmesh import --from cursor # or claude-code, copilot, codex-cli, ... agentsmesh generate Personal global config agentsmesh init --global agentsmesh import --global --from claude-code agentsmesh generate --global # writes to ~/.claude/, ~/.cursor/, etc. High-demand features AI coding config sync for every tool AgentsMesh generates native configuration for every major AI coding assistant. Each tool's files are produced from a single .agentsmesh/ directory with support for rules, commands, agents, skills, MCP servers, hooks, ignore patterns, and permissions: Tool Main files generated Claude Code CLAUDE.md, .claude/agents/, .claude/skills/, .claude/commands/, .claude/settings.json, .claude/hooks.json, MCP via .claude.json Cursor .cursor/rules/*.mdc, AGENTS.md, .cursor/mcp.json, .cursor/hooks.json, .cursorignore GitHub Copilot .github/copilot-instructions.md, .github/instructions/*.instructions.md, .github/agents/, .github/prompts/ Gemini CLI GEMINI.md, .gemini/settings.json (MCP + hooks), .gemini/commands/*.toml, .gemini/agents/ Windsurf .windsurf/rules/*.md, .windsurf/workflows/,…
This excerpt is published under fair use for community discussion. Read the full article at Github.