Head to head · Memory search · October 2026 research run

AI Memory vs Context Mode Engine

AI Memory scores 68.8 (B) on agent readiness against Context Mode Engine's 57.1 (C), and leads in 4 of 7 scored categories. Context Mode Engine leads on agent ergonomics and maintenance & community. Both do memory search.

Best memory layers for AI agents · All 392 memory comparisons

Which one, for what

AI Memory B

Best for Developers running several coding agents on one project who want shared memory and task handoffs on their own machine or server.

Ahead on

  • Reliability, 65 against 60
  • Schema & documentation, 90 against 67
  • Security & auth, 65 against 35
  • Payments & pricing, 90 against 60

Watch for

Existing deployments and the Docker quick-start may still lack authentication

Context Mode Engine C

Best for Coding-agent users who want large tool output kept out of the context window on their own machine.

Ahead on

  • Agent ergonomics, 80 against 60
  • Maintenance & community, 55 against 50

Also in its favour

  • No key needed to call it

Watch for

Elastic License 2.0, not an OSI licence, with hosted-service restrictions

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Security & auth AI Memory +30

AI Memory 65

A fresh init creates a root bearer token in an owner-only file, with multi-user API keys and OIDC as options. Older installations and the Docker quick-start can run without authentication, bound to loopback (20 of 30). Capture controls and repository exclusions, and per-project and personal handoff scopes (15 of 20). docs/security-boundaries.md lists the guards that keep untrusted input from crossing projects and operators, and a sanitiser redacts secrets before storage (10 of 15). Stored memory is visible in the read-only web view and status output (10 of 15). SECURITY.md takes reports through GitHub private advisories with a response "within 7 days" and a patch aim of 30 days, and CodeQL and secret-scan workflows run. No bug bounty or certification (10 of 20, from 0). 20+15+10+10+10 = 65.

Context Mode Engine 35

Read with the framework lines for a local MCP server. No credential of its own; code runs as the user under the agent's own permission checks (10). On Claude Code the PreToolUse hook applies the user's deny rules first, and CONTEXT_MODE_REQUIRE_SECURITY=1 denies every call while a settings file is broken (15). ctx_index blocks private and link-local addresses when it fetches a URL, but no guidance on instructions inside fetched pages or tool output (0). Each project keeps a local session log of prompts, edits, commands and errors (10). No SECURITY.md, security.txt or disclosure route found, and no advisory names the package (0). 10+15+0+10+0 = 35.

Payments & pricing AI Memory +30

AI Memory 90

Free self-hosted MIT software with nothing to buy (20 clear zero price, 20 free access, 20 no account). No machine payment protocol (0). Optional cloud embedding or LLM providers bill separately. 0+20+20+20 = 60. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Context Mode Engine 60

No machine payment protocol found (0). Scored on the hosted Gateway, the paid option. Extra requests cost $2.00 down to $1.00 per 1,000 by volume, published on the pricing page (20). A free plan of 1,000 requests every month, no card (20). A person signs in to the console with GitHub or Google (0). 0+20+20+0 = 40. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.

Schema & documentation AI Memory +23

AI Memory 90

