One .agentsmesh source
Manage AI coding rules, prompts, commands, agents, skills, MCP servers, hooks, ignore files, and permissions from one canonical directory.
Homebrew · standalone binary · npm — pick any · MIT License · CLI + TypeScript API
Every AI coding assistant ships a different configuration surface. Claude Code reads CLAUDE.md and .claude/settings.json. Cursor uses .cursor/rules/*.mdc. GitHub Copilot reads .github/copilot-instructions.md and prompts. Every other supported tool adds its own files for rules, commands, agents, skills, MCP servers, hooks, ignore patterns, or permissions.
AgentsMesh turns that spread into one editable source of truth. Put the real project instructions in .agentsmesh/, then generate native files for every enabled tool. Import goes the other direction, so existing tool configs can be adopted without starting from scratch.

Lessons give your AI coding agents a memory of past mistakes. When something goes wrong — a failing test, a code review comment, a wrong assumption — the agent captures a short rule. Before it touches the same files again, it recalls that rule automatically. Same mistake, never twice — in any tool, for every teammate, because the memory is one git-tracked file the whole team shares.

# One-time setupagentsmesh init --lessons && agentsmesh generate
# After a failure, the agent captures the rule:agentsmesh lessons add "Normalize CLI display paths to forward slashes" \ --topic windows-paths --new-topic --topic-summary "Cross-platform paths" \ --trigger-file "src/cli/**/*.ts"
# Before the next edit, it recalls the rule automatically:agentsmesh lessons query --file src/cli/foo.ts# -> Normalize CLI display paths to forward slashesStart with the lessons guide or jump to the agentsmesh lessons CLI reference.
One .agentsmesh source
Manage AI coding rules, prompts, commands, agents, skills, MCP servers, hooks, ignore files, and permissions from one canonical directory.
Agents that learn from mistakes
Capture a lesson after every failure, recall it before every edit. One shared memory works in every tool and helps every teammate. Teach your agents →
Bidirectional migration
Import existing Claude Code, Cursor, Copilot, Gemini CLI, Windsurf, Codex CLI, and other configs, then generate them back out with round-trip metadata.
Project and global mode
Commit project config in .agentsmesh/ for teams, or sync personal AI assistant setup from ~/.agentsmesh/ to user-level tool folders.
MCP, hooks, permissions
Standardize high-value assistant capabilities where tools support them natively, with explicit matrix visibility when support is partial or embedded.
CI drift detection
Use agentsmesh diff, lint, check, watch, and merge to keep generated tool files aligned with canonical sources during reviews.
Packs, plugins, typed API
Share reusable skills and rules with packs, add new AI tools through plugin descriptors, or automate generation from the ESM API.
.agentsmesh/ rules/_root.md rules/*.md commands/*.md agents/*.md skills/*/SKILL.md mcp.json hooks.yaml permissions.yaml ignore lessons/lessons.jsonagentsmesh generate# writes CLAUDE.md, AGENTS.md, .cursor/rules/, .github/copilot-instructions.md,# .gemini/settings.json, .windsurf/rules/, .codex/config.toml, .kiro/steering/,# .cline/, .junie/, .roo/, .agents/, and more from the same source.Pick any install method — Homebrew, standalone binary, or npm/pnpm/yarn:
brew install samplexbro/agentsmesh/agentsmesh # no Node.js required# orcurl -fsSL https://github.com/sampleXbro/agentsmesh/releases/latest/download/install.sh | sh# ornpm install -D agentsmesh # requires Node.js 20+See the installation guide for full options. The examples below use the agentsmesh binary directly — prefix with npx if you installed via npm without -g.
agentsmesh init# edit .agentsmesh/rules/_root.mdagentsmesh generateagentsmesh import --from cursoragentsmesh generateagentsmesh init --lessonsagentsmesh generateagentsmesh init --globalagentsmesh import --global --from claude-codeagentsmesh generate --globalThe CLI is available as both agentsmesh and the shorter alias amsh.
agentsmesh install <source>; list inventory with agentsmesh installs list; remove with agentsmesh uninstall <name>. Packs live in .agentsmesh/packs/, are tracked in .agentsmesh/installs.yaml, and merge with local canonical config during generation. The classifier auto-detects Anthropic-style skill packs and imports skills, agents, references, and per-target commands in one command — see the skill-pack guide.AgentsMesh ships descriptor-driven support for every major AI coding tool plus plugin targets, so coverage can grow without changing the homepage copy.
Use the supported tools matrix for the exact project/global paths and native, embedded, partial, or unsupported feature coverage.
Typed programmatic API
Import generate, importFrom, lint, diff, check, loadCanonical, and target catalog helpers from agentsmesh, agentsmesh/engine, agentsmesh/canonical, or agentsmesh/targets. API reference →
Runtime plugins
Add support for new AI coding tools with npm plugin targets. Plugins participate in project mode, global mode, feature conversion, linting, and generation. Build a plugin →
Team-safe sharing
Combine extends, installable packs, local overrides, and lock-file checks to standardize AI assistant behavior across repositories. Multi-tool teams →