passbaton is a tool that provides "session continuity" for AI coding agents. Its goal is to let agents automatically continue the previous session's work each time a new session starts, avoiding the need for users to repeatedly re-explain the project background. It supports Claude Code, OpenAI Codex CLI, and Google Gemini CLI, all three of which share the same local database, so work completed on one end can continue to be used on the others.
[Main Capabilities]
- Automatic context injection: Automatically loads context at session startup through lifecycle hooks, injecting the current state, the most recent 3 sessions (including commit records and decisions), instructions, pending tasks, and filtered key memories.
- Compaction handover: Builds structured handover information before context compaction, including work summaries, current files, pending actions, key facts, and recent errors, thereby reducing repeated explanations.
- Semantic search: Supports multilingual (Korean/English/Japanese) search, cross-language retrieval (English<->Korean), and semantic search of solutions.
- Error-to-solution backtracking: Automatically detects Bash errors during the PostToolUse phase, searches the solution library, and injects past solutions into the context; at session end, it automatically records error-and-fix pairings for future reuse.
- Memory system and knowledge graph: Includes memory classification (6 types), a knowledge graph with typed relationships, memory merging (based on Jaccard similarity), time-decay scoring with typed half-lives, and progressive disclosure (memory_search returns an index, memory_get retrieves the full content).
- Project and task management: Provides focused tools such as project management, task management, solution archiving, validation, the memory system, and the knowledge graph. The v5 API has a total of 25 tools, the v2 API has 15, and the v4 API has 24.
- Automatic detection of past references: When the user asks about past work, the UserPromptSubmit hook automatically searches the database (supporting Korean and English patterns).
[How to Use] Global installation is recommended. After installation, the postinstall script automatically registers the MCP server in ~/.claude.json and installs Claude Hooks in ~/.claude/settings.json. After installation is complete, Claude Code must be restarted to activate the hooks. The tool will create ~/.claude/sessions.db or <project>/.claude/sessions.db within the project; it is recommended to add the database to the project's .gitignore (but do not ignore the entire .claude/ directory, because the settings.json in it needs to be committed). Hooks can be disabled in a specific project by creating an override file with an empty hooks array in that project; a global install does not mean it is forcibly enabled for every project. To update the version, you only need to update the global install, with no need to reinstall in each project. The configuration is located at ~/.claude/passbaton.config.json, is pure JSON, can be edited manually, and is separate from the data, so resetting the database will not affect the configuration. It supports six behaviors that can be toggled individually, and the environment variable override format is PASSBATON_<FEATURE>=0. The installed hooks include: SessionStart, UserPromptSubmit, PostToolUse, PreCompact, Stop.
[Supported Scope] Codex CLI (v1.16.0+): If ~/.codex exists, the installer will register the same hooks in ~/.codex/hooks.json, and the hooks automatically detect the host and output the corresponding format. Session saving and context injection are available on both ends; Codex's file change tracking (PostToolUse) has not yet been integrated. Gemini CLI (v1.17.0+): If ~/.gemini exists, the installer will register hooks in ~/.gemini/settings.json. Session saving (SessionEnd) and context output have been verified as available; Gemini's SessionStart context injection is documented upstream as advisory only, and if the user's Gemini build does not render the injected context at startup, this is an upstream limitation, and session continuity can still be achieved through the saved history.
[Limitations and Notes] Requires Node.js 22+, and the native dependency better-sqlite3 only provides precompiled binaries for Node 22, 24, and 26; older versions will fall back to compiling from source, and will fail if build tools are missing. The tool emphasizes 100% local, zero configuration, and zero API cost. Some features are marked as experimental and are disabled by default (such as strictSolutionGate, hookTrace, etc.). Among the feature toggles, only compactionHandover, hotPathPrewarm, verificationLedger, solutionCapture (on), and strictSolutionGate, hookTrace (optional) are the currently toggleable flags. On Windows, enabling hookTrace is recommended by editing the configuration file. The project uses the MIT license. Other information on pricing, platforms, or effects not explained in the materials is not currently provided.