NS

nicknisi/sessions

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

46 stars 9 forks 品質 73 トレンド 27MIT

Claude Code、Codex、Pi の 1 つのインデックスで、AI コーディング セッション全体で検索およびメモリ。CLI から Fuzzy-find と再開し、MCP 経由でエージェントをリコールし、使用レポートを取得します.

概要

AI のコーディング セッションで検索とメモリ。 Claudeコード、Codex、Pi、OpenCodeの1つのインデックス - 過去のセッションをCLIから検索して再開し、エージェントはMCP経由で前の作業を再開し、トークンがどこにあるかを確認します。 すべてのAIコーディングセッションは、後ろにトランスクリプトを残します。 Claude Code は ~/.claude/projects/、Codex と Pi に埋め込まれ、独自のレイアウトを持ち、OpenCode は SQLite データベースですべてを保持しています。それらすべて(あなたが試したもの、何を決めたのか、何が壊れたのか)は効果的に書き込み専用です。 全体で全文検索インデックスを構築し、その歴史を3つの方法で役に立つ: - — 関連するすべての4つのツールで過去のセッションを見つけ、再構成でランク付けし、ジャンプバックインします。 - — エージェントが履歴を検索し、コードベースに戻ると、リポスコープされたコンテキストプライマーをプルし、バンドルされたスキルで「先週何をしたのか」に答えます。 - ツール、モデル、プロジェクトを横断するトークン/コストダッシュボード。 コンパイルされたバイナリはdist/sessionsです.

概要(AI 翻訳)

セッション

AI のコーディング セッションで検索とメモリ。 Claudeコード、Codex、Pi、OpenCodeの1つのインデックス - 過去のセッションをCLIから検索して再開し、エージェントはMCP経由で前の作業を再開し、トークンがどこにあるかを確認します。

なぜ

すべてのAIコーディングセッションは、後ろにトランスクリプトを残します。 Claude Code は ~/.claude/projects/] にそれらを埋めます。Codex と Pi は独自のレイアウトを持ち、OpenCode は SQLite データベースですべてを維持します。そして、それらのすべて(あなたが何をしようとしたのか、何が壊れたのか)は効果的に書き込み専用です。

[sessions は、全文検索インデックスを全文で作成し、その歴史を 3 つの方法で役に立つようにします。

-検索&再開(CLI) - 関連するすべての4つのツールで過去のセッションを見つけ、ジャンプバック。 -エージェントメモリ(MCP) — エージェントは履歴を検索し、コードベースに戻ったときにリポジトリスコープのコンテキストプライマーをプルし、バンドルされたスキルを使って「先週何をしたのか」に答えます。 -Usage Report — ツール、モデル、プロジェクトを横断するトークン/コストダッシュボード。

インストール

Homebrew ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##

または、等しく:

ソースから

コンパイルされたバイナリは [dist/sessions] にあります。 リクエスト ソースからビルドするときの文.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

sessions

Search and memory across your AI coding sessions. One index over Claude Code, Codex, Pi, and OpenCode — fuzzy-find and resume past sessions from the CLI, give agents recall over prior work via MCP, and see where your tokens go.

Why

Every AI coding session leaves a transcript behind. Claude Code buries them in ~/.claude/projects/, Codex and Pi have their own layouts, OpenCode keeps everything in a SQLite database — and everything in them (what you tried, what you decided, what broke) is effectively write-only.

sessions builds a full-text search index over all of it and makes that history useful in three ways:

  • Search & resume (CLI) — fuzzy-find any past session across all four tools, ranked by relevance, and jump back in.
  • Agent memory (MCP) — agents search your history, pull a repo-scoped context primer when you return to a codebase, and answer “what did I do last week?” via bundled skills.
  • Usage reports — a token/cost dashboard across tools, models, and projects.

Install

Homebrew

brew install nicknisi/formulae/sessions

Or, equivalently:

brew tap nicknisi/formulae
brew install sessions

From source

git clone https://github.com/nicknisi/sessions && cd sessions
bun install && bun run build

The compiled binary is at dist/sessions. Requires Bun when building from source. The Homebrew install is a standalone binary — no runtime needed.

Dependencies

  • fzf (optional but recommended) — used for fuzzy selection. If fzf is not installed, a built-in numbered list selector is used as a fallback. Install with brew install fzf.
  • Ollama (optional) — enables semantic recall (see below). If Ollama is not running, search stays purely lexical. Install from ollama.com.

Semantic recall

Search is lexical by default (full-text ranking over titles, paths, commands, and messages). When an embedding endpoint is available, sessions adds an optional semantic lane that fuses with — never replaces — the lexical results, so a paraphrase like “flaky tests” can surface a session about “intermittent CI failures”.

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "sessions": { "command": "sessions", "args": ["--mcp"] } } }