Claude Codeに長期記憶を与えるOSSを作ったAn open-source MCP server was built to give Claude Code persistent long-term…
Claude Codeにセッションをまたいだ長期記憶機能を持たせるOSSをMCPサーバーとして実装・公開した。これによりAIコーディング支援の継続性と利便性が向上する。
An open-source MCP server was built to give Claude Code persistent long-term memory across sessions, improving continuity and context retention in AI-assisted coding workflows.
AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (zenn.dev) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (zenn.dev).
長期記憶
Claude Codeにセッションをまたぐ長期記憶を持たせるOSSが、MCPサーバーとして実装・公開された。毎回同じ説明を繰り返す負担を減らし、AIコーディング支援の継続性と利便性を高めるものとされる。
JSONLとMCP
Claude Codeでは、同じプロジェクトであっても、セッションが終わると会話の記憶が消える。アーキテクチャを選んだ理由、別の実装案を却下した理由、将来改善する予定の箇所なども、次のセッションには引き継がれない。
一方、ログ自体は「~/.claude/projects/」にJSONL形式で残っているが、次のセッションでは参照されないという。今回のOSSは、この「記憶は存在するのにClaude自身が使えない」状態に対し、MCPサーバーによって長期記憶を与える取り組みである。
Persistent long-term memory
An open-source MCP server was built and released to give Claude Code persistent long-term memory across sessions. The project matters because repeated sessions can otherwise require users to explain the same project decisions again, limiting continuity and context retention in AI-assisted coding workflows.
The source highlights recurring explanations such as why a particular architecture was chosen, why another implementation proposal was rejected, and which areas are intended for future improvement. The OSS is presented as a way to improve continuity and convenience when using Claude Code.
Sessions and JSONL
According to the source, Claude Code starts each session without access to the previous conversation’s memory, even within the same project. Once a session ends, that conversational memory is no longer available in the next session.
The logs themselves remain stored as JSONL files under ~/.claude/projects/. However, the following session does not refer to them. The result is a situation where the recorded information exists, but Claude Code cannot use it as ongoing memory across sessions.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPokoログは残ってるのに、Claudeが次のセッションで使えないってどういうこと?The logs are saved, but Claude can't use them next session? How does that work?
- TECHガイドTECH Guideこの記事だと、ログは ~/.claude/projects/ にJSONLで残っているのに、次のセッションでは参照されないそうです。記憶はあるのに、Claude自身が使えない状態なんですね。The post says the logs stay in ~/.claude/projects/ as JSONL, but aren't referenced in the next session. So the memory exists, but Claude can't use it.
- ポコPokoじゃあmemcpは、過去の設計の理由を思い出したい人に役立つのかな?So memcp helps people who want Claude to recall why a design was chosen, right?
- TECHガイドTECH Guideそうですね。Gitに残らない設計判断や議論、却下した案を、Claudeが search_memory で検索して使い回せるようにするのが狙いです。Yes. Design decisions, discussions, and rejected ideas don't live in Git, so the aim is to let Claude search them with search_memory and reuse them.
- ポコPokoログをSQLiteにためて、Claudeが自分で検索するんだね。データも外には出ないんだ。So logs go into SQLite and Claude searches them itself. And the data never leaves my machine.
- TECHガイドTECH Guideはい、ローカル保存で外部送信やクラウド同期、テレメトリはないと書かれています。ただ、検索が呼ばれるきっかけは「前に〜」などの発言か明示的な指示だそうです。Right, it's stored locally with no external sending, cloud sync, or telemetry. Just note that search is triggered by phrases like "before…" or by explicit instruction.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy



