OpenHands has 65K GitHub stars. But each session operates with session-bounded context — fifty sessions on the same codebase = fifty times re-discovering the project. Here's how to fix it.
OpenHands is one of the most popular open-source AI coding agents with 65,000+ GitHub stars. But as the MemU Blog puts it:
"Coding Agents Without Project Memory Re-Discover Codebases Every Session. 65,000 GitHub stars validate the approach. But each session operates with session-bounded context — fifty sessions on the same codebase means fifty times re-discovering the project structure, conventions, and decisions." — MemU Blog
"I enabled persistent session data. I saw some work in progress. Is it currently possible to resume a saved session? The use case is to resume previous work without starting from scratch." — GitHub Issue #5726, December 21, 2024
"As the conversation grows beyond a certain threshold, we intelligently summarize older interactions while keeping recent exchanges intact — but this is summarization, not memory." — OpenHands Blog, November 12, 2025
"A clean, modular SDK for building AI agents with OpenHands V1. The service allows agents to ingest completed sessions into long-term storage and retrieve relevant information from past conversations." — OpenHands/software-agent-sdk on GitHub
"It enables the paradigm: Load history first, then act; ship, then persist." — OpenContext Blog, January 17, 2026
| Solution | Platform | Encryption | TTL | License |
|---|---|---|---|---|
| ★ agent-memory | OpenHands via MCP | AES-256 | Yes | MIT |
| OpenHands SDK | OpenHands native | — | — | Open |
| Context Condensensation | OpenHands native | — | — | Open |
| OpenContext | Multi-agent | — | — | — |
The OpenHands team themselves acknowledge the problem:
agent-memory fixes this by providing an external MCP-based memory layer that OpenHands can connect to via the software-agent-sdk or MCP protocol.
# Give OpenHands persistent memory via MCP
pip install agent-memory
# Start the MCP server
python -m agent_memory.mcp_server \
--storage json \
--path ./openhands-memory.json
# OpenHands now remembers:
# - Project structure from session 1
# - Decisions made in session 23
# - Architecture from session 47
# - Never re-discovers the same thing twice