by CodeAbra
Independent Autistic Intelligence — a cyber brain for your AI. It never forgets a detail, remembers exactly what you said, and learns how you work over time. Free, local, works with Cursor, Claude Code, Codex, OpenClaw, Hermes and more. MIT.
# Add to your Claude Code skills
git clone https://github.com/CodeAbra/iai-personal-memory-engineGuides for using ai agents skills like iai-personal-memory-engine.
Last scanned: 6/4/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-06-04T08:21:17.000Z",
"npmAuditRan": true,
"pipAuditRan": true
}iai-personal-memory-engine is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by CodeAbra. Independent Autistic Intelligence — a cyber brain for your AI. It never forgets a detail, remembers exactly what you said, and learns how you work over time. Free, local, works with Cursor, Claude Code, Codex, OpenClaw, Hermes and more. MIT. It has 346 GitHub stars.
Yes. iai-personal-memory-engine passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/CodeAbra/iai-personal-memory-engine" and add it to your Claude Code skills directory (see the Installation section above).
iai-personal-memory-engine is primarily written in Python. It is open-source under CodeAbra on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh iai-personal-memory-engine against similar tools.
No comments yet. Be the first to share your thoughts!
English | 中文
Your AI assistant forgets you every session. iai-pme gives it a memory that doesn't.
Independent Autistic Intelligence — a personal memory engine. Fully local, ambient. Works with Claude Code, Claude Desktop, Cursor, Codex CLI, Gemini CLI, Cline, Continue.dev, Zed, Cherry Studio, Goose, Aider, Hermes, OpenClaw, Le Chat, Kimi — anything that speaks MCP-over-stdio.
A local server that speaks the MCP protocol and gives Claude, and any other MCP-compatible assistant, a long-term memory. It captures every turn of every session verbatim, organizes those captures over time into a personal map of who you are, and serves a small slice of relevant memory back at the start of each new conversation. You never have to say "remember this" or "what did we say last time?".
I built this for myself. It worked. I've been running it daily for months, and now I'm sharing it. The benchmarks were mostly for my own curiosity. I wanted to know if it actually works or if I'd just gotten used to it.
Under the hood it's not a wrapper around someone else's vector store and graph library — the parts that matter are my own code: the storage engine, the community-detection algorithm, the hyperdimensional memory substrate, and a native engine that makes it fast. More on that in Built our own.
And unlike cloud memory services, there's no API key, no account, and no telemetry: the engine, the store, and the embeddings all run locally. The only thing that leaves your machine is the normal model call your CLI already makes.
| 🟢 Just want it to work? | 🔵 Want the numbers? | 🟣 Want the internals? |
| Install once, then forget it's there — no commands, fully local. | Every claim ships with the harness that proves it — run them yourself. | We built our own storage engine, clustering, HD substrate and Rust core. |
| → Quick start | → Benchmarks | → Built our own |
macOS and Linux are fully supported. Windows support is in beta — the runtime is ported and validated on Windows 11, but the test suite is still being ported, so treat it as experimental. Contributions are very welcome: if you hit a Windows issue, open an issue or PR and I'll help however I can.
git clone https://github.com/CodeAbra/iai-personal-memory-engine.git
cd iai-personal-memory-engine
python3.12 -m venv .venv && source .venv/bin/activate
pip install .
pip install builds the native Rust engine (iai_mcp_native — the embedder + graph kernels) automatically, as part of the package build, via setuptools-rust. There's no separate build script. If you change the Rust source later and need to rebuild it by hand, there's an escape hatch:
iai-mcp build-native # rebuild the native engine in place
Then build the MCP wrapper and set up the local engine (it runs in the background):
cd mcp-wrapper && npm install && npm run build && cd ..
iai-mcp daemon install # launchd on macOS, systemd on Linux, Task Scheduler on Windows
iai --version
This is what makes memory ambient. Without these hooks iai-mcp reads memory but never writes conversation content and never injects recall at session start. One command wires all three:
iai-mcp capture-hooks install # copies all three hooks + patches ~/.claude/settings.json
iai-mcp capture-hooks status # verify: should print "status: ACTIVE"
iai-mcp capture-hooks uninstall # clean removal if ever needed
For Codex:
iai-mcp capture-hooks install --target codex
To install both:
iai-mcp capture-hooks install --target all
What the install does:
~/.claude/hooks/ (chmod +x):
iai-mcp-turn-capture.sh (UserPromptSubmit, timeout 5s) — appends each prompt + the preceding assistant turn(s) to a per-session buffer as pure file IO. Zero engine RPC during the session.iai-mcp-session-capture.sh (Stop, timeout 35s) — at session end, rolls the buffer over for the local engine to drain, and runs iai-mcp capture-transcript --no-spawn as a safety net.iai-mcp-session-recall.sh (SessionStart, timeout 30s) — calls iai-mcp session-start and pipes the assembled memory prefix to stdout, which Claude Code injects as additionalContext before the first prompt. Fail-safe: empty store or unreachable local engine yields empty stdout — session start is never blocked.What happens at runtime:
Claude Code:
claude mcp add iai-mcp -- node "$(pwd)/mcp-wrapper/dist/index.js"
Or edit ~/.claude.json directly:
{
"mcpServers": {
"iai-mcp": {
"command": "node",
"args": ["/absolute/path/to/iai-mcp/mcp-wrapper/dist/index.js"]
}
}
}
Use the absolute path. ~ and $HOME won't expand here.
For Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json.
Codex CLI:
[mcp_servers.iai-mcp]
command = "node"
args = ["/absolute/path/to/iai-mcp/mcp-wrapper/dist/index.js"]
[mcp_servers.iai-mcp.env]
IAI_MCP_PYTHON = "/absolute/path/to/iai-mcp/.venv/bin/python"
IAI_MCP_STORE = "/Users/you/.iai-mcp"
Codex hooks are stable in current Codex CLI builds. If hooks are disabled by
local policy or an older install, enable [features].hooks = true in
~/.codex/config.toml.
iai-mcp doctor
iai-mcp daemon status
Restart Claude Code. Start a session, do some work, exit. Then:
tail ~/.iai-mcp/logs/capture-$(date -u +%Y-%m-%d).log
You should see a rc=0 line. That's your first memory.
You do not call iai-mcp directly during a session. Once it's connected:
Capture is automatic. Every turn, yours and the assistant's, is recorded verbatim with timestamps and session metadata. You don't say "remember this."
Recall is automatic. When a new session s