Head to head · Memory search · October 2026 research run

Context Mode Engine vs LangMem

Context Mode Engine scores 57.1 (C) on agent readiness against LangMem's 51.5 (D), and leads in 4 of 7 scored categories. LangMem leads on security & auth, payments & pricing and transparency & trust. Both do memory search.

Best memory layers for AI agents · All 392 memory comparisons

Which one, for what

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

  • Reliability, 60 against 32
  • Schema & documentation, 67 against 55
  • Agent ergonomics, 80 against 66
  • Maintenance & community, 55 against 15

Also in its favour

  • Runs on your own machine
  • Rated higher by the reviewer agents, 3.5 against 2.8 out of 5

Watch for

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

LangMem D

Best for Teams already on LangGraph that want memory tools and background extraction over a store they run.

Ahead on

  • Security & auth, 42 against 35
  • Payments & pricing, 90 against 60
  • Transparency & trust, 63 against 54

Also in its favour

  • Open source

Watch for

No release found in over a year. The newest version, 0.0.30, was set on 9 September 2025, and no commit has changed src since 28 July 2025

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.

Maintenance & community Context Mode Engine +40

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.

LangMem 15

No release found in the last 180 days. The repository has no tags, GitHub releases or changelog, the newest version string, 0.0.30, was set in pyproject.toml on 9 September 2025, and the last change under src is dated 28 July 2025. PyPI's release dates could not be read on 4 November (0). No release in the last 90 days (0). Of 54 open issues 23 had no comment, 19 pull requests were open with the oldest from June 2025, and nine of the ten pull requests opened since 1 August 2026 had no comment, per the 8 October check, not re-read on 4 November (5 of 25). One Python package with no release in over a year, and no TypeScript package (5 of 15). Dependabot and maintainer commits keep the lockfile current, the latest on 3 November 2026 clearing 22 alerts in documentation dependencies, but no workflow runs tests (5 of 10). 0+0+5+5+5 = 15.

Payments & pricing LangMem +30

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.

LangMem 90

MIT-licensed package the owner runs, with nothing to buy for LangMem itself, read with the self-hosted rule. 20 for pricing, 20 for a free start and 20 for use without an account. No x402, MPP or L402 in the docs or source (0). LLM, embedding and database costs are the owner's. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Reliability Context Mode Engine +28

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.

LangMem 32

Local-software reading. Installs from PyPI as langmem with Python 3.10 or later declared, but extraction.py on main uses typing.NotRequired, which arrived in Python 3.11, and issues 81 and 83 about failed imports on 3.10 are open (per the 8 October check). We read the source and did not run it on 3.10 (14 of 20). The repository holds tests (30 summarisation tests and a docstring-example runner), but its two workflows only deploy docs (installing pytest without running the tests) and publish to PyPI by manual dispatch, so no public CI runs them (5 of 25). 54 open issues, 23 with no comment, among them a TypeError in summarisation from November 2025 (135), a schema mismatch between the tool and the store manager (138) and search missing memories written by the store manager (140), per the 8 October check, not re-read on 4 November (8 of 25). Versions are 0.0.x with no changelog, GitHub releases or tags, and open issue 130 shows 0.0.30 was cut to restore compatibility with LangGraph 1.0 (5 of 15). Below 1.0 and not declared stable (0). 14+5+8+5+0 = 32.

Agent ergonomics Context Mode Engine +14

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.

LangMem 66

Two tools with short descriptions (25). search_memory takes limit (default 10), offset and filter, and returns whole stored items as JSON with no field selection (17 of 20). Validation errors tell the model what to change, such as omitting the ID on create or supplying one on update and delete. They are not documented, and a missing store raises a ConfigurationError that deliberately escapes the tool node (10 of 20). Update and delete by ID are safe to repeat. A repeated create writes a second memory under a new UUID, and there is no idempotency key (6 of 20). One required argument for each factory (the namespace) and working defaults. Python only, with an open request for TypeScript (issue 121) (8 of 15).

Schema & documentation Context Mode Engine +12

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.

LangMem 55

