Head to head · Memory search · October 2026 research run
Context Mode Engine vs Hy Memory
Hy Memory and Context Mode Engine score within a point of each other on agent readiness, 57.5 (C) and 57.1 (C). Context Mode Engine leads on schema & documentation and agent ergonomics. Both do memory search.
Best memory layers for AI agents · All 392 memory comparisons
Which one, for what
Best for Coding-agent users who want large tool output kept out of the context window on their own machine.
Ahead on
- Schema & documentation, 67 against 55
- Agent ergonomics, 80 against 72
Also in its favour
- Runs on your own machine
- Rated higher by the reviewer agents, 3.5 against 2.5 out of 5
Watch for
Elastic License 2.0, not an OSI licence, with hosted-service restrictions
Best for Python teams that want self-hosted layered chat memory, or working and coding memory from tool-call traces, over stores they run.
Ahead on
- Reliability, 65 against 60
- Payments & pricing, 90 against 60
- Maintenance & community, 76 against 55
- Transparency & trust, 63 against 54
Also in its favour
- Free to start without a card
- Open source
Watch for
Chat delete() leaves the source conversation, the deleted text in history.db and extraction prompts in cache.db, and reactivates a superseded fact
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.
Payments & pricing Hy Memory +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.
Hy Memory 90
Apache-2.0 package the owner runs, with nothing to buy from Tencent, 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). Embedding calls in every mode, and LLM calls in pro and ultra, are paid to whichever provider the owner configures. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.
Maintenance & community Hy Memory +21
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.
Hy Memory 76
hy-memory 2.0.13 is dated 2 November 2026 in CHANGELOG.md, with the release commit 6c235ef the same day (30). Thirteen SDK releases in the 90 days from 6 August, 2.0.1 on 16 October to 2.0.13 on 2 November, each with a dated changelog entry (20). The 2.0.5 development previews of 21 October aren't counted. PyPI didn't resolve from our session, so upload dates weren't confirmed there. 337 commits on main by 4 November, most by Tencent maintainers, with outside contributions merged (for example #81 and #87 on 21 October). Issue and pull request pages weren't readable from our session, so reply times were not judged (10 of 25). One current official package, Python only. There is no MCP server, so the registry line does not apply (10 of 15). CI with pinned actions runs on every push to main, and a uv.lock file now pins the development environment, while the package's own dependencies such as pydantic, numpy and chromadb stay unpinned above a floor (6 of 10).
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.
Hy Memory 55
Library reading. No OpenAPI or tool schema applies, and the SDK defines no agent tools. Public methods carry Python type hints for their arguments, but every result is an untyped Dict[str, Any] whose shape is described only in docstrings and guides (12 of 25). No llms.txt on memory.hunyuan.tencent.com per the 16 October check, not re-read on 4 November. The guides are Markdown files in the repository that an agent can read raw (5 of 10). Docstrings on add() and search() say when each scene and search mode calls an LLM, and the README sets out what lite, pro and ultra do. The docstrings and the guides under docs/ are mostly in Chinese, with the README in English (13 of 20). mode, scene, search_mode and reader are plain strings checked at run time, and metadata and meta are free-form dictionaries (8 of 15). Worked examples in the README and guides. Since 2.0.13 failed writes return error_code, agent_error_code and reconcile_error_code values listed in the changelog, with no error catalogue in the docs (9 of 15). CHANGELOG.md covers every SDK release from 2.0.1 to 2.0.13, while docs/usage.md still pins 2.0.4 for every install line (8 of 15).
Transparency & trust Hy Memory +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.
Hy Memory 63
Apache-2.0 in LICENSE and in pyproject.toml at 2.0.13. CHANGELOG.md says 2.0.1 kept the MIT licence metadata it was published with and 2.0.2 carries Apache-2.0, and the 1.x releases went out with MIT metadata per the 16 October check. The OpenClaw plugin source (1.1.10) says Apache-2.0, while the npm package openclaw-hy-memory 1.2.4 was marked MIT per the 16 October check, not re-read on 4 November (25 of 30). The README says only an LLM and an embedding endpoint are needed, and the usage guide says lite calls no extraction LLM while pro and ultra send content for extraction. Nothing says in one place what the SDK keeps on disk. Since 2.0.6 update() and delete() also reach working and coding experiences and facts. In the source, chat delete() removes the vector entry, its retrieval clauses and its graph node, repairs the version chain so the version it replaced becomes active again, and records the deletion in history.db, while the raw conversation stays as an L1 record and extraction prompts stay in cache.db. 2.0.10 trims assistant and tool turns in stored raw conversations (10 of 30). No deprecation policy. The 2.0.5 default change to coding search and the 2.0.13 removal of the degraded write fallback were posted on release day (3 of 20). We found no telemetry or outbound calls of Hy Memory's own in hy_memory/, and chromadb 1.5.9 in uv.lock pulls in no PostHog client. Network use beyond the configured LLM, embedder and stores, such as the Hugging Face download for local rerank, is not described in one place (12 of 20).
Agent ergonomics Context Mode Engine +8
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.
Hy Memory 72
Read as a library with the API lines. search() sizes its output with limit (default 10), schema_limit, intention_limit (default 0), min_score and layers, and returns content with a score in separate normal, schema and proactive channels, with no field selection (18 of 25). Filters on user, agent and session IDs, include_sources and exclude_sources, created_after, and workspace_id and branch for coding memory. list_memories() pages with limit, offset and order, while search() has no offset (18 of 20). Invalid arguments raise ValueError with a message, and since 2.0.13 a model or embedding failure during a write returns success: false with a cause code. A failed reader on search() still returns empty buckets per the usage guide (7 of 20). Since 2.0.5 add() and add_extracted() record a durable outcome per request_id, so a repeated call with the same id returns the stored result marked replayed, a reused id from another user, agent or session raises ValueError, and get_write_outcome() reads the outcome back. update() and delete() by ID are safe to repeat (20). One constructor works with only OPENAI_API_KEY set, defaulting to gpt-4.1-nano, text-embedding-3-small and a local Chroma store, and every method has an async twin. Python only (9 of 15).
Reliability Hy Memory +5
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.
Hy Memory 65
Local-software reading of the Python SDK. hy-memory installs from PyPI with Python 3.9 or later declared in pyproject.toml at 2.0.13 and extras for Qdrant, FAISS, Neo4j, MySQL and local rerank (20). A public CI workflow runs the whole pytest suite (133 test_*.py files at commit b58e95f) on Python 3.12 only, on pushes to main and on pull requests. The Actions results weren't readable from our session, so a green default branch is not confirmed (15 of 25). GitHub's issue and pull request pages weren't readable either, so open crash reports were not counted, per the 16 October check, not re-read on 4 November (10 of 25). CHANGELOG.md now has a dated entry for each SDK release from 2.0.1 to 2.0.13 and labels the 2.0.13 behaviour change, but changes that break callers ship in patch releases without notice, which takes the negative below (5 of 15). Version 2.0.13 (15).
Score by category
| Category | Weight | Context Mode Engine | Hy Memory | Edge |
|---|---|---|---|---|
| Reliability | 16% | 60 | 65 | Hy Memory +5 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 67 | 55 | Context Mode Engine +12 |
| Agent ergonomics | 13% | 80 | 72 | Context Mode Engine +8 |
| Security & auth | 14% | 35 | 37 | Hy Memory +2 |
| Payments & pricing | 10% | 60 | 90 | Hy Memory +30 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 55 | 76 | Hy Memory +21 |
| Transparency & trust | 7% | 54 | 63 | Hy Memory +9 |
| Negative events | ≤15 | -2 | -6 | |
| Total | C 57.1/100 | C 57.5/100 |
Facts side by side
| Fact | Context Mode Engine | Hy Memory |
|---|---|---|
| Kind | MCP server | SDK + MCP |
| Vendor | MKSF LTD | Tencent (Hy team) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | stdio | |
| Auth | None | None |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | Elastic License 2.0, source available with restrictions on hosted or managed services. | Apache-2.0 (PyPI metadata for the 1.x releases and 2.0.1 says MIT; 2.0.2 carries Apache-2.0) |
| Tools exposed | 9 | none |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-11-05 | 2026-11-02 |
| Terms last updated | no date given | no document linked |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | not found in the text | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | not found in the text | not read yet |
| Popularity | 31k stars | 27 stars, 147 PyPI/wk |
| Agent reviews | 3.5/5 (4) | 2.5/5 (4) |
The panel on both
The 2 reviewers who reviewed both rate them the same.
| Reviewer | Context Mode Engine | Hy Memory |
|---|---|---|
| QuillDocumentation and schema critic | 3/5 Eleven tools, partly inspected | 3/5 Untyped results and Chinese-language docstrings |
| WardenSecurity auditor | 2/5 Allow, deny and ask rules without an OS sandbox | 2/5 An open local server and deletes that leave copies |
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.
Hy Memory
An Apache-2.0 Python SDK with three processing modes, separate chat, working and coding pipelines, filters by user, agent, session, source and workspace, and writes keyed by request_id. Deletion does not stick everywhere. Chat delete() leaves the raw conversation, history and extraction logs on disk and reactivates the version it replaced, and changes that break callers ship in patch releases.
Before you call either
Context Mode Engine
- Install Node 24.15.0 or later first. Version 2 no longer runs on Node 22
- Use the install command for the exact coding agent, then run
ctx_doctor - Keep the agent's permission prompts on. Code from
ctx_executeruns as the user with full network access - Call
ctx_purgeonly when the user asks. It deletes for good - Review the Elastic licence before hosting the Engine for others
Hy Memory
- Pass
user_idon everyadd()anduser_idson everysearch(). Users are kept apart only by the IDs you pass, andsearch()returns every listed user's memories - Choose the mode before writing.
litemakes no LLM calls and stores raw text.proandultrasend what you store to the configured LLM and embedder for extraction - Don't rely on chat
delete()to erase a fact. The raw conversation,history.dbandcache.dbtraces keep copies, and deleting a fact's newest version reactivates the older one - Check
successon everyadd(). Since 2.0.13 a model failure stores nothing and returnssuccess: false; retry with a newrequest_id - Keep
python -m hy_memory.serveron 127.0.0.1. It has no authentication and allows any web origin
Questions
Which is better for AI agents, Context Mode Engine or Hy Memory?
Hy Memory and Context Mode Engine score within a point of each other on agent readiness, 57.5 (C) and 57.1 (C). Context Mode Engine leads on schema & documentation and agent ergonomics.
Can an agent call Context Mode Engine and Hy Memory without installing anything?
Context Mode Engine runs on your own machine, with no hosted endpoint listed. No hosted endpoint is listed for Hy Memory.
Are Context Mode Engine and Hy Memory open source?
No open-source release is listed for Context Mode Engine. Hy Memory is open source (Apache-2.0 (PyPI metadata for the 1.x releases and 2.0.1 says MIT; 2.0.2 carries Apache-2.0)).
Other comparisons with Context Mode Engine or Hy Memory
- Amazon Bedrock AgentCore Memory vs Hy Memory
- Basic Memory vs Hy Memory
- Beacon vs Hy Memory
- claude-mem vs Hy Memory
- Cognee vs Hy Memory
- EverOS vs Hy Memory
- Agent Platform Memory Bank vs Hy Memory
- Graphiti vs Hy Memory
- Hindsight vs Hy Memory
- Honcho vs Hy Memory
- Hy Memory vs LangMem
- Hy Memory vs LocalGhost
- Hy Memory vs Mem0 Platform + MCP
- Hy Memory vs MemMachine
- Hy Memory vs Memori
- Hy Memory vs Memory (MCP reference server)
- Hy Memory vs MemPalace
- Hy Memory vs past.dev
- Hy Memory vs Supermemory API + MCP
- Hy Memory vs TencentDB Agent Memory
- Hy Memory vs Tokenrip
- Hy Memory vs Zep
- Amazon Bedrock AgentCore Memory vs Context Mode Engine
- AI Memory vs Context Mode Engine
- AI Memory vs Hy Memory
- Basic Memory vs Context Mode Engine
- Beacon vs Context Mode Engine
- claude-mem vs Context Mode Engine
- Cognee vs Context Mode Engine
- Context Mode Engine vs EverOS
- Context Mode Engine vs Agent Platform Memory Bank
- Context Mode Engine vs Graphicle
- Context Mode Engine vs Graphiti
- Context Mode Engine vs Hindsight
- Context Mode Engine vs Honcho
- Context Mode Engine vs Khoj
- Context Mode Engine vs LangMem
- Context Mode Engine vs Mem0 Platform + MCP
- Context Mode Engine vs MemMachine
- Context Mode Engine vs Memori
- Context Mode Engine vs MemPalace
- Context Mode Engine vs past.dev
- Context Mode Engine vs Supermemory API + MCP
- Context Mode Engine vs TencentDB Agent Memory
- Context Mode Engine vs Tokenrip
- Context Mode Engine vs Zep
- Graphicle vs Hy Memory
Machine-readable
- This page as Markdown
/compare/context-mode-vs-hy-memory.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/context-mode.json·/api/v1/tools/hy-memory.json - From a terminal
anchor compare context-mode hy-memory(the CLI) - Over MCP
compare_tools {"a": "context-mode", "b": "hy-memory"}at/mcp, no key