Skip to main content

Agent Integrations overview

Engram supports two integration layers:

  • Skill files — generated instructions for agents that read project context.
  • Slash adapters — generated /engram command prompts for agents that support project slash commands or Agent Skills.
  • MCP-style tools — a JSON-lines wrapper for agents that can register external tool processes.
  • Agent hooks — opt-in host hooks that inject routed Engram context at session start and later task-change turns.

Quick start​

engram inject
engram link all

engram link all installs the public target set and reports deterministic SKIPPED reasons for partial hosts across skillset instruction files, MCP config, slash adapters, and agent hooks in one unified install.

Target categories​

CategoryTargetsBehavior
Runtime-firstcodex, claude, cursor, geminiShort bootstrap instructions, a companion guide with the full workflow, short Agent Skill pointers, and MCP config
Hook-capablecodex, claude, gemini, opencode, cursor, windsurf/cascadeAgent hooks with host-specific event schemas
Compact/manual fallbackagents-md, copilot, clineFull compact protocol; no reliable runtime context injection in v1

Supported targets​

TargetFileMain use
codexAGENTS.md, .agents/skills/engram/SKILL.mdOpenAI Codex project instructions and Agent Skill
agents-mdAGENTS.mdGeneric fallback for unlisted AGENTS.md-compatible agents
copilot.github/copilot-instructions.md; global: ~/.copilot/copilot-instructions.mdGitHub Copilot repository and user instructions
claudeAGENTS.md, .claude/engram.md, .agents/engram.md, plus a CLAUDE.md block only when that file already exists, and .claude/rules/engram/<id>.md path rulesClaude Code project guidance and native path rules
cursor.cursor/rules/engram.mdc, .cursor/rules/engram/<id>.mdc path rules; global: ~/.cursor/plugins/local/engram/Cursor project rules, native path rules, and local plugin
geminiGEMINI.md; global: ~/.gemini/GEMINI.md, ~/.gemini/skills/engram/SKILL.mdGemini CLI context, including Antigravity Gemini-compatible surfaces
cline.clinerulesCline-style workspace rules
windsurf.windsurf/rules/engram.md; global: ~/.codeium/windsurf/memories/global_rules.mdWindsurf workspace rules and global rules/MCP
opencodeAGENTS.md, .opencode/engram.md, .opencode/skills/engram/SKILL.md, opencode.jsonOpenCode rules, Agent Skill, MCP tools, custom commands, plugin hooks
mcp.mcp.json; global: ~/.gemini/settings.json, ~/.codex/config.toml, and a claude mcp add hintMCP-style JSON-lines wrapper registration
slash.claude/commands/engram.md, .cursor/commands/engram.md, .gemini/commands/engram.toml, .opencode/commands/engram.mdNative /engram slash adapters

Aliases: codex installs the agents-md adapter plus the generic Agent Skill file, open-code maps to opencode, and cascade maps to windsurf. The old antigravity and antigravity-cli targets are hidden compatibility aliases for now.

Hook capability matrix​

HostHook install in v1Events
codexYesSessionStart, UserPromptSubmit, PreToolUse, PreCompact, SubagentStart
claudeYesSessionStart, UserPromptSubmit, InstructionsLoaded (PreToolUse with hooks.path_rules hook), PreCompact, SubagentStart
geminiYesSessionStart, BeforeAgent, AfterTool, PreCompress
cursorYessessionStart
windsurf / cascadeYespre_user_prompt
opencodeSupported via local pluginchat.message, experimental.chat.system.transform
copilotSkippedN/A
clineSkippedN/A

Next steps​