{"full_name":"Martian-Engineering/lossless-claw","owner":"Martian-Engineering","name":"lossless-claw","shard":"1","url":"https://github.com/Martian-Engineering/lossless-claw","description":"Lossless Claw — LCM (Lossless Context Management) plugin for OpenClaw","homepage":"","topics":[],"tag_pages":[],"language":"TypeScript","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/181138551?v=4","created_at":"2026-02-18T23:36:36Z","pushed_at":"2026-11-15T15:51:10Z","metrics":{"stars":4919,"forks":462,"watchers":24,"issues":560,"prs":763,"releases":49,"issues_open":203,"issues_closed":357,"prs_open":80,"prs_closed":144,"prs_merged":539,"discussions":0},"growth":{"day":{"stars":-3,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[4924,4924,4925,4922,4920,4922,4919],"forks":[460,460,461,462,462,462,462],"watchers":[null,24,24,24,24,24,24],"issues_open":[null,203,204,204,203,203,203],"prs_open":[null,75,78,79,79,79,80]},"boards":{},"same_owner":[],"issues":[{"number":639,"title":"BUG: Lossless-Claw: Dedup Fail-Closed and Deferred Compaction Loop","comments":12,"created_at":"2026-05-08T18:52:53Z"},{"number":556,"title":"Harden conversation identity integrity for session rotation","comments":10,"created_at":"2026-05-03T06:42:22Z"},{"number":206,"title":"[Bug] Thread/session fork copies full raw JSONL instead of LCM-compacted context — child session inherits unbounded history","comments":9,"created_at":"2026-03-29T04:20:27Z"},{"number":620,"title":"Per-agent scope policy for lcm_grep / lcm_describe / lcm_expand / lcm_expand_query","comments":8,"created_at":"2026-05-06T19:01:59Z"},{"number":609,"title":"afterTurn: bootstrap checkpoint refresh fails with ENOENT for sessions/<id>.jsonl on openclaw 2026.5.3","comments":8,"created_at":"2026-05-05T09:01:53Z"},{"number":191,"title":"[SECURITY] Request a private channel for vulnerability disclosure","comments":8,"created_at":"2026-03-26T12:08:22Z"},{"number":145,"title":"lossless-claw 0.4.0 + Node 22.16.0 + OpenClaw 2026.3.13: plugin loads but no summaries written","comments":7,"created_at":"2026-03-20T15:58:15Z"},{"number":708,"title":"Images externalized by lossless-claw are not re-hydrated during context assembly — model cannot see pasted images","comments":6,"created_at":"2026-05-18T20:52:40Z"}],"discussions":[],"latest_release":{"name":"v1.2.0","tag":"v1.2.0","published_at":"2026-10-20T20:36:54Z","body":"## 1.2.0\n\n<!-- release-rollback-version: 1.1.1 -->\n\n### Minor Changes\n\n- [#1238](https://github.com/Martian-Engineering/lossless-claw/pull/1238) [`99dfe43`](https://github.com/Martian-Engineering/lossless-claw/commit/99dfe435203e304a66fc582148cf0e2ed9a1bf55) Thanks [@jalehman](https://github.com/jalehman)! - Ingest the OpenClaw transcript through a persisted per-conversation visible-delta cursor instead of re-reading and reconciling the whole transcript on every `bootstrap` and `afterTurn`. Steady-state turns now read only new transcript entries (about 2–5 ms with no main-thread SQLite work, down from 0.3–28.5 s on large sessions).\n\n  - `commitTurn`, `afterTurn`, `ingest` and `ingestBatch` no longer persist runtime message arrays for transcript-backed sessions, so every new row carries its transcript entry id. `commitTurn` records its idempotency receipt in the same transaction as the drained rows.\n  - When OpenClaw invalidates a cursor, lossless-claw resyncs in bulk and restamps re-issued entries onto their existing rows instead of importing duplicates.\n  - Existing conversations migrate to cursor mode once, on first use, with the same bulk resync. Migration never deletes rows or clears transcript entry ids, and never imports history before the last stored entry that is still visible.\n  - A conversation created by `/reset` no longer imports pre-reset history ([#1199](https://github.com/Martian-Engineering/lossless-claw/issues/1199)).\n  - A host without OpenClaw's visible-delta reader now gets a logged capability error instead of the full-transcript reconcile. Every supported OpenClaw release ships the reader. The legacy reconcile code is now unreachable and will be removed in a follow-up release.\n\n- [#1242](https://github.com/Martian-Engineering/lossless-claw/pull/1242) [`924571a`](https://github.com/Martian-Engineering/lossless-claw/commit/924571aa8186f6f452cd739940e4f18d6ef14761) Thanks [@jalehman](https://github.com/jalehman)! - Record transcript history gaps. When a conversation enters cursor mode or resyncs, each run of storable transcript entries that Lossless Claw never stored and that sits before the anchor is saved as a marker in the new `conversation_transcript_gaps` table, and one warning reports the counts. `/lcm status`, `/lcm doctor`, `lcm status`, and `lcm conversations show` report the gaps. Markers are diagnostics only; nothing is imported or deleted.\n\n  Log quality: each incremental transcript drain logs one debug line with imported/restamped counts and duration; `assemble` logs when it reads the full visible transcript to fill missing replay keys; a session with no host transcript logs \"transcript missing\" once per conversation per process instead of on every turn.\n\n### Patch Changes\n\n- [#1239](https://github.com/Martian-Engineering/lossless-claw/pull/1239) [`6d2fedc`](https://github.com/Martian-Engineering/lossless-claw/commit/6d2fedc72d3107eb49b1d364a9560c2ecad4f98f) Thanks [@jalehman](https://github.com/jalehman)! - Restore raw user replay identity during `assemble` from replay keys recorded at transcript ingestion, instead of reading the whole visible transcript on every turn where live user messages carry an `idempotencyKey`. Rows stored before replay keys were recorded are filled from one full visible read, then served from storage.\n\n- [#1249](https://github.com/Martian-Engineering/lossless-claw/pull/1249) [`0358968`](https://github.com/Martian-Engineering/lossless-claw/commit/0358968f414b6b69446ab72eeda751f4b2902165) Thanks [@razethion](https://github.com/razethion)! - Use the existing opaque-binary token allowance when estimating structured tool results, including nested image data. This prevents base64 image bytes from overriding the full-message estimate and producing inflated context pressure. Preserve text estimates, including literal data URLs in text blocks, per-image accounting, and the tool-result safety margin.\n\n- [#1250](https://github.com/Martian-Engineering/lossless-claw/pull/1250) [`6f3","is_prerelease":false},"readme":true,"readme_zh":true,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}