AI Tool Setup

Configure Claude Code, Codex, omp, Cursor, or Zed to use Engrams. Because Engrams is a fast standalone terminal command, there are no Model Context Protocol (MCP) background servers or ports to configure.

Recommended: Auto-Generate Agent Instructions

Run engrams instructions in your project root to output the up-to-date operating loop, and write it straight to your agent rules file:

# For Codex, omp, and universal AGENTS.md tools:
engrams instructions >> AGENTS.md

# For Claude Code:
engrams instructions >> CLAUDE.md

If you use omp, you can also install enforceable pre-commit and in-session pattern rules with one command:

engrams install --harness omp --hooks

Minimal Rule Snippet (Manual Copy)

If you prefer a compact summary inside a shared rules file, include these five rules:

## Project Memory & Architecture Advisor (Engrams CLI)
Use the local `engrams` CLI (JSON output) so you never guess settled architecture or re-read files unnecessarily:

1. **Session Start:** Run `engrams prime` as your first action to load active schemas, recent decisions, and current focus.
2. **Before Editing Files:** Run `engrams advise <paths>` before modifying or creating files to get active schemas, contracts, and pattern checks for those paths.
3. **Before Designing:** Run `engrams brief "<topic>"` or `engrams query "<topic>" --full` to inspect existing contracts and neighbor nodes before opening source files.
4. **When Making Decisions:** Log durable choices immediately with `engrams decision log --summary "..." --contract "..." --rationale "..." --tags a,b --anchor <path>`.
5. **Session Close:** Run `engrams check --staged`, `engrams session close`, and `engrams export` so Markdown updates in `engrams_export/` travel with your commit.

Where Each AI Tool Reads Instructions

Claude Code

Place instructions in CLAUDE.md at your repository root.

Codex & omp

Place instructions in AGENTS.md at your repository root (and run engrams install --harness omp for omp rule enforcement).

Cursor

Create .cursor/rules/engrams.mdc (or append to .cursorrules) in your project root.

Zed / Windsurf / Cline

Add the snippet to .rules, .windsurfrules, or .clinerules at your workspace root.

Verify the connection:Start a new chat with your coding agent and ask: "Run engrams prime and summarize our current project context."