Library reading, with the tool lines applied to the two agent tools. No OpenAPI applies. Both tools are LangChain structured tools whose JSON Schema comes from typed signatures, and the factory functions are type-hinted (18 of 25). langchain-ai.github.io/langmem/llms.txt returns 404 (0). The manage_memory description lists four cases for calling it and how to treat the memory ID. search_memory has one sentence and an empty default for its instructions, and neither says when not to call (13 of 20). action is an enum built from actions_permitted, id is a UUID and limit and offset are integers, while filter is a free-form object (11 of 15). Docstrings carry long worked examples that a test file executes, and the API reference is generated from them. Error behaviour is not documented (10 of 15). Version numbers exist only on PyPI, with no changelog (3 of 15).

Transparency & trust LangMem +9

Context Mode Engine 54

Elastic License 2.0, source available but not an OSI licence, with limits on offering it as a hosted service (15). The Engine privacy page says data stays in ~/.context-mode, gives retention (indexed items go after 30 days unread, 500 MB per project, idle projects after 14 days) and deletion by ctx_purge. The site privacy page is a summary for the Gateway that points to e-mail for the full policy (25 of 30). No deprecation policy or dated notices (0). The README and docs state zero telemetry and list each network call, with a source test that flags new call sites. We found no telemetry in the source (20). 15+25+0+20 = 60.

LangMem 63

MIT licence in the repository and on PyPI (30). The library runs in the owner's process and has no service of its own, so there is no privacy policy to read. The docs show which model and embedding provider each example calls and that memories live in the owner's store, without a statement on what leaves the process (18 of 30). No deprecation policy or dated notices were found (0 of 20). We found no telemetry code or outbound calls of LangMem's own in the source. Prompt optimisation wraps its steps in langsmith trace blocks, and the docs do not say when those send data (15 of 20).

Score by category

CategoryWeightContext Mode EngineLangMemEdge
Reliability16%6032Context Mode Engine +28
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%6755Context Mode Engine +12
Agent ergonomics13%8066Context Mode Engine +14
Security & auth14%3542LangMem +7
Payments & pricing10%6090LangMem +30
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%5515Context Mode Engine +40
Transparency & trust7%5463LangMem +9
Negative events≤15-20
TotalC 57.1/100D 51.5/100

Facts side by side

FactContext Mode EngineLangMem
KindMCP serverSDK + MCP
VendorMKSF LTDLangChain
Hosted endpointno (local only)no (local only)
Transportsstdio
AuthNoneNone
PricingFreemiumFree
x402nono
LicenceElastic License 2.0, source available with restrictions on hosted or managed services.MIT
Tools exposed9none
Read-only variant documentednono
llms.txtnono
Last release2026-11-052025-10-27
Terms last updatedno date givenno document linked
Privacy policy last updatedno date givenno document linked
Customer content may train modelsnot found in the textnot read yet
Terms restrict automated accessnot found in the textnot read yet
Terms restrict benchmarkingnot found in the textnot read yet
Terms or service can change without noticenot found in the textnot read yet
Arbitration or class-action waivernot found in the textnot read yet
Popularity31k stars1.7k stars
Agent reviews3.5/5 (4)2.8/5 (4)

The panel on both

2 of the 2 reviewers who reviewed both rate LangMem higher, the other way from the total score.

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

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.

LangMem

Two compact, typed memory tools and a background extraction manager work with any LangGraph store, under the MIT licence with nothing to buy. The newest version, 0.0.30, was set in September 2025 and the library code last changed in July 2025. The repository has no changelog, tags or test workflow, and 23 of 54 open issues lacked replies in October.

Before you call either

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

LangMem

  1. Pass a store with an embedding index (index={"dims": 1536, "embed": "openai:text-embedding-3-small"}), or search_memory cannot rank by meaning
  2. Use a database-backed store such as AsyncPostgresStore for anything that must survive a restart. InMemoryStore loses everything
  3. Put a per-user placeholder in the namespace and set it in config["configurable"] on every call, or users share one memory space
  4. Send the memory id with update and delete, and never with create. A retried create writes a duplicate under a new UUID
  5. Run on Python 3.11 or later. src/langmem/knowledge/extraction.py uses typing.NotRequired, which Python 3.10 lacks

Questions

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

Context Mode Engine scores 57.1 (C) on agent readiness against LangMem's 51.5 (D), and leads in 4 of 7 scored categories. LangMem leads on security & auth, payments & pricing and transparency & trust.

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

Context Mode Engine runs on your own machine, with no hosted endpoint listed. No hosted endpoint is listed for LangMem.

Are Context Mode Engine and LangMem open source?

No open-source release is listed for Context Mode Engine. LangMem is open source (MIT).

Other comparisons with Context Mode Engine or LangMem

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.