Skip to content
ccmods.app

micro-compaction

v0.1.2

Adds /compact micro, which elides old file reads and drops thinking instead of summarizing, keeping the rest verbatim.

by @ruihe7742Updated Minimal accessGitHub

Installation

  1. 1. Clone the repository

    $ git clone https://github.com/ruihe774/cc-micro-compaction.git
  2. 2. Start Claude Code with the mod loaded for this session

    $ claude --plugin-dir ./cc-micro-compaction

The repository has no marketplace file yet, so this loads the mod for one session. Needs Claude Code 2.1.287 or later, in a terminal. Full install guide

What does micro-compaction do?

  • /compact micro replaces each successful Read result with a placeholder naming the path and line count
  • Image and PDF results are elided too
  • Thinking-only messages are dropped; prompts, replies, tool calls and non-Read output stay unchanged
  • Plain /compact and automatic compaction keep Claude Code's normal summary

What do you need?

  • Claude Code 2.1.287 or later (terminal)

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.

Minimal access

No file, process, network, prompt or tool-call access found.

Hooks and engine calls (1 + 1)

hooks

  • session.compact{trigger=manual}

calls

  • $.ui.log

Do you maintain micro-compaction?

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/micro-compaction)

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

token-optimizer

alexgreensh/token-optimizer

2.5k

Finds where your context tokens go, trims the waste, and helps sessions survive compaction without losing quality.

UIPromptToolsBroad access
$ claude plugin install token-optimizer --marketplace alexgreensh/token-optimizer