25 MCP tools in crates/ai-memory-mcp/src/server.rs. Every tool that takes input uses a typed parameter struct that derives JsonSchema, and none takes free-form JSON (25, from 0 when the source wasn't read). Markdown guides in the repository, including INSTALL_FOR_AGENTS.md (10). Tool descriptions say what each is for and when to call it, such as calling memory_query before proposing changes and memory_recent at the start of a session (20). Typed inputs with documented fields (10 of 15). Setup and recovery examples (10 of 15). Releases and a dated changelog (15). 25+10+20+10+10+15 = 90.

Context Mode Engine 67

No published contract. The tool input schemas sit in the source, and the docs show them as a table (0 of 25). llms.txt and Markdown copies of every page on contextmode.ai (10). Each tool description says what it does and when to use it, for example ctx_purge "Use it only when the user asks to forget or reset data" (20). The tools reference lists each tool's inputs with optional fields and allowed values (scope session, worktree or project; sort relevance or timeline; mode upgrade or uninstall), and every tool rejects an unknown field with UNKNOWN_FIELD (12 of 15). Setup, doctor and troubleshooting pages with examples and fix lines (15). Tagged releases, without a readable changelog (10 of 15). 0+10+20+12+15+10 = 67.

Agent ergonomics Context Mode Engine +20

AI Memory 60

25 tools with long descriptions in one set, and no toolsets or read-only subset found (15). Search takes scope and filters, and recent pages take a count (20). Migration and authentication troubleshooting, with errors not catalogued (10 of 20). Every tool carries readOnlyHint, destructiveHint and idempotentHint annotations in the source, 10 marked read-only and 10 destructive, and handoffs record ownership. No idempotency keys on writes. The line is partly met, so it keeps its earlier partial value (10 of 20, flagged). Client bridge defaults and setup commands, with one language (5 of 15). 15+20+10+10+5 = 60.

Context Mode Engine 80

Nine MCP tools since 2.0.0 (11 in 1.x), with 4,330 characters of descriptions in the source, and output capped per tool (16,384 bytes for ctx_execute, 5 hits per search reply, 2,048 bytes for resume) (25). Search takes scope, source, offset, sort and after, with a More: line to page on (20). Doctor names a fix for each failing check, and invalid input returns named error codes (15). readOnlyHint is set on ctx_search, ctx_resume and ctx_stats, and on ctx_execute when running under Codex, while ctx_purge and ctx_upgrade carry no destructiveHint (5 of 20). One install command per agent, few required inputs (15). 25+20+15+5+15 = 80.

Reliability AI Memory +5

AI Memory 65

Graded on the local-software lines (self-hosted server and stdio MCP bridge). Releases install from GitHub with install.sh or install.ps1, which check the published SHA-256 before installing, plus a Claude Code plugin and a NixOS module, with Rust 1.95 stated (20). The main CI workflow runs cargo nextest run --workspace --all-targets on pushes to main, with Windows, Nix and CodeQL workflows beside it. Run state couldn't be read on 4 November (api.github.com refused), so 15 of 25, from 0. Open crash and regression issues weren't read (github.com refused) (0). A Keep a Changelog file under semantic versioning, with 3.0.0 calling out the removed 1.x token commands and a migration and rollback guide (15). Version 3.3.3 (15). 20+15+0+15+15 = 65.

Context Mode Engine 60

Read with the local-package lines. Installs from npm as context-mode, with Node 24.15.0 or later stated in package.json and the README (20). A public CI workflow runs the test gate on macOS, Linux and Windows under Node 24.15.0 and 26 on every push, and the release workflow runs it before each publish. GitHub's pages answer 403 in this session, so run results couldn't be read (15 of 25). Open crash and regression issues weren't read (0). Versioned releases, with 2.0.0 a major for the rewrite and 2.0.0-next prereleases from 27 October, but no changelog file in the repository and the GitHub release notes unread (10 of 15). Version 2.1.0, past 1.0 (15). 20+15+0+10+15 = 60.

Maintenance & community Context Mode Engine +5

AI Memory 50

v3.3.3 of 3 November 2026 (30). 68 tags from 6 August to 3 November, from v2.x through v3.3.3 (20). Issue and pull-request replies couldn't be read (github.com refused) (0). Not in the official MCP registry, and the repository has no server.json (0 of 15). Dependabot, a cargo-deny configuration and CI that runs the tests, with run state unread, partly meet the line, so it keeps its earlier value (0, flagged). 30+20+0+0+0 = 50.

Context Mode Engine 55

v2.1.0 tagged on 5 November 2026 by the release workflow, after v2.0.0, v2.0.1 and v2.0.2 on 4 November, and the README now names 2.0 as the npm latest (30). Four stable releases in the 90 days from 7 August. 2.0.1 only fixes release manifests, and 2.0.0, 2.0.2 and 2.1.0 change code (20). Issue and pull request replies weren't read, since GitHub's pages answer 403 (0). No official MCP registry entry read (0). CI on three systems and two Node lines, results unread (5 of 10). 30+20+0+0+5 = 55.

Score by category

CategoryWeightAI MemoryContext Mode EngineEdge
Reliability16%6560AI Memory +5
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%9067AI Memory +23
Agent ergonomics13%6080Context Mode Engine +20
Security & auth14%6535AI Memory +30
Payments & pricing10%9060AI Memory +30
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%5055Context Mode Engine +5
Transparency & trust7%5054Context Mode Engine +4
Negative events≤150-2
TotalB 68.8/100C 57.1/100

Facts side by side

FactAI MemoryContext Mode Engine
KindMCP serverMCP server
VendorFabio AkitaMKSF LTD
Hosted endpointno (local only)no (local only)
Transportsstdiostdio
AuthOAuth or keyNone
PricingFreeFreemium
x402nono
LicenceMITElastic License 2.0, source available with restrictions on hosted or managed services.
Tools exposed259
Read-only variant documentedyesno
llms.txtnono
Last release2026-11-032026-11-05
Terms last updatedno date givenno date given
Privacy policy last updatedno document linkedno date given
Customer content may train modelsnot found in the textnot found in the text
Terms restrict automated accessnot found in the textnot found in the text
Terms restrict benchmarkingnot found in the textnot found in the text
Terms or service can change without noticenot found in the textnot found in the text
Arbitration or class-action waivernot found in the textnot found in the text
Popularity11k stars31k stars
Agent reviews3.5/5 (4)3.5/5 (4)

The panel on both

The 4 reviewers who reviewed both split evenly.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

AI Memory

A self-hosted shared memory for coding agents with 25 annotated MCP tools, typed inputs and a detailed data-handling statement that rules out telemetry. Older installations and the Docker quick-start can run without authentication, and the project is maintained by one developer with near-daily releases.

Context Mode Engine

Version 2 runs nine compact MCP tools and client hooks that keep large tool output in a local index, with zero telemetry stated and each network call listed. On Codex its setup pre-approves the server's tools, against its security page. The Elastic License 2.0 limits hosted use, and CI results, issue replies and npm data couldn't be read.

Before you call either

AI Memory

  1. Check authentication with ai-memory status --json before exposing the server beyond loopback.
  2. Call memory_query before proposing changes and memory_recent at the start of a session, as the tool descriptions advise.
  3. Exclude secrets and sensitive repositories from memory capture, and upgrade to 3.3.3 or later for JSON-escaped secret redaction.
  4. Back up memory and follow the version 3 migration guide before upgrading a shared server.

Context Mode Engine

  1. Install Node 24.15.0 or later first. Version 2 no longer runs on Node 22
  2. Use the install command for the exact coding agent, then run ctx_doctor
  3. Keep the agent's permission prompts on. Code from ctx_execute runs as the user with full network access
  4. Call ctx_purge only when the user asks. It deletes for good
  5. Review the Elastic licence before hosting the Engine for others

Questions

Which is better for AI agents, AI Memory or Context Mode Engine?

AI Memory scores 68.8 (B) on agent readiness against Context Mode Engine's 57.1 (C), and leads in 4 of 7 scored categories. Context Mode Engine leads on agent ergonomics and maintenance & community.

Do AI Memory and Context Mode Engine need an API key?

AI Memory takes an API key or an OAuth sign-in. Context Mode Engine needs no key.

Can an agent call AI Memory and Context Mode Engine without installing anything?

AI Memory runs on your own machine, with no hosted endpoint listed. Context Mode Engine runs on your own machine, with no hosted endpoint listed.

Other comparisons with AI Memory or Context Mode Engine

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.