agentsmesh init
Scaffold the canonical config directory. Creates agentsmesh.yaml, agentsmesh.local.yaml, and .agentsmesh/ with a starter root rule.
Usage
agentsmesh init [flags]Flags
| Flag | Description |
|---|---|
--yes | Auto-import all detected tool configs without prompting. |
What init creates
Running agentsmesh init in a project root creates:
agentsmesh.yaml # Project configuration (committed)agentsmesh.local.yaml # Local overrides (gitignored).agentsmesh/ rules/ _root.md # Starter root rule.gitignore # Updated to exclude agentsmesh.local.yamlAuto-detection
During init, AgentsMesh scans the project for existing AI tool configs. If any are found, it prompts you to import them:
.claude/→ Claude Code.cursor/→ Cursor.github/copilot-instructions.md→ Copilot.gemini/→ Gemini CLI.cline/→ Cline.codex/→ Codex CLI.windsurf/→ Windsurf.continue/→ Continue.junie/→ Junie
Examples
Interactive mode
agentsmesh initPrompts for each detected config. You can accept or skip each one individually.
Auto-import everything
agentsmesh init --yesImports all detected configs without prompting. Useful for scripted setups or when you want to migrate everything at once.
New project (no existing configs)
agentsmesh init# No existing configs detected.# Created agentsmesh.yaml# Created .agentsmesh/rules/_root.md# Updated .gitignore
agentsmesh generateGenerated agentsmesh.yaml
The starter config enables all targets and features:
version: 1targets: - claude-code - cursor - copilot - gemini-cli - cline - codex-cli - windsurf - continue - juniefeatures: - rules - commands - agents - skills - mcp - hooks - ignore - permissionsEdit this to match your team’s actual tool usage before running generate.
Next steps
- Edit
agentsmesh.yamlto configure yourtargets - Edit
.agentsmesh/rules/_root.mdwith your project guidelines - Run
agentsmesh generate