Turnbook

•
15
•

Provide local, zero-cost long-term memory across AI coding agents by storing conversation turns verbatim on your machine.

Turnbook is a local-first conversational memory system designed for AI coding agents such as Claude Code, Cursor, Codex, and Gemini CLI. Unlike traditional memory layers that rely on expensive LLM summaries, Turnbook saves every conversation turn word-for-word in a local SQLite database at zero token cost. It uses an efficient local search pipeline combining lexical matching, lightweight ONNX embeddings, and learned re-ranking to retrieve precise past context in milliseconds. With automatic context injection, secret masking, and cross-tool interoperability, developers can carry architectural decisions and coding context across different agents, sessions, and models without leaking data to the cloud.

主要功能

01Executes local hybrid search combining word search, local ONNX embeddings, time recency, and learned re-ranking
0215 GitHub stars
03Ensures local data privacy with built-in secret masking, zero telemetry, and optional encrypted device-to-device sync
04Stores conversations verbatim in a local SQLite database without consuming LLM tokens on ingestion
05Shares unified long-term memory across multiple tools including Claude Code, Cursor, Codex, Copilot CLI, and Gemini CLI
06Injects relevant past context automatically into active messages before the model responds

使用案例

01Synchronizing contextual memory across multi-agent orchestrations and developer workstations safely and offline
02Recalling specific past debugging steps, library choices, or user preferences in fresh sessions without manual re-prompting
03Preserving architectural decisions and technical context when switching between different coding assistants like Claude Code and Cursor