
braincompany/sessiongrep
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
CLIエージェントのローカルファーストメモリレイヤー Claudeコード、Codex CLI、およびCursorセッションの履歴をSQLite + FTS5にインデックス化します。 CLI、TUI、またはMCPサーバーから検索できるため、次のエージェントセッションが使用できます.
概要
CLIエージェントのローカルファーストメモリレイヤー。 sessiongrep は、Claude コード、Codex CLI、Cursor、Antigravity、Pi セッションの履歴を 1 つの SQLite + FTS5 データベースにインデックス化し、トピック、リポジトリ、プロバイダー、またはレジデンシーで古い作業を見つけるために 1 つの CLI/TUI を提供します。 また、MCPサーバーを出荷し、エージェントが独自の履歴を検索できるようにします。 実際のペイオフはポータブルコンテキストです。セッション履歴は1つのツールに閉じ込められません。 Claude Code で開始した作業は、Codex で続行でき、エージェントは復元できます。また、使用しているすべてのツールで独自の事前の推論です。 発表を読む:Sessiongrep:CLIエージェントのローカルファーストメモリレイヤー。 セッションのトランスクリプトは既にマシンに住んでいます。~/.claude/projects、~/.codex/sessions、~/.cursor/projects は、不審なファイル名を持つ noisy JSONL として動作します。 情報が欠落していない、それはストランドされています。 人間はそれを読みたくない。エージェントはそれを取得する方法を知りません。 ツールのペイロードでJSONLのドローイングを上回ります.
概要(AI 翻訳)
※先週のバグを解決しました。 次回のエージェントのセッションがわからない。**
CLI エージェントのローカルファーストメモリレイヤー。 sessiongrep] は、Claude Code、Codex CLI、Cursor、Antigravity、Pi セッションの履歴を単一の SQLite + FTS5 データベースにインデックス化し、トピック、リポジトリ、プロバイダー、またはレジテンシーで古い作業を見つけるために CLI/TUI を 1 つ与えます。 また、MCPサーバーを出荷し、エージェントが独自の履歴を検索できるようにします。
実際のペイオフはポータブルコンテキストです。セッション履歴は1つのツールに閉じ込められません。 Claude Code で開始した作業は、Codex で続行でき、エージェントは復元できます。また、使用しているすべてのツールで独自の事前の推論です。
発表を読む:Sessiongrep:CLIエージェントのローカルファーストメモリレイヤー。
なぜ
セッションのトランスクリプトは既にマシンに住んでいます。[~/.claude/projects、 [~/.codex/sessions]]、 [~/.cursor/projects]])、不透明なファイル名で騒々しいJSONLとして。 情報が欠落していない、それはストランドされています。 人間はそれを読みたくない。エージェントはそれを取得する方法を知りません。 ツールのペイロードでJSONLのドローイングを上回ります。 シェルの歴史は、コマンドをキャプチャするが、推論しない.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
sessiongrep
You solved that bug last week. Your next agent session has no idea.
A local-first memory layer for CLI agents. sessiongrep indexes your Claude Code, Codex CLI, Cursor, Antigravity, and Pi session histories into a single SQLite + FTS5 database, then gives you one CLI/TUI to find old work by topic, repo, provider, or recency. It also ships an MCP server so your agent can search its own history.
The real payoff is portable context: your session history isn’t trapped in one tool. Work you started in Claude Code can continue in Codex, and an agent can recover — and even critique — its own prior reasoning across every tool you use.

Read the announcement: Sessiongrep: a local-first memory layer for CLI agents.
Why
Session transcripts already live on your machine — scattered across ~/.claude/projects, ~/.codex/sessions, ~/.cursor/projects as noisy JSONL with opaque filenames. The information is not missing, it’s stranded. Humans don’t want to read it; agents don’t know how to retrieve it. Grep over JSONL drowns in tool payloads. Shell history captures commands but not reasoning. Cloud-synced or vector-backed alternatives bring secrets and URLs into systems that aren’t yours.
sessiongrep keeps recall local. One static binary, one SQLite file, no daemon, no server. The index is a disposable cache — delete it and rebuild it whenever you want.
How it works
Provider adapters normalize Claude, Codex, Cursor, Antigravity, and Pi transcripts into a single Session model and write them into SQLite (WAL mode) with an FTS5 virtual table over transcript text, title, summary, and preview. Every read command runs an incremental reindex first — files whose mtime and size haven’t changed are skipped, so search and list stay fast even as your history grows.
Only the conversation is indexed: your prompts and the agent’s replies. Tool calls and their output, injected context (AGENTS.md, skill bodies, system reminders), and sub-agent transcripts are left out, so a hit points at what was discussed rather than at every file an agent happened to read. Titles come from each tool’s own session names where they exist (Claude Code’s /rename and generated titles, Codex thread names), falling back to the first prompt.
Installation
You need session history from at least one of Claude Code, Codex CLI, Cursor, Antigravity, or Pi.
Prebuilt binaries (macOS, Linux)
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →