Open sourceMITCLI + TypeScript API
One config. Every AI coding tool.
Write rules, commands, agents, skills, MCP servers and permissions once. Generate native config for every tool. Let your agents learn from failures with lessons.
brew install samplexbro/agentsmesh/agentsmesh No Node.js needed curl -fsSL https://github.com/sampleXbro/agentsmesh/releases/latest/download/install.sh | sh Linux, macOS, Windows npm install -D agentsmesh Node.js 20+ How it works
Three commands. No drift.
Config lives in one place. Every tool reads the format it expects.
-
Write once
One
.agentsmesh/folder holds rules, commands, agents, skills, MCP servers, hooks, ignore and permissions. Existing tool configs import in one step.agentsmesh init -
Generate everywhere
Native files for every enabled tool, written where each tool expects them. Round-trip metadata keeps import lossless.
agentsmesh generate -
Stay in sync
Diff, lint and check catch drift in review and CI. Watch regenerates on save.
agentsmesh check
What syncs
Everything a coding agent reads
Each canonical file maps to the native format of every enabled tool. Partial support is visible in the matrix, never silent.
- Rules
rules/Root and scoped instructions. - Commands
commands/Slash commands and prompts. - Agents
agents/Subagent definitions. - Skills
skills/SKILL.md plus supporting files. - MCP servers
mcp.jsonOne server list for every client. - Hooks
hooks.yamlLifecycle hooks and wrapper scripts. - Ignore
ignoreOne list, every ignore format. - Permissions
permissions.yamlAllow and deny lists.
Lessons
Agents that learn from your repo
A shared, git-tracked memory. Recall before every edit, capture after every failure. Same mistake, never twice, in any tool.
-
Recall
Before an edit or a risky command, the agent asks the memory what applies to this file.
-
Act
It does the work with those rules in front of it.
-
Capture
After a failure or a review comment, it writes one short rule with a trigger.
agentsmesh init --lessons && agentsmesh generate
# after a failure, the agent captures a ruleagentsmesh lessons add "Normalize CLI display paths to forward slashes" \ --topic windows-paths --trigger-file "src/cli/**/*.ts"
# before the next edit, it recalls the ruleagentsmesh lessons query --file src/cli/foo.ts# -> Normalize CLI display paths to forward slashesSupported tools
Works with every major AI coding tool
Descriptor-driven support plus plugin targets. Native, embedded and partial coverage is spelled out per tool.
Full support matrix →- CLI agents: Aider, Amp, Claude Code, Codebuff, Codex CLI, Crush, Deep Agents CLI, Gemini CLI, Goose, Kimi Code CLI, OpenCode, OpenHands, Pi Agent, Qwen Code, Rovo Dev, Warp.
- IDE integrations: Amazon Q Developer, Antigravity, Augment Code, Cline, Continue, GitHub Copilot, Cursor, Junie, Kilo Code, Kiro, Roo Code, Trae, Windsurf, Zed.
- Cloud agent platforms: Factory Droid, Jules, Replit Agent.
FAQ
Common questions
Full support matrix →Which AI coding tools does AgentsMesh support?
Every major CLI agent, IDE integration and cloud agent, from Claude Code and Cursor to GitHub Copilot, Gemini CLI, Codex CLI, Windsurf and Zed. The support matrix lists native, embedded and partial coverage per feature.
How do I keep CLAUDE.md, AGENTS.md and Cursor rules in sync?
Write the rule once in .agentsmesh/rules/, run agentsmesh generate, and each file is written in its native format. agentsmesh check fails CI when a generated file drifts.
Does it work with config I already have?
Yes. agentsmesh init detects existing tool folders and imports them into .agentsmesh/. Import is lossless, so a later export restores the originals.
What are lessons?
A shared, git-tracked memory of short rules with triggers. Agents recall matching rules before an edit and capture new ones after a failure, in any tool.
Do I need Node.js?
No. Homebrew and the standalone binary run without Node. The npm package needs Node.js 20 or newer and also exposes the TypeScript API.
Is AgentsMesh free?
Yes. It is open source under the MIT license, with no hosted service and telemetry off by default.
Go deeper
Reference and guides
- CLI reference Every command, flag and exit code.
- Programmatic API Typed ESM entry points for scripts and CI.
- Share across repos Extends, packs and local overrides.
- Global mode Sync your personal setup from
~/.agentsmesh/. - Build a plugin Add a new tool as a runtime target.
- Compare AgentsMesh vs Ruler and rulesync.