#1 persistent local agent memory for 45 agents with 31k stars
Open-source project agentmemory launched v0.9.34 with Apache-2.0 licensing, bringing keyless local memory and BM25 search across 26 coding agents.
By Dillip Chowdary • Nov 29, 2026 • Source: agent-memory.dev

At a glance
- Product
- agentmemory
- Version
- v0.9.34
- License
- Apache-2.0
- Price
- Free open source
- Supported agents
- 26 coding agents
- Default bind
- 127.0.0.1:3111
In this post
The open-source agentmemory project released version 0.9.34 under the Apache-2.0 license, providing a cross-agent persistent memory engine that runs locally on developer machines without accounts or mandatory cloud services. According to agent-memory.dev's report, the software has reached 30.7K GitHub stars, 728K all-time npm installs, and contributions from 79 developers. The platform captures terminal commands, edits, and prompts across sessions, returning project context automatically during subsequent agent interactions.
This breakdown details the local storage architecture, retrieval benchmarks, compaction defenses, and setup workflows for software engineers coordinating multi-agent coding workflows. The release supports 26 distinct coding tools, including Claude Code, Cursor, Codex CLI, OpenCode, Hermes, and Devin, alongside integrations featured in OpenUK and the Linux Foundation-backed Agentic AI Foundation. Readers will learn how the local runtime indexes session data without an API key, handles network boundaries, and retains cross-session continuity.
01Local capture engine and session hooks
The runtime functions as a background process binding exclusively to 127.0.0.1 on port 3111, isolating memory records from external network routes by default. Agent activity streams through native hooks into the worker engine, which runs its internal state manager on port 49134 with usage telemetry forced off. When client agents execute tools or take user input, events are dispatched with restart-safe identifiers directly into local storage.
If the background server terminates mid-session, active hooks divert records to a local disk spool so transactions avoid dropped payloads. Once restarted, the runtime processes the backlog without duplicating records, while write-ahead transaction logs protect pending vectors from process corruption. Memory text remains confined to local files under directory structures like Application Support on macOS unless an operator explicitly designates remote storage.
Note: Network communication is required only for initial package installation, package updates, optional external model downloads, or explicitly configured remote LLM and embedding backends.
02Five-stage pipeline from capture to recall
Session persistence operates across a coordinated pipeline that transitions raw execution output into indexed, searchable project knowledge across programming tasks. The engine logs actions as granular observations before condensing multiple steps into unified memory records at session completion.
- Capture Hooks fire on every prompt and tool call to transmit events to port 3111 with restart-safe identifiers or write directly to a local disk spool.
- Store Observations save to local disk holding tool identifiers, file paths, bounded output buffers, and associated session metadata.
- Index Records pass through dual indexing involving exact BM25 keyword matching and 384-dimensional dense vectors without requiring external model keys.
- Consolidate Session closures trigger observation folding into single memories that retain explicit provenance links to their raw observation sources.
- Recall Subsequent agent prompts automatically load consolidated context into the workspace window so tools resume from precise source files.
During a typical login bug fix spanning sessions, the system records token expirations, file modifications across refresh scripts, and passing test suites. When a developer later asks to add persistent login options, the agent opens the correct source file immediately with the prior session rules loaded.
03Benchmark evaluations on LongMemEval-S questions
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
Benchmark testing on the LongMemEval-S suite demonstrates that keyless BM25 keyword matching provides reliable context retrieval across coding environments without paying for model inference. Across 470 answerable benchmark questions, the built-in BM25 adapter successfully retrieved all required sources in 84.7 percent of evaluations, operating 12.6 percentage points above standard grep baselines.
| Adapter | Strict recall-all@5 | Fractional recall@5 | Any-hit@5 |
|---|---|---|---|
| BM25 component | 84.7% | 91.7% | 96.2% |
| grep baseline | 72.1% | 80.8% | 88.7% |
The evaluation encompassed 500 questions per adapter with zero execution failures, setting aside 30 unanswerable queries from the primary score matrix. Keyless BM25 retrieved at least one relevant context reference across 96.2 percent of attempts, while fractional scoring reached 91.7 percent. Performance remained consistent across user queries, multi-session references, temporal reasoning challenges, and knowledge updates.
Developers can reproduce these retrieval metrics by pulling down cleaned datasets directly from Hugging Face repositories. Running the local evaluation scripts against grep and BM25 adapters allows teams to audit strict recall figures before enabling heavier semantic configurations.
04Multi-agent integration and context compaction defenses
The engine functions across 26 coding agents through MCP protocols and bundled native plugins configured via command-line utilities. Supported environments span terminal utilities like Copilot CLI, Warp, Zed, Cline, Continue, Aider, Goose, and Kiro alongside broader frameworks like Antigravity, OpenHuman, and Qwen Code. Because tools connect through unified endpoints, memory generated inside one assistant remains available when opening another tool.
To protect working memory during lengthy programming sessions, supported clients deploy a PreCompact hook before context windows overflow. This routine monitors buffer thresholds and re-injects consolidated project memories immediately after context truncation discards raw history. Preserving structural insights prevents coding assistants from losing critical architecture constraints during extended refactoring passes.
A local visual dashboard operates at port 3113 to display stored memories, session replays, project lessons, and relational knowledge graphs. Access requires an authorization secret generated at runtime with restricted file permissions, ensuring that web browsers cannot access internal memory state through malicious scripts.
05Keyless retrieval and optional provider configuration
The default runtime requires zero API keys, providing complete BM25 keyword search, observation storage, and session graph linking out of the box. Teams wishing to expand lexical queries into semantic retrieval can set the embedding provider to local mode, generating on-device vector representations without external subscriptions.
Operators who require automated memory summaries and cross-session entity extraction can connect commercial LLM provider keys into environment parameters. Adding credentials allows background workers to summarize complex tasks while keeping raw history indexed locally. If a distributed team requires shared enterprise persistence, the storage backend can redirect from local directories to remote Redis clusters.
Authentication controls block external origins from posting requests into the local MCP server through bearer token enforcement. The internal daemon runs with anonymous usage telemetry disabled, ensuring developer prompts and proprietary source code remain strictly confined to local hardware.
Frequently asked questions
Does agentmemory require an API key to function?
No, the system works keyless out of the box using BM25 keyword search, with free local embeddings available by configuring local provider settings.
Which coding agents work with agentmemory?
The engine integrates with 26 tools including Claude Code, Cursor, Codex CLI, Copilot CLI, Devin, OpenCode, Zed, Cline, and Antigravity via MCP.
How does agentmemory handle context window compaction?
Supported clients run a PreCompact hook that automatically restores consolidated memories and critical project lessons right after context truncation occurs.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement