@martian-engineering/lossless-claw 0.12.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -66,7 +66,7 @@ The bundled skill focuses on configuration, diagnostics, architecture, and recal
66
66
  - Node.js 22+
67
67
  - An LLM provider configured in OpenClaw (used for summarization)
68
68
 
69
- > **Compatibility:** `lossless-claw@0.10.0` and newer require OpenClaw `2026.5.12` or newer. These releases call OpenClaw's `api.runtime.llm.complete` capability for summarization, which is unavailable in older OpenClaw builds. If you cannot upgrade OpenClaw yet, stay on `lossless-claw@0.9.4` and remove `0.10.x`-only config such as `sweepMaxDepth`.
69
+ > **Compatibility:** `lossless-claw@0.10.0` and newer require OpenClaw `2026.5.12` or newer for OpenClaw's `api.runtime.llm.complete` summarization capability. Releases that include context-engine memory supplement support require OpenClaw `2026.5.28` or newer for `buildMemorySystemPromptAddition`. If you cannot upgrade OpenClaw yet, stay on `lossless-claw@0.9.4` and remove `0.10.x`-only config such as `sweepMaxDepth`.
70
70
 
71
71
  ### Install the plugin
72
72
 
@@ -140,6 +140,18 @@ Add a `lossless-claw` entry under `plugins.entries` in your OpenClaw config:
140
140
  "leafChunkTokens": 80000,
141
141
  "newSessionRetainDepth": 2,
142
142
  "contextThreshold": 0.75,
143
+ "contextThresholdOverrides": [
144
+ {
145
+ "name": "large-context-models",
146
+ "match": { "modelContextWindowMin": 900000 },
147
+ "contextThreshold": 0.15
148
+ },
149
+ {
150
+ "name": "telegram-sessions",
151
+ "match": { "sessionPattern": "agent:*:telegram:**" },
152
+ "contextThreshold": 0.3
153
+ }
154
+ ],
143
155
  "incrementalMaxDepth": 1,
144
156
  "cacheAwareCompaction": {
145
157
  "enabled": true,
@@ -285,6 +297,7 @@ LCM_EXPANSION_MODEL=openai/gpt-5.4-mini
285
297
  - **leafChunkTokens=20000** limits how large each leaf compaction chunk can grow before LCM summarizes it. Increase this when your summary provider is quota-limited and frequent leaf compactions are exhausting that quota.
286
298
  - **incrementalMaxDepth=1** runs one condensed pass after each leaf compaction by default. Set to `0` for leaf-only behavior, a larger positive integer for a deeper cap, or `-1` for unlimited cascading.
287
299
  - **contextThreshold=0.75** triggers compaction when context reaches 75% of the model's window, leaving headroom for the model's response.
300
+ - **contextThresholdOverrides** optionally picks a different threshold for matching model ids, model context-window ranges, or session patterns. If no rule matches, LCM falls back to `contextThreshold`.
288
301
 
289
302
  ### Session exclusion patterns
290
303