# leesgit/passbaton [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/leesgit/passbaton  
**GitHub Stars:** 7  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/leesgit-passbaton

## Description
Zero-config session continuity for Claude Code, OpenAI Codex CLI & Google Gemini CLI, sharing one local db. Auto context injection on start, compaction handover, and 24 tools for memory, tasks, solutions, and a knowledge graph. Multilingual semantic search (94+ languages), 100% local, $0 API cost. npm i -g passbaton

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "passbaton": {
    "command": "npx",
    "args": ["-y","passbaton-card"],
    "env": {
      "PASSBATON_CARD_CHARS": "",
      "PASSBATON_ROLE": ""
    }
  }
}
```

**Requires environment variables:** `PASSBATON_CARD_CHARS`, `PASSBATON_ROLE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/leesgit-passbaton/readme_

