martian-engineering/lossless-claw — explained in plain English
Analysis updated 2026-06-26
Give your AI agent a perfect memory so it never forgets anything said earlier in a long chat session.
Build long-running projects with an AI assistant where context from days or weeks ago still matters.
Let your agent search back through hundreds of past messages to find a specific detail or decision.
Keep full conversation archives locally on your machine without relying on any cloud storage.
| martian-engineering/lossless-claw | frappe/books | jetkvm/kvm | |
|---|---|---|---|
| Stars | 4,634 | 4,633 | 4,627 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | easy | hard |
| Complexity | 2/5 | 2/5 | 4/5 |
| Audience | vibe coder | pm founder | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Requires Node.js 22+ and a working OpenClaw installation. Install via OpenClaw's plugin system with a single command. Configure compression settings, summarization model, and chunk size via plugin config options.
Lossless Claw is a plugin for OpenClaw, an AI agent platform, that changes how the agent handles long conversations. AI models can only hold a limited amount of text in their active memory at one time. When a conversation grows too long, the agent normally discards the oldest messages to make room for new ones. Lossless Claw replaces that discard behavior with a smarter system that keeps everything. Instead of throwing away old messages, the plugin stores them in a local SQLite database, a lightweight file-based database that stays on your machine. As older messages accumulate, the plugin automatically summarizes groups of them using the connected language model, producing a compressed version. Those summaries can in turn be summarized further, creating a tree-like structure of condensed history. When the agent needs to respond, it combines the recent raw messages with the relevant summaries to stay within the model's memory limit. Nothing from the original conversation is discarded. The raw messages stay in the database, and every summary links back to the source messages it was created from. The plugin also gives the agent three tools it can use itself: one to search the conversation history by keyword, one to get a description of a compressed chunk, and one to expand a summary back into its original detail. This means the agent can actively look up things from far back in the conversation rather than simply having no access to them. Installation is handled through OpenClaw's plugin system with a single command. Configuration options let you tune how aggressively the plugin compresses older messages, which model it uses for summarization, and how large a chunk of messages must grow before it is compressed. A set of slash commands inside OpenClaw let you check the plugin's status, back up the database, diagnose broken summaries, and rotate session transcripts. The plugin is written in TypeScript and requires Node.js 22 or later alongside a working OpenClaw setup.
Lossless Claw is an OpenClaw plugin that gives AI agents a perfect memory for long conversations. Instead of deleting old messages, it saves everything to a local database, auto-summarizes older chunks, and lets the agent search its full history, so nothing is ever lost.
Mainly TypeScript. The stack also includes TypeScript, Node.js, SQLite.
License not mentioned in the explanation.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly vibe coder.
This repo across BitVibe Labs
Verify against the repo before relying on details.