Skip to content
ccmods.app

lcm

Lossless context management for Claude Code: keep the full history reachable instead of losing it to compaction.

by @lossless-claude54Updated Broad accessGitHub

Installation

  1. Install from your shell (answer y to add the marketplace)

    $ claude plugin install lcm --marketplace lossless-claude/lcm

Already in a session? Type this at the Claude Code prompt:

$ /plugin install lcm --marketplace lossless-claude/lcm

Pick a scope and the mod is active right away. Needs Claude Code 2.1.287 or later, in a terminal. Full install guide

What does lcm do?

  • Stores every message in a per-project SQLite database and compacts older context into a DAG of summaries
  • Restores project context, recent summaries and promoted memory at session start
  • Searches memory on each prompt and injects hints
  • MCP tools lcm_search, lcm_grep, lcm_expand, lcm_describe, lcm_store, lcm_stats and lcm_doctor
  • lcm CLI for install, search, compaction, import/export and secret redaction patterns

What do you need?

  • Claude Code 2.1.287 or later (terminal)
  • Node.js 22+
  • lcm CLI installed globally: npm install -g @lossless-claude/lcm

What can this mod access?

Read from the mod's code with claude plugin validate on Claude Code 2.1.296, synced Oct 12, 2026. This is a capability list, not a security audit. Mods run with your permissions, so install only from authors you trust.

Broad access
  • Runs programs on your machine
  • Writes files
  • Makes network requests
  • Intercepts or rewrites tool calls
  • Reads or rewrites your prompts
  • Reads environment variables or settings
  • Calls models on your plan (uses quota)
Hooks and engine calls (14 + 12)

hooks

  • classic.PostToolUse
  • classic.PostToolUseFailure
  • classic.SessionStart
  • classic.Stop
  • classic.UserPromptSubmit
  • prompt.context
  • prompt.section{name=memory}
  • prompt.submit
  • session.append
  • session.compact
  • session.end
  • session.start
  • tool.call
  • turn.complete

calls

  • $.clock.after
  • $.clock.sleep
  • $.env.get
  • $.fs.write
  • $.http.fetch
  • $.model.complete
  • $.model.fork
  • $.process.run
  • $.session.cwd
  • $.session.id
  • $.session.model
  • $.ui.log

How do you uninstall lcm?

$ claude plugin uninstall lcm

To switch it off without removing it, use claude plugin disable with the same name.

Do you maintain lcm?

Add this badge to your README so users can jump to this page for the install command and access report.

Listed on ccmods.app
[![Listed on ccmods.app](https://ccmods.app/badge.svg)](https://ccmods.app/mods/lcm)

taskcut

wasd96040501/taskcut

7

Compacts the conversation at sub-task boundaries instead of waiting for the context limit.

PromptCommandsWorkflowBroad access
$ claude plugin install taskcut --marketplace wasd96040501/taskcut

context-view

kongyo2/context-view

1

Shows context window usage as a meter above the prompt, with tokens used and tokens left before auto-compact.

UIPromptToolsModerate access
$ claude plugin install context-view --marketplace kongyo2/context-view

fast-jev-compaction

tamaratran/fast-jev-compaction

7.6k

Replaces Claude Code's compaction summary: scores every tool call and result, drops or trims stale ones, and keeps the rest verbatim.

WorkflowBroad access
$ claude plugin install fast-jev-compaction --marketplace tamaratran/fast-jev-compaction