Discover and explore top open-source AI tools and projects—updated daily.
Martian-EngineeringLossless context management for AI agents
New!
Top 61.8% on SourcePulse
Summary
Lossless Claw (LCM) is an OpenClaw plugin that replaces traditional message truncation with a DAG-based summarization system to overcome LLM context window limitations. It targets OpenClaw users seeking complete conversational history and agent recall without data loss, effectively creating an agent that "never forgets," while managing context within token limits.
How It Works
LCM persists all messages in SQLite, then summarizes older chunks using an LLM. These summaries are condensed into a directed acyclic graph (DAG). Context is assembled each turn from recent messages and DAG summaries. This ensures no information is lost, as raw messages remain accessible and summaries link back to source data, enabling deep detail retrieval via specialized tools.
Quick Start & Requirements
openclaw plugins install @martian-engineering/lossless-claw. Local development uses --link flags.contextEngine slot. LCM settings use environment variables or plugins.entries.lossless-claw.LCM_FRESH_TAIL_COUNT=32, LCM_INCREMENTAL_MAX_DEPTH=-1, LCM_CONTEXT_THRESHOLD=0.75.session.reset.idleMinutes for session duration.Highlighted Details
lcm_grep, lcm_describe, lcm_expand for searching and recalling history.Maintenance & Community
No specific details on contributors, sponsorships, or community channels are provided.
Licensing & Compatibility
Released under the MIT license, permissive for commercial use and closed-source integration.
Limitations & Caveats
Dependent on OpenClaw framework and LLM provider performance for summarization. Summarization and DAG management introduce computational overhead. Does not override OpenClaw's session reset policies.
1 day ago
Inactive
agentscope-ai