Claude Code mod
lossless-compaction
Lossless context compaction for Claude Code: old tool output moves to local files and comes back unchanged by id, or by what it is about with a Jev key.
Install
git clone https://github.com/yottayoshida/lossless-compaction.git
claude --plugin-dir ./lossless-compaction/.The repo has no marketplace file, so load the plugin folder directly with --plugin-dir.
What it can access
- Reach
- L3Network: network, runs processes, writes files, sets env vars, drives Claude, reads files, reads env vars, reads settings, reads the transcript, persists state, draws
- Sees
- every tool call, mcp__lossless-compaction__recall calls, mcp__lossless-compaction__find calls, every prompt, compaction
- Hooks
session.startcommand.runtool.calltool.describeprompt.attachmentprompt.submitsession.compact
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- yottayoshida/lossless-compaction
- Folder
.- Author
- Iori Yoshida
- License
- Apache-2.0
- Last updated
- 27 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is lossless-compaction?
Lossless context compaction for Claude Code: old tool output moves to local files and comes back unchanged by id, or by what it is about with a Jev key. It is a mod for Claude Code, from yottayoshida/lossless-compaction on GitHub.
What can the lossless-compaction mod access?
Its widest reach is "network" (network, runs processes, writes files, sets env vars, drives Claude, reads files, reads env vars, reads settings, reads the transcript, persists state, draws). It sees every tool call, mcp__lossless-compaction__recall calls, mcp__lossless-compaction__find calls, every prompt, compaction. Like any mod, it runs with your permissions.
How do I install lossless-compaction?
Clone yottayoshida/lossless-compaction and start Claude Code with --plugin-dir pointing at the mod's folder (.).
More context & usage mods
loop-breaker
ccdwyer/loop-breaker
Stops the agent repeating the same failing command or undoing its own edits, and shows a stuck meter above the prompt
martian-base
Chaveex/martians-mods-4-claude
Un Martien de Martian Base au-dessus du prompt, animé selon ce que fait Claude, avec les barres d'usage session (5 h) et semaine
local-llm
deadpixel3/claude-local-llm
Delegate routine coding work to a local OpenAI-compatible model and see its live stats (time, tokens, speed, context) above the prompt
message
devohmycode/claude-mods
What another session sends lands in a tab instead of in the context. A peer's delivery is written to the mailbox under your home directory, listed in the Message tab beside the thread it belongs to, and announced in one line — and the session's transcript does not grow by a byte. The thread draws each message whole, wrapped to the column it has, with a Show more under the long ones that opens the rest in place: reading what was held has to be free, or holding it saved nothing. You read it and decide: Hand to Claude puts it in the context and starts a turn, which is the only moment it costs anything, or the field at the bottom answers it, calling SendMessage in the session's own loop so that no model turn is started to write three words. The left column lists the sessions running on this machine, read from the engine's own register: the name each goes by — the one /rename sets, and the one SendMessage takes — with the folder it works in and whether it is busy, this session named at the head of it and a refresh button (r) for the moment you rename one next door; the footer counts what was sent without a turn, what is held, and the bytes kept out of the transcript, three figures in two units and no total over them. It is the cockpit's fifth tab where a cockpit is seated, and opens a pane of its own where none is. /message opens it, /message hand hands everything held over at once, /message hold turns the holding off for the session, and /message who answers with the register of sessions this one can write to.
linecat
fivood/linecat
A cat walks a line your Claude Code session unfolds, wearing what Claude is doing overhead; plus retro paper-panel styling for messages, tool rows and a usage monitor
message-cost
dalemorgan04/claude-mods
Shows what each chat message cost, beneath its answer, with a running session total in the status line.
Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.