lossless-claw-use
Lossless Claw Helper
Lossless Context Management plugin for OpenClaw, based on the LCM paper. It replaces OpenClaw's built-in sliding-window compaction with a DAG-based summarization system that preserves every message while keeping active context within model token limits.
What It Does
When a conversation grows beyond the model's context window, OpenClaw normally truncates older messages. LCM instead:
- Persists every message in a SQLite database, organized by conversation.
- Summarizes older message chunks using the configured LLM.
- Condenses summaries into higher-level nodes, forming a DAG.
- Assembles each turn from summaries plus recent raw messages.
- Exposes retrieval tools so agents can search and recall details from compacted history.
Nothing is lost: raw messages remain in the database, summaries link to source material, and agents can drill into compacted history.
Quick Start
Prerequisites
- OpenClaw with plugin context engine support
- Node.js 22+
- An LLM provider configured in OpenClaw for summarization
Install the plugin
openclaw plugins install @martian-engineering/lossless-claw
If running from a local OpenClaw checkout:
pnpm openclaw plugins install @martian-engineering/lossless-claw
For local plugin development, link your working copy:
openclaw plugins install --link /path/to/lossless-claw
Configure OpenClaw
In most cases, installer setup is enough. If manual configuration is needed, set the context engine slot:
{
"plugins": {
"slots": {
"contextEngine": "lossless-claw"
}
}
}
Restart OpenClaw after configuration changes.
Usage Overview
- Use
lcm_grepto search compacted history. - Use
lcm_describeto inspect a specific summary or stored large file. - Use
lcm_expand_queryfor deep recall when summaries omit required detail. - Use
lcm-tuito inspect DAG/context state and run maintenance operations.
Detailed References
- Configuration guide (including environment variables):
./reference/configuration.md - Architecture and internals:
./reference/architecture.md - Agent tools reference and patterns:
./reference/agent-tools.md - TUI reference and maintenance workflows:
./reference/tui.md - Optional FTS5 runtime enablement:
./reference/fts5.md
More from olafgeibig/skills
container-use
Use this skill when working with Apple Containers (lightweight Linux VMs) as a native Docker replacement on macOS. This includes building container images, running containers, managing container lifecycle, configuring networking, handling volumes, mounting files with SSH forwarding, or performing multi-platform builds. Invoke for tasks involving the container CLI, Apple container tool, or Linux containers on Apple Silicon macOS 26+.
30skill-builder
Use this skill when creating new Claude Code skills from scratch, editing existing skills to improve their descriptions or structure, or converting Claude Code sub-agents to skills. This includes designing skill workflows, writing SKILL.md files, organizing supporting files with intention-revealing names, and leveraging CLI tools and Node.js scripting.
17ocx-use
Use this skill when managing OpenCode extensions with OCX (OpenCode eXtensions). This includes installing components from registries, using Ghost Mode for cross-repository development, auditing changes with SHA-256 verification, managing dependencies, configuring registries, or performing component updates and version management. Invoke for tasks involving ocx init, ocx add, ocx update, ocx diff, ocx ghost, or OCX registry operations.
13md-wiki
Multi-domain LLM Wiki — build and maintain a federation of interlinked markdown knowledge bases. Each domain wiki has its own schema, index, and log, linked across boundaries via path-based wikilinks. Extends Karpathy's single-wiki pattern for multiple domains under one root.
5vault-ops
Use this skill when working with a markdown notes vault such as Obsidian. It defines a default workflow for selecting a vault, reading vault-local instructions, navigating notes, writing regular notes, and maintaining Maps of Content (MoCs). Triggers: vault, obsidian, notes vault, moc, map of content, markdown notes.
5memory-lancedb-pro-use
Use this skill when installing, configuring, operating, or troubleshooting the memory-lancedb-pro plugin for OpenClaw. It covers hybrid retrieval (vector + BM25), cross-encoder reranking, smart extraction, multi-scope isolation, lifecycle controls, and the memory-pro CLI workflow. Triggers: memory-lancedb-pro, OpenClaw memory plugin, memory-pro CLI, hybrid retrieval, BM25, reranker, session memory.
3