1. Conduid
  2. RAG
  3. Iai Personal Memory Engine
MCP server · RAG

Iai Personal Memory Engine

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.

87Strong

Scored 20 hours ago · breakdown

About Iai Personal Memory Engine

Iai Personal Memory Engine is an MCP server published by CodeAbra in the RAG category: 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. Conduid read 22 tools from its source: batch_execute, claim_check, code_index, code_search, command_insight, curiosity_pending and 16 more. No package is published for it, so it installs from a source checkout.

The repository has 926 stars and 113 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v3.3.0 (22 Oct 2026): The Claude Code plugin now ships an icon. It follows v3.2.3 (14 Sep 2026), and the 5 most recent releases go back to v3.2.0 (8 Sep 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include ai-memory, embeddings, episodic-memory, lancedb, local-first and long-term-memory.

Install

From source
git clone https://github.com/CodeAbra/iai-personal-memory-engine

Tools (22)

batch_executeRun commands under the executor daemon's batch concurrency semantics. Returns one result per command, in input order, each bounded like execute's output. A failing command returns as a result with a non-zero state, not a tool error.
ParameterTypeDescription
commands *arrayCommands to run as a batch, in the order results are returned.
concurrencyinteger1 = one shared timeout budget run in sequence; 2-8 = each command gets its own timeout, run in parallel.
timeout_msintegerTotal shared budget at concurrency=1, per-command timeout at concurrency 2-8.
claim_checkCheck a claim (e.g. 'X is not done') against memory. Returns hits + anti_hits + a freshness verdict in one call.
ParameterTypeDescription
budget_tokensintegerSoft token budget for the underlying recall (default 1500).
cue *stringThe claim to check, e.g. 'the dashboard is not built yet'.
session_idstringCurrent session id; gets written into provenance. Omit to use '-'.
code_indexWalk a directory and index its files, or resolve+index one third-party dependency package into its own store. Supply path OR ecosystem+package+project_dir, never both. Mutates the on-disk index.
ParameterTypeDescription
ecosystemstringDependency mode only, required with package and project_dir: dependency ecosystem, e.g. python.
packagestringDependency mode only, required: dependency package name.
pathstringDirectory to walk and index.
project_dirstringDependency mode only, required: project directory whose own environment resolves the package.
code_searchSearch the code index (BM25 over indexed files). Returns ranked hits with a bounded snippet per hit. Read-only.
ParameterTypeDescription
def_pathstringimporters lane: scope resolved hits to importers/callers whose target is this file; unresolved rows stay reported at the symbol level. references lane, required: the file `query` is defined in.
ecosystemstringstore='dependency' only, required: dependency ecosystem, e.g. python.
from_pathstringgoto-def lane only, required: the file `query` is referenced from.
kintegerMax ranked hits (default 10, clamped server-side to 200).
lanestringWhich search lane to query: whole-file BM25 (default), symbol (exact identifier), xref (cross-file reference injection), vector (semantic, embed-worker-backed), fused (RRF over the base lanes, gated semantic addition), literal (exact byte-substring scan, no case-folding/regex/tokenizer -- the only lane that can prove a literal's absence, not just report unknown), importers (reverse query: every file importing/calling `query`, use with def_path to scope by target), goto-def (Python AST-backed go-to-definition for `query`, referenced from from_path; requires from_path), or references (Python AST-backed find-references: every call site of `query` defined in def_path, each tagged resolved or unresolved; requires def_path).
packagestringstore='dependency' only, required: dependency package name.
query *stringSearch text: identifiers, phrases, or a question.
storestringWhich store to query: 'code' (default, the source-code index), 'output' (previously captured command output, when a run was indexed with auto_index), or 'dependency' (one indexed third-party package; requires ecosystem and package, lane must be 'whole').
command_insightActionable report over accumulated run history: names failing commands and the most recent failure, not just a count. Read-only.
curiosity_pendingList pending curiosity questions queued by the sleep daemon. Read-only. Filter by session_id.
ParameterTypeDescription
session_idstringOnly return questions from this session. Omit to return questions from every session in the queue.
episodes_recentReturns the N most-recent user-turn records, time-desc. Optional session_id filter. GLOBAL across all projects.
ParameterTypeDescription
nintegerHow many turns to return (default 10, max 1000).
session_idstringFilter to a specific session UUID.
events_queryQuery user-visible events (kind whitelist). Read-only. Optional since (ISO-8601), severity, limit.
ParameterTypeDescription
kind *stringEvent kind. Must be in the whitelist (s4_contradiction, trajectory_metric, ...).
limitintegerMaximum events returned (default 100, capped at 1000 by the daemon regardless of the value supplied).
severitystringOptional severity filter. Omit to return all severities.
sincestringISO-8601 timestamp; only events at or after this are returned. Omit to return events from the start of the log.
executeRun a command via the executor daemon. Returns captured output and a run handle. Use for shell commands. Only printed output reaches this response; the rest stays retrievable in the run's own artifact files on disk. Set auto_index to make it searchable via code_search.
ParameterTypeDescription
argsarrayArguments to the program, each a discrete argv element.
authorstringlog mode: author filter (git's --author syntax).
auto_indexbooleanOpt-in: index this run's captured output for later retrieval via code_search(store='output'). Never default-on. Output shaped like a credential is refused, not indexed. Not applied when the run also backgrounds -- index_error is set instead.
commandstringProgram to run.
end_lineintegerblame mode: 1-based inclusive end line of an optional line range.
filestringblame mode: file to blame.
modestringOptional git-query mode: dispatches to a bounded git-log/git-blame/git-diff subcommand sharing that subcommand's own bound-by-construction validation, injection guard, and secret-gate scrub, instead of running command/args/auto_index. A scope parameter is required per mode: since/until/path or a revision for log, file for blame, rev_a/rev_b/path for diff.
pathstringlog/diff modes: limit to this path.
repostringany git-query mode: path to the git repository (default: the executor daemon's working directory, which may not match your shell -- pass repo for a reliable target).
rev_astringdiff mode: a revision range, or the first of two revisions.
rev_bstringdiff mode: the second of two revisions.
rev_rangestringlog mode: a revision or revision range.
sincestringlog mode: lower date bound (git's --since syntax).
start_lineintegerblame mode: 1-based inclusive start line of an optional line range.
timeoutnumberSeconds before the executor times out the run.
untilstringlog mode: upper date bound (git's --until syntax).
memory_captureCapture a verbatim turn (auto-dedups near-duplicates). Use for corrections, not for minting standing-order directives.
ParameterTypeDescription
agent_complete_idstringOptional id of a previously spawned background agent to mark complete on this call.
agent_expected_artifactstringOptional artifact the spawned background agent is expected to produce. Required alongside agent_id and agent_role to register a spawn; omitted otherwise.
agent_idstringOptional id of a background agent this capture is spawning or completing. Combine with agent_role and agent_expected_artifact to register a pending agent; combine with agent_complete_id on a later call to mark it done.
agent_modelstringOptional model label for the spawned background agent, recorded on the registry entry when agent_id/agent_role/agent_expected_artifact register a spawn.
agent_rolestringOptional role of the spawned background agent (for example 'research' or 'implement'). Required alongside agent_id and agent_expected_artifact to register a spawn; omitted otherwise.
cuestringShort natural-language cue used for embedding + dedup lookup. If empty, `text` itself is embedded.
epistemic_statusstringCaller-declared epistemic status. Omit for 'unknown' (default, no behavior change). A value outside the enum is coerced to 'unknown' server-side, never rejected.
focusstringOptional current point of attention for the live session task. Folded verbatim onto this session's own working-tier entry after the capture completes, alongside next_action.
goalstringOptional refreshed goal for the live session task, when it has moved on from the goal the task opened with. Folded verbatim onto this session's own working-tier entry after the capture completes. Empty or whitespace-only is a no-op, never a clear.
next_actionstringOptional immediate next step for the current live session task. Folded verbatim onto this session's own working-tier entry after the capture completes; surfaces at the next session start and on every subsequent turn until updated again.
rolestringWho produced this turn — tags the record for filtering.
salience_levelstringCaller-declared salience level for a decision, correction, or load-bearing preference marked in-turn. Additive rank-fusion boost only -- never a merge/drop lock. Omit for 'unflagged' (default, no behavior change). A value outside the enum is coerced to 'unflagged' server-side, never rejected.
session_idstringCurrent session id for provenance.
text *stringVerbatim text to capture (user utterance, Claude decision, or observation). Min 12 chars, max 8000 (longer is truncated).
tierstringMemory tier. Default 'episodic' (verbatim user utterances). Use 'semantic' for induced summaries, 'procedural' for learned behaviour notes.
memory_consolidateTrigger sleep-cycle consolidation: schema induction, FSRS decay, Hebbian pruning. Mutates store; idempotent in one sleep window.
ParameterTypeDescription
session_idstringOptional session id used for provenance tagging on the consolidate event. Defaults to '-' when omitted.
memory_contradictMark a record contradicted; new fact stored as a NEW record (old NEVER deleted). Mutates store.
ParameterTypeDescription
cue_embeddingarrayOptional pre-computed embedding vector for the contradicting fact (EMBED_DIM=384 floats; bge-small-en-v1.5). When omitted, the daemon embeds new_fact server-side.
epistemic_statusstringCaller-declared epistemic status of the corrected fact. Omit for 'unknown' (default, no behavior change). A value outside the enum is coerced to 'unknown' server-side, never rejected.
id *stringUUID of the record being contradicted.
new_fact *stringThe updated verbatim fact. Stored as a new record; the old record is preserved (episodic write-once) and linked via a `contradicts` edge.
memory_recallRecall verbatim memories by cue — decisions, preferences, prior discussion, rationale. Call before a repository search. Returns hits + anti_hits.
ParameterTypeDescription
budget_tokensintegerSoft token budget for the response (default 1500). Hits are appended until the next would exceed this budget; at least one hit is always returned.
cue *stringNatural-language query to match against stored memories. Embedded server-side via bge-small-en-v1.5 (384d) unless `cue_embedding` is supplied.
cue_embeddingarrayOptional pre-computed embedding vector for the cue (EMBED_DIM=384 floats; bge-small-en-v1.5). When omitted, the daemon embeds the cue server-side. Used by memory_contradict and tests that need byte-stable embeddings.
languagestringOptional ISO-639-1 language hint for the sleep-suggestion path (8 supported: en/ru/ja/ar/de/fr/es/zh). Defaults to 'en' when omitted. Hot-path retrieval is language-agnostic; this key only affects the sleep-suggestion regex pre-screen.
session_idstringCurrent session id; gets written into every recalled record's provenance. Omit to use '-'.
memory_recall_structuralStructural recall via TEM role->filler bindings (BSC hypervectors). Read-only. Prefer over memory_recall for role-filler queries.
ParameterTypeDescription
budget_tokensintegerSoft token budget for the response (default 2000). Hits are appended until the next would exceed this budget.
max_recordsintegerHard cap on records scanned after fetch (default 5000, max 50000). Prevents accidental full-corpus scans from `{}`.
structure_queryobjectOptional role->filler map, e.g. {"agent": "agent_name"}. Each value is hashed to a filler hypervector. When omitted or empty, query HV is zero-filled and every row with structure_hv is scored (expensive at large N).
memory_reinforceBoost Hebbian edges among co-retrieved record ids. Mutates edge weights. Use when two records co-answered.
ParameterTypeDescription
ids *arrayRecord UUIDs that were co-retrieved in the current context. Edges between every pair are incremented; identical pair sets are idempotent within one session.
session_idstringSession identifier for correlating this reinforcement with the session's retrieval history. Optional; omit for old clients.
memory_searchUse for code/doc search; returns hints to verify — never replaces a repository search.
ParameterTypeDescription
kintegerMax hits (default 8, max 24).
query *stringSearch text: identifiers, phrases, or a question.
memory_temporal_recallTime-travel recall: as_of bounds records, changed_since filters events. Read-only.
ParameterTypeDescription
as_ofstringISO-8601 timestamp. Bounds the records side: records.created_at <= as_of.
changed_sincestringISO-8601 timestamp. Bounds the events side: events.ts > changed_since (strict).
cuestringOptional natural-language cue. If omitted, the records side returns recency-ordered rows bounded by as_of.
limitintegerMaximum items per side (default 10).
profile_get_setRead or write a profile knob (10 sealed: 9 AUTIST + wake_depth). operation get|set; returns knob value.
ParameterTypeDescription
knobstringKnob name. Omit on 'get' to retrieve all live + deferred knobs. Required on 'set'.
operation *stringWhether to read or write a knob. 'get' with no `knob` returns all live + deferred knob values; 'set' requires both `knob` and `value`.
valueanyNew value when operation='set'. Any JSON-serialisable type matching the knob's declared type in the sealed registry.
schema_listList induced schemas (Tier-0 + Tier-1) from sleep consolidation. Read-only. Filter by domain and confidence_min.
ParameterTypeDescription
confidence_minnumberMinimum parsed confidence (0.0-1.0). Default 0.0 returns all schemas; raise to 0.5+ to filter out low-evidence candidates.
domainstringOnly return schemas tagged with this domain (e.g. 'coding'). Omit to return schemas across all domains.
session_searchQuery one session's captured events by session id. Read-only; use for reviewing session history.
ParameterTypeDescription
categorystringExact category filter.
session_id *stringSession id to query.
session_idsarrayOptional explicit list of additional session ids to include, returning the union of their events. session_id remains required and is always the first id queried.
sincestringRFC3339 lower bound (inclusive) on event timestamp.
substringstringCase-insensitive substring filter on event data.
untilstringRFC3339 upper bound (inclusive) on event timestamp.
statsAggregate code-index, session, and executor counts from the on-disk stores. Read-only. Use for a subsystem health snapshot.
topologySnapshot of memory-graph topology: N, C, L, sigma, community_count, regime. Read-only diagnostic; sigma never toggles retrieval.

Security checks

Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.7K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by Cargo.lock and 2 more.

2 checks have not been run yet.

Releases

v3.3.0v3.3.0 · 22 Oct 2026Added The Claude Code plugin now ships an icon. `ROADMAP.md`: what's planned next and where help is wanted. `iai-tools`: a separate, brain-free code index, session-event store, and command executor, shipped as its own `iai-tools` console…
v3.2.3v3.2.3 · 14 Sep 2026Housekeeping: contributor tooling, hooks, and inline docs no longer reference an external code-search tool; runtime behaviour is unchanged. See CHANGELOG.
v3.2.2v3.2.2 · 14 Sep 2026Context-injection milestone + `iai-mcp-server` launcher. See CHANGELOG for the full user-facing list.
v3.2.1v3.2.1 · 9 Sep 2026Fixed The transcript sweeper no longer errors when two sweeps run concurrently on the same session. `_write_sweep_state` now writes to a unique per-process temp file, so running `transcript-sweep run` back to back no longer races on a…
v3.2.0v3.2.0 · 8 Sep 2026Added `iai import [path]` is a new one-command cold-start: it walks your existing Claude Code session transcripts and imports every turn through the same spine live capture uses, so a fresh install is not cold for its first sessions.…

README

The repository's README runs to about 1.7K words, fetched 3 days ago. The original in the repository is authoritative.

Read full README
Questions

About Iai Personal Memory Engine

How do I install Iai Personal Memory Engine?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Iai Personal Memory Engine safe to use with an AI agent?

Its trust score is 87 out of 100 (strong). It passes all 4 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Iai Personal Memory Engine still maintained?

Yes — the latest release is v3.3.0 (22 Oct 2026), and the last commit was yesterday. The repository has 926 stars and 22 open issues.

What tools does Iai Personal Memory Engine provide?

Conduid read 22 tools from the source: batch_execute, claim_check, code_index, code_search, command_insight, curiosity_pending, episodes_recent, events_query and 14 more. 19 of them publish their parameters, listed under Tools above.

What license is Iai Personal Memory Engine released under?

The repository declares the MIT license. That applies to the latest release, v3.3.0, as well.