SuperCompress

Cline · Updated 2026-11-17

Cline Token usage MCP

Reduce Cline, Roo Code and Kilo Code Token Usage

Cline, Roo Code and Kilo Code send the task history with each request, and that history fills up with file reads, terminal output and MCP results. Here is where those tokens go and how SuperCompress gives the agent a tool that keeps only the lines that answer the task.

October 9, 2026 · Guide

In short: keep tasks small, use the ignore file for generated code and switch off unused MCP servers. Then run npm install -g supercompress-proxy && supercompress setup to link your account and install the supercompress-mcp server, and add one supercompress entry in the MCP settings of Cline, Roo Code or Kilo Code (shown below).

Where Cline tokens go

Habits that cut Cline token usage for free

  1. Small tasks. Start a new task when the work changes.
  2. Keep generated code out of context. Point Cline at the files the task needs and keep build output and vendored code out of what it loads. Cline's docs say .clineignore will be deprecated soon and is not an access-control boundary, so check Cline's current guidance before relying on it.
  3. Watch the context bar. When it fills up, start a new task with a short handoff note.
  4. Switch off unused MCP servers.

These habits shrink what goes in. They don't help when the agent genuinely needs to run a test suite or read a large file and only a few lines of the output matter. That is the part SuperCompress handles.

How SuperCompress works

SuperCompress is hosted, extractive and query-aware. Your agent sends a large block of context (a log, a diff, a file read, an MCP result) together with the question it is working on. It keeps the original lines that answer that question and drops the rest. It selects lines from the original rather than writing a summary, so file paths, error messages, IDs and code in the kept lines stay as written; preprocessing may rewrite JSON or collapse repeated stack frames before lines are chosen. See how prompt compression works. The question itself is never compressed.

In Cline the compress_context MCP tool reports original_tokens and compressed_tokens (the hosted API calls the second one kept_tokens); they are estimates, not provider-billed totals, and when the savings would be too small the tool returns a passthrough notice instead of a digest (no compressed_tokens, and the content is not sent back), so the agent keeps using its original text. The usage_summary MCP tool shows what your account saved this month.

What the SuperCompress MCP entry adds to Cline

WhatWhereWhat it does
MCP server entry (added by you)~/.cline/data/settings/cline_mcp_settings.json, the file current Cline builds read, opened in Cline from MCP Servers > Configure > Configure MCP Servers. Roo Code and Kilo Code keep their own MCP settings files, opened the same way from their MCP panels.Gives the agent the compress_context, connect_account and usage_summary tools.

Ask the agent to run large logs, diffs and files through compress_context with the task as the query, or add that line to your custom instructions.

Install

npm install -g supercompress-proxy && supercompress setup

Setup links your SuperCompress account in the browser and installs the supercompress-mcp server command. Current Cline builds read their MCP configuration from ~/.cline/data/settings/cline_mcp_settings.json, so you add the entry there yourself in the next step.

Add the MCP entry

In Cline, open MCP Servers > Configure > Configure MCP Servers to open ~/.cline/data/settings/cline_mcp_settings.json, then merge this into the existing mcpServers object (keep the servers already there):

{
  "mcpServers": {
    "supercompress": {
      "command": "supercompress-mcp",
      "args": []
    }
  }
}

No API key goes in this entry; supercompress setup already linked your account. Save the file, then restart Cline or refresh its MCP server list, and confirm the server answers:

supercompress doctor

doctor prints a per-agent health check, and supercompress mcp-check confirms the MCP server answers. supercompress uninstall removes only the entries SuperCompress added, and the supercompress entry you added by hand comes out by deleting it from the same MCP settings file. Setup backs up each config file before it edits it.

Comparing this with other ways to cut tokens? See context compression for coding agents.

When to skip it

FAQ

Does SuperCompress change how I sign in to Cline?

No. You keep your normal Cline login and models. SuperCompress adds an MCP server and instructions to Cline; your model traffic does not pass through SuperCompress.

Does SuperCompress summarize what Cline reads?

No. It is extractive. It keeps lines copied from the original output rather than writing a summary, so file paths, error messages and code in the kept lines stay as written. Preprocessing may rewrite JSON or collapse repeated stack frames first.

How do I undo the Cline setup?

Run supercompress uninstall for what setup added. It removes only the entries SuperCompress added, so your other MCP servers, hooks and instructions stay as they were. The supercompress entry you added by hand is removed by deleting it from ~/.cline/data/settings/cline_mcp_settings.json.

Get API key Coding agents guide All coding agents