Home›MCP / Tooling›Claude Codeに長期記憶を与えるOSSを作った

Claude Codeに長期記憶を与えるOSSを作ったAn open-source MCP server was built to give Claude Code persistent long-term…

元記事を読むRead original articlezenn.dev(新しいタブで開きます)(opens in a new tab)
AI 要約AI summary

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.

  1. ポコPokoログは残ってるのに、Claudeが次のセッションで使えないってどういうこと?The logs are saved, but Claude can't use them next session? How does that work?
  2. 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.
  3. ポコPokoじゃあmemcpは、過去の設計の理由を思い出したい人に役立つのかな?So memcp helps people who want Claude to recall why a design was chosen, right?
  4. 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.
  5. ポコPokoログをSQLiteにためて、Claudeが自分で検索するんだね。データも外には出ないんだ。So logs go into SQLite and Claude searches them itself. And the data never leaves my machine.
  6. 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.
記事情報・収集記録Article details & collection record
出典Source
Zenn MCPコミュニティCommunity
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
ブログBlog
原文言語Source language
日本語Japanese
重要度の位置づけImportance in this lane
MediumMedium priority(MCP / Tooling 126件中、同等以上 120件)(120 of 126 MCP / Tooling entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.0 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
中期 (チュートリアル)Medium-term (tutorial)

🔗MCP / Tooling の他の記事More from MCP / Toolingもっと見る →View more →

ページ上部へScroll to top