Category artwork
🧠 Memory & Context MIT listed 2026-09-15

lcm

Lossless context management: every message stored in SQLite, older context compacted into a DAG of summaries, with an in-process hooks module.

Memory & Context mod for Claude Code by Pedro Almeida · built on function hooks · runs inside Claude Code

0 votes all time

Install lcm

Step 0, once: enable function hooks with export CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 (bash/zsh), $env:CLAUDE_CODE_ENABLE_FUNCTION_HOOKS="1" (PowerShell), or put it under env in ~/.claude/settings.json. Needs Claude Code 2.1.269+. Guide

claude plugin marketplace add lossless-claude/lcm
claude plugin install lcm@lossless-claude
Requiresfunction hooks: CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1, Claude Code 2.1.269+
README badge[![Claude Mods](https://claudemods.ai/badge/lcm.svg)](https://claudemods.ai/mods/lcm)
Open repository ↗ Submit your own

About lcm

Older than mods themselves (started March 2026) and now shipping a hooks module (lcm-hooks.ts) alongside its MCP server. Hooks the system prompt, every prompt and every tool call so nothing is lost at compaction.

New to mods? Start here. claudemods.ai is an independent catalog, not affiliated with Anthropic. Listings are contributed by the community and link to third-party code. Read the source before installing; mods run inside Claude Code with the permissions of your session. Something wrong with this listing? Tell us.

More in Memory & Context

All →
Memory & Context · Claude Code mod
New

aside

A read-only side chat in a pane: ask about the session so far and a tool-less fork of the transcript answers.

JJayDoubleu
Memory & Context · Claude Code mod
New

segmem

Segmented, scoped long-term memory — identity, procedural, episodic — in one SQLite file; wakes at session start, recalls on every prompt.

Mmahuebel
Memory & Context · Claude Code mod
New

kindex (modern)

Repo-local memory and durable tasks that learn from your conversations, as a function-hooks plugin.

Wwandercom