Ix integrates with Claude Code through hooks that run automatically in the background.
When you or Claude searches for something, Ix runs a pre-search hook:
- Claude runs
Grep "validateToken" - Ix intercepts and runs
ix text "validateToken"+ix locate "validateToken" - Graph-aware results are injected as additional context
- Claude sees both the Ix results and the normal Grep output
This means Claude gets structural context (what calls it, what it's part of) before seeing raw text matches.
When a file is saved:
- Claude edits
src/auth/provider.ts - Ix auto-ingests the changed file in the background
- The knowledge graph stays current without manual re-ingestion
If Claude Code is installed when you run the Ix installer, the plugin is set up automatically. To install separately:
curl -fsSL https://raw.githubusercontent.com/ix-infrastructure/Ix/main/ix-plugin/install.sh | shixCLI in PATH- Ix backend running (
ix docker start) jqinstalledrg(ripgrep) installed
Hooks are registered in ~/.claude/settings.json:
- PreToolUse hook on
Grep|Glob— runsix-intercept.sh - PostToolUse hook on
Write|Edit|MultiEdit— runsix-ingest.sh
Add Ix commands to your project's CLAUDE.md to guide Claude on how to use Ix:
# Ix Memory
This project uses Ix Memory. Use `ix` CLI commands for codebase queries.
## Quick Reference
- `ix search <term>` — Find entities
- `ix explain <symbol>` — Understand a symbol
- `ix impact <target>` — Check blast radius before changes
- `ix overview <target>` — Structural summary
- `ix map ./src` — Re-map after significant changesHooks not firing?
- Check
ix status— backend must be running - Check
which ix— CLI must be in PATH - Restart Claude Code after installing hooks
Stale graph?
- Run
ix map ./srcto re-ingest - Or start
ix watchfor continuous updates