AgentMesh synchronizes project-level AI runtime context across coding tools.
The v0.1 binary is a local-first Rust CLI with bundled Claude Code and Codex adapters. It normalizes project instructions, skills, and subagents into a shared repository model, then renders those entities back into each runtime's native file layout.
Documentation: agentmesh.sh
macOS / Linux:
curl -fsSL https://agentmesh.sh/install.sh | shWindows (PowerShell):
irm https://agentmesh.sh/install.ps1 | iexUpgrade and uninstall options are documented at agentmesh.sh/docs/installation/curl.
For local development, build from source:
cargo build --workspace
./target/debug/agentmesh --helpPrerequisites: a git repository at your project root, and at least one supported runtime
present or planned (Claude Code with .claude/ and/or CLAUDE.md, or Codex with .codex/ and/or
AGENTS.md).
Preview detection without writing:
agentmesh scanInitialize AgentMesh from your project root. This detects runtimes, imports entities into the
canonical .ai/ model, propagates to other runtimes, installs hooks, and writes agentmesh.lock:
cd /path/to/your/repo
agentmesh initIf AGENTS.md and CLAUDE.md differ, init asks which agent memory file to use as
the starting version for initial setup. After setup, sync is bidirectional. For scripts or CI:
agentmesh init --canonical-instructions=AGENTS.md -yVerify health:
agentmesh status
agentmesh doctorCommit the shared state teammates need:
git add AGENTS.md .ai/ agentmesh.lock
git commit -m "chore: initialize AgentMesh sync"Do not commit machine-local hook files (.claude/settings.local.json, .codex/hooks.json). Each
teammate runs agentmesh init on their machine. Add .codex/hooks.json to .gitignore.
Codex requires a one-time trust approval before it runs the AgentMesh command hook. After setup,
open Codex in the repository and run any tool-backed action; when Codex asks whether to trust the
AgentMesh hook command, approve it once. Sync still works via the watcher daemon, Claude hooks, and
manual agentmesh sync until then.
| Situation | Command |
|---|---|
| Added a runtime after init | agentmesh install --runtime <name> |
| Upgraded the binary | agentmesh upgrade |
| Commit-time drift check | agentmesh install --git-pre-commit |
| CI pipeline | agentmesh sync --check |
Full walkthrough: agentmesh.sh/quickstart
To start AgentMesh again for an initialized repository:
agentmesh start -yThis refreshes machine-local AgentMesh state, installs AgentMesh-owned hooks for detected runtimes,
and starts the watcher so direct edits to AGENTS.md, CLAUDE.md, and .ai/ files sync
immediately. It keeps agentmesh.lock, .ai/, and runtime files such as AGENTS.md intact.
To stop AgentMesh for the current repository while keeping all repository state and AgentMesh installed on this computer:
agentmesh stop -yThis stops the watcher, removes AgentMesh-owned hooks, and clears machine-local cache state. agentmesh.lock, .ai/, and runtime files such as AGENTS.md are left intact so you can re-run agentmesh init later.
To uninstall AgentMesh from the current repository:
agentmesh uninstall -yThis deletes only AgentMesh-owned repository state: agentmesh.lock, .ai/, and agentmesh.config.yaml. AgentMesh never deletes runtime files such as AGENTS.md or CLAUDE.md.
To uninstall AgentMesh from the current repository and this computer:
agentmesh uninstall -y --fullThis also removes the agentmesh command from this computer. Runtime files such as AGENTS.md and CLAUDE.md are still retained.
Preview planned stop or uninstall changes without writing:
agentmesh start --dry-run
agentmesh stop --dry-run
agentmesh uninstall --dry-runMore detail: agentmesh.sh/docs/installation/curl.
make ciThe workspace is pinned by rust-toolchain.toml.
Architecture notes for contributors are in ARCHITECTURE.md.