Quick Start
Choose the path that matches your situation.
New project
-
Scaffold the canonical directory
Terminal window agentsmesh initThis creates:
agentsmesh.yaml— project configurationagentsmesh.local.yaml— local overrides (gitignored).agentsmesh/rules/_root.md— starter root rule- Updates
.gitignoreto excludeagentsmesh.local.yaml
-
Edit your root rule
Terminal window # Open the root rule in your editorvi .agentsmesh/rules/_root.mdExample root rule:
---root: true---# Project Guidelines- Write tests before implementation.- Max 200 lines per file.- Use TypeScript strict mode.- Prefer pure functions over classes. -
Configure your targets
Open
agentsmesh.yamland set the tools your team uses:version: 1targets:- claude-code- cursorfeatures:- rules- commands- mcp -
Generate
Terminal window agentsmesh generateOutput files are written to each tool’s native directory (
.claude/,.cursor/, etc.).
Existing project with tool configs
-
Initialize
Terminal window agentsmesh initAgentsMesh scans for existing configs in
.claude/,.cursor/,.cline/,.junie/,.continue/,.gemini/,.codex/,.windsurf/, and.github/copilot-instructions.md. It prompts you to import each one found.To auto-import everything without prompts:
Terminal window agentsmesh init --yes -
Review the canonical files
Terminal window ls .agentsmesh/rules/ls .agentsmesh/commands/cat .agentsmesh/permissions.yaml -
Generate for all targets
Terminal window agentsmesh generate -
Verify nothing unexpected changed
Terminal window agentsmesh diffIf the diff looks clean, commit both
.agentsmesh/and the generated files.
What’s next
- Add rules, commands, agents, and skills
- Set up CI drift detection
- Share config across repositories with
extends - Browse the full CLI reference