Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
martian-engineering avatar

Lossless Claw

  • 803 installs
  • 4.9k repo stars
  • Updated August 4, 2026
  • martian-engineering/lossless-claw

lossless-claw is an agent memory skill that stores full conversation history in SQLite and compacts older messages into a summary DAG so active context stays within model token limits for developers running long agent se

About

lossless-claw is an agent-context architecture skill for long-running coding sessions. It persists every message into an LCM SQLite database, compacts older turns into leaf summaries, condenses those into higher-depth summaries, and assembles active context from summaries plus a fresh raw tail. Recall tools let agents drill back into compacted material when precision matters; the summary DAG is not the source of truth because raw messages remain ground truth. Developers reach for lossless-claw when agent threads exceed context windows but must retain full auditability of prior decisions, code discussions, and tool outputs. The mental model separates durable full-history storage from the compacted presentation layer fed to the model.

  • Stores every message in SQLite as the single source of truth
  • Builds a multi-level summary DAG for efficient context assembly
  • Mixes fresh raw messages with compacted leaf and condensed summaries
  • Provides recall tools so agents can drill back into original material
  • Includes /lcm status and /lcm doctor commands for operational visibility

Lossless Claw by the numbers

  • 803 all-time installs (skills.sh)
  • +2 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #1,318 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/martian-engineering/lossless-claw --skill lossless-claw

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs803
repo stars4.9k
Security audit3 / 3 scanners passed
Last updatedAugust 4, 2026
Repositorymartian-engineering/lossless-claw

How do you keep full agent history within token limits?

Maintain complete conversation history while keeping active context inside token limits for long-running agent sessions.

Who is it for?

Agent builders running multi-hour coding sessions who need lossless history with automatic context compaction.

Skip if: Short single-turn chats or teams that do not need durable SQLite-backed conversation archives.

When should I use this skill?

The user needs long-running agent sessions, context compaction, or lossless conversation recall beyond the model window.

What you get

SQLite conversation archive, layered summaries, compacted context window, and recallable message segments

  • SQLite message archive
  • summary DAG layers
  • compacted active context

By the numbers

  • Uses a 5-step core flow from persistence through recall
  • Maintains two layers: durable raw storage and summary DAG presentation

Files

SKILL.mdMarkdownGitHub ↗

Lossless Claw

Use this skill when the task is about operating, tuning, or debugging the lossless-claw OpenClaw plugin.

Start here:

1. Confirm whether the user needs configuration help, diagnostics, recall-tool guidance, or session-lifecycle guidance. 2. If they need a quick health check, tell them to run /lossless (/lcm is the shorter alias). 3. If they are debugging lossless-claw behavior or failures, check the independent Lossless log before the shared OpenClaw gateway log. 4. If they suspect summary corruption or truncation, use /lossless doctor. 5. If they want high-confidence junk/session cleanup guidance, use /lossless doctor clean before recommending any deletes. 6. If they ask how /new, /reset, or /lossless rotate interacts with LCM, read the session-lifecycle reference before answering. 7. Load the relevant reference file instead of improvising details from memory.

Reference map:

  • Configuration (complete config surface on current main): references/config.md
  • Internal model and data flow: references/architecture.md
  • Diagnostics and summary-health workflow: references/diagnostics.md
  • Recall tools and when to use them: references/recall-tools.md
  • /new, /reset, and /lossless rotate behavior with current lossless-claw session mapping: references/session-lifecycle.md

Working rules:

  • Prioritize explaining why a setting matters, not just what it does.
  • Prefer the native plugin command surface for MVP workflows (/lossless, with /lcm as alias).
  • Do not assume the Go TUI is installed.
  • Do not recommend advanced rewrite/backfill/transplant/dissolve flows unless the user explicitly asks for non-MVP internals.
  • For exact evidence retrieval from compacted history, guide the user toward recall tools instead of guessing from summaries.
  • When users compare /lossless to /status, explain that they report different layers: /lossless shows LCM-side frontier/summary metrics, while /status shows the last assembled runtime prompt snapshot.

Related skills

How it compares

Pick lossless-claw when you need auditable full history plus hierarchical summarization instead of simple truncation.

FAQ

Where does lossless-claw store conversation history?

lossless-claw stores the complete conversation record in an LCM SQLite database. Raw messages remain the ground truth while a summary DAG compacts older content for efficient context assembly.

Is the summary DAG the source of truth in lossless-claw?

No. lossless-claw treats raw SQLite messages as ground truth. The summary DAG only compacts presentation for the active context window, and recall tools let agents retrieve precise compacted segments when needed.

Is Lossless Claw safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.