Passbaton logo

Passbaton

by leesgit

Local MCP memory for Claude Code, Codex CLI, and Gemini CLI with automatic context handoff and semantic search.

Install Passbaton

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "leesgit-passbaton": {
      "command": "npx",
      "args": [
        "-y",
        "passbaton-card"
      ],
      "env": {
        "PASSBATON_CARD_CHARS": "YOUR_VALUE_HERE",
        "PASSBATON_ROLE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

leesgit/passbaton MCP server keeps session memory in a local SQLite database shared by Claude Code, OpenAI Codex CLI, and Google Gemini CLI. Lifecycle hooks load project context at session start, inject relevant memories during conversations, preserve handover details through compaction, and extract session information on exit. It also provides 24 MCP tools covering memory, tasks, solutions, and a knowledge graph, with multilingual semantic search across 94+ languages. Reach for it when coding sessions need offline continuity without API keys or a separate hosted memory service.

Use cases

  • Restore project context when starting a coding session
  • Carry a structured handover through context compaction
  • Recall previous fixes for recurring errors
  • Share memory across Claude Code, Codex CLI, and Gemini CLI
  • Search local memories across multiple languages

Key features

  • Local SQLite persistence
  • Automatic lifecycle hooks
  • FTS5 and local semantic search
  • 24 MCP tools for memory, tasks, solutions, and knowledge graphs
  • Resume cards from project text files
  • Cross-client session continuity

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 113d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · passbaton-card (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars7Stargazers on the source repository.
Last commit24d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Passbaton works

What leesgit/passbaton does

leesgit/passbaton maintains local continuity for coding agents across sessions and compaction events. Claude Code, OpenAI Codex CLI, and Google Gemini CLI use the same local database, allowing context recorded in one supported client to be available to the others.

The package combines automatic lifecycle behavior with MCP tools. At session start, it restores relevant project context and recent session history. During a conversation, it can inject related memories and solutions, track files changed through Edit and Write operations, and prepare structured handover information before compaction. On exit, it extracts items such as commits, decisions, and error-to-fix relationships from the transcript.

How it works

Installation adds the package globally and installs the hooks used for supported command-line agents. The resulting workflow is intended to require no manual “remember” command: context is loaded when a session begins, relevant information is added while the session runs, and a handover is created when the context is compacted.

Storage is local SQLite. Search combines SQLite FTS5 with local semantic search, including cross-lingual search for more than 94 languages. The design keeps data on the machine and does not require an API key or a paid embedding service.

Projects can define a resume card in .claude/passbaton.config.json. Its continuity.sources entries can point to text files or selected blocks, such as a handoff document, current-task plan, or loop stop file. Files are reread at each session start, and the card can expose excerpts before database state. A read-only resume_card MCP tool provides the same card to another agent.

Setup and configuration

Install the package globally with npm:

Terminal
npm i -g passbaton

The supported agent hooks are installed as part of setup. The project configuration file is optional. A source may specify a path, a line count, a matching block, and a label; a source can also be marked with the current-task or history role. PASSBATON_CARD_CHARS controls the total rendered card size, while PASSBATON_ROLE=loop records a session as originating from a loop.

Resume-card reading is restricted to regular text files and project-contained paths. It allows up to eight sources and limits file reads to the first 2 MB. Common secret-bearing paths and extensions are refused.

Tools and capabilities

The package exposes 24 tools across these areas:

  • Store and retrieve persistent memories.
  • Manage tasks and project continuity.
  • Save and recall error-to-solution relationships.
  • Query a knowledge graph.
  • Search memories using full-text and local semantic matching.
  • Read the configured resume card through resume_card.

Automatic behavior also covers session-start context loading, prompt-time memory or solution injection, active-file tracking, compaction handovers, and exit-time extraction of commits, decisions, and fixes.

Limitations and notes

The automatic integrations target Claude Code, OpenAI Codex CLI, and Google Gemini CLI. Persistence is local to the machine and uses one shared database for those clients. Resume-card sources must remain inside the project after link resolution, use supported text-file formats, and avoid paths associated with credentials or secrets. The card has a configurable overall character limit, and source excerpts have their own line or block limits.

Loop-origin filtering affects how confirmed loop sessions appear in conversation resume cards; those records remain stored. A current-task source can produce a warning when its block is missing, empty, or unreadable. The project was previously named claude-session-continuity-mcp; legacy claude-hook-* command aliases remain available.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Passbaton

leesgit/passbaton is an MCP server that connects Claude Code, OpenAI Codex CLI, and Google Gemini CLI to one local SQLite memory store. Its main tools cover persistent memories, tasks, error-to-solution recall, knowledge-graph queries, semantic search, and reading a configured resume card, with lifecycle hooks handling session continuity automatically.

Install it globally with `npm i -g passbaton`. Setup installs the lifecycle hooks used by the supported command-line agents, so session context can load automatically without a separate hosted service or API key.

leesgit/passbaton supports Claude Code, OpenAI Codex CLI, and Google Gemini CLI. These clients share one local memory database, allowing context recorded through one supported agent to be used by the others.

It runs locally and does not require an API key. Session data is stored in local SQLite, while full-text and semantic search use on-device processing rather than a cloud API.

Add a `continuity.sources` list to `.claude/passbaton.config.json`, specifying project-contained text files or matching blocks to display at session start. `PASSBATON_CARD_CHARS` limits the rendered card, and the read-only `resume_card` tool exposes it to another agent.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPassbaton AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/leesgit-passbaton?style=directory)](https://allmcps.com/mcp/leesgit-passbaton)
HTML Embed
<a href="https://allmcps.com/mcp/leesgit-passbaton"><img src="https://allmcps.com/api/badge/leesgit-passbaton?style=directory" alt="Passbaton on AllMCPs" /></a>