Prerequisites
- Node.js 18+
- An AI coding IDE (Cursor, Claude Code, Codex, or any client with Model Context Protocol support)
Install
From the root of the repository you want to coordinate:- Opens your browser for authentication — no manual API keys to copy
- Creates the workspace (or joins yours if one exists for this slug)
- Writes the global API key to
~/.config/enagrams/config.json - Writes the workspace slug to
.env(ENAGRAMS_WORKSPACE=...) - Drops IDE configs for Cursor (
.cursor/hooks.json,.cursor/mcp.json), Claude Code (.mcp.json,.claude/settings.json), and Codex (.codex/hooks.json) - Installs the hook script at
.cursor/hooks/enagrams-hooks.mjs - Offers to install
enagramsglobally so you can dropnpx
The first
init on a new machine triggers a browser-based device code flow. Subsequent inits in other repos reuse your saved API key automatically.Verify
Join an Existing Workspace
If a teammate already created the workspace:What’s Installed
| File | Purpose |
|---|---|
~/.config/enagrams/config.json | API key (global, like gh / vercel) |
.env | ENAGRAMS_WORKSPACE=<slug> for this repo |
.cursor/mcp.json | MCP server config for Cursor |
.cursor/hooks.json + .cursor/hooks/enagrams-hooks.mjs | Cursor event hooks |
.mcp.json | MCP server config for Claude Code |
.claude/settings.json | Claude Code hook config (reuses the Cursor hook script) |
.codex/hooks.json | Codex hook config |
Your First Coordinated Edit
Open your IDE
Cursor, Claude Code, or Codex. The
sessionStart hook fires, your session is registered, and you’ll see a team briefing in the hook output.Have your agent read and edit a file
On the first write, the
preToolUse hook calls file_lock so you own that file until your session ends or your agent runs session_end.Ask a teammate to edit the same file
Their agent’s
preToolUse hook is denied with a message telling them who owns it and what you’re working on. They route around.Next Steps
How Enagrams works
The coordination model from hooks to sync.
All 24 MCP tools
Every tool your agents can call.
IDE setup guides
Cursor, Claude Code, and Codex specifics.
CLI reference
Every
enagrams command.