Tools › Coding & Developer Tools › Magic Compact

Magic Compact

Move bulky tool output to disk instead of deleting it

What it is

A lossless context compression plugin for Claude Code and OpenCode that swaps large tool outputs for a one-line note while keeping the full payload on disk. It suits developers running long agent sessions who hit context limits and want the data recoverable rather than truncated.

How it works

When a tool returns a large blob, the plugin replaces it in the conversation with a short stub and writes the original output to a local file cache. When the agent needs the content again it reads it back from disk, so information is moved rather than destroyed — the project's tagline is 'move it, don't delete it'. The author has paused development in favour of a successor project, but it still works as-is.

Use cases

  • Keep a multi-hour refactoring session under the context limit without losing earlier command output.
  • Preserve full test-run logs on disk so the agent can re-read them later without re-executing tests.
  • Reduce per-turn token spend in OpenCode for large monorepos that produce verbose build output.

💰 Business opportunities

  • Package a fork with support and SLAs for teams standardising on Claude Code.
  • Build a hosted dashboard that indexes and searches these on-disk context archives across a dev team.
  • Use it as a differentiator in a paid 'agent cost reduction' audit offering for dev shops.

Featured in 1 video

10 Repos conserve your token usage

The Next New Thing · 2026-09-09

Similar tools

Rightsize

Pick the right model and effort for every prompt

🛠️ Coding & Developer Tools ★ 42 +6 wk TypeScript

T3 Code

One cockpit for every coding agent you already pay for

🛠️ Coding & Developer Tools ★ 64.3k +1.2k wk TypeScript

Codex Plugin for Claude Code

OpenAI models callable from inside Claude Code workflows

🛠️ Coding & Developer Tools ★ 35.2k +31 wk JavaScript

Headroom

Compress tool outputs, logs and RAG chunks before the LLM sees them

🛠️ Coding & Developer Tools ★ 79.9k +70 wk Python

PX Pipe

Render text context as images to shrink the context window

🛠️ Coding & Developer Tools ★ 7.9k +4 wk TypeScript

Bomby

Talk to your coding agent from a Mac app

🛠️ Coding & Developer Tools ★ 21 +3 wk TypeScript