Home/Solutions/Compress JSON and logs
For anyone who feeds tool output, API JSON or logs to an AI

Compress JSON, logs and tool output for LLMs: keep the facts

CrawlGenie Compress is a tool that shrinks what your AI already holds, an API response, a test log, a tool's output, before the model reads it. It keeps errors, failures and unusual rows whole, turns lists into tables and counts the repeats, all in code with 0 model tokens; the rows it leaves out stay one call away.

91%fewer tokens for 100 GitHub issues as JSON: 131,031 to 11,228, the 40 rows that matter kept
95%fewer tokens for a test-runner log: 2,779 to 143, every failure kept whole
0model tokens: Compress works in code, nothing is summarised
Today

Why does tool output cost so many tokens?

A model pays for every repeated field and every passing line, every time it reads them.

Today

  • ✕Pasting a whole log so the model can find the one failing test
  • ✕API responses where most fields repeat on every row
  • ✕The same large tool result paid for again on every turn it stays in the chat

With CrawlGenie

  • ✓Failures, errors and unusual rows kept whole
  • ✓Lists turned into compact tables, repeats counted once
  • ✓The rows left out handed back by a handle when the model asks
What it does

What does Compress keep, and what does it drop?

Exact values in, fewer tokens out: it never rewrites or summarises.

01

JSON lists become tables

A list of objects becomes one header and one line per row, so field names are not repeated on every row.

How it works →
02

The rows that matter

With max_rows, it keeps errors, unusual numbers, rare values, the first and the last rows and an even spread, each with its share.

How rows are picked →
03

Logs: failures whole

Failing tests and errors stay word for word; passing lines are counted per file and colour codes go.

How it works →
04

Focused on your question

Give a query, such as failed payments, and what answers it is kept first.

How it works →
05

Nothing summarised

Values come back as they were; no model reads your data and no AI tokens are spent.

How it works →
06

The rest by handle

Rows it left out stay one call away, so the model can ask for them when it needs them.

How it works →
How it runs

How do I use Compress?

1

Connect your AI once

Add CrawlGenie to Claude, ChatGPT, Cursor or Codex; the compress tool is there in every chat.

2

Hand it the content

Ask your AI to compress a response, a log or a file it already has, or send it to the API from your own agent.

3

Read the savings

Every result ends with the tokens it saved against the original.

  1. 1
    Add the connector onceClaude: Customize → Connectors. ChatGPT Business: Plugins → Add custom MCP server.
  2. 2
    Ask in your own wordsNo commands to learn; your AI picks the right tool.
  3. 3
    Read the savingsEach answer ends with the tokens it saved.
Claudewith the CrawlGenie connector
Use CrawlGenie to compress this API response and keep the failed payments first
CrawlGenie is reading the web
Every answer ends with the tokens it saved
  1. 1
    Paste one lineFrom the dashboard's Setup page into your editor's MCP settings.
  2. 2
    Or install the pluginIn Claude Code, the CrawlGenie plugin adds the skills too.
  3. 3
    Ask as usualThe tool result carries the token savings.
Claude Code · Cursor · Codex
> compress the test log with CrawlGenie, keep every failure
● crawlgenie · tool call
rows, sources and the tokens saved come back to your editor
  1. 1
    Create a workspaceFree to start; invite teammates by e-mail.
  2. 2
    A key per personEach connector and person shows its own usage.
  3. 3
    Results where you workAgents and monitors post to Slack, Teams or a sheet.
Your workspaceone key per person
  • Alerts and agent results in your Slack
  • Token savings per person and per connector
  • Shared agents, memory and saved logins
  1. 1
    Import the toolsInto the OpenAI Agents SDK, LangChain or the Vercel AI SDK.
  2. 2
    Or call the APIREST, MCP, and SDKs for TypeScript and Python.
  3. 3
    Same savingsEvery response reports the tokens it saved.
your agent
POST /v1/compress { "content": response, "max_rows": 40 }
Agents SDKLangChainAI SDKPythonTypeScript
Where it helps

Where does Compress save the most?

Places where large output lands in a model's context.

Claude Code sessions

With the CrawlGenie plugin, turn on auto-compress and very long command output is shortened before Claude reads it.

The plugin →

Your own agents

Compress an API response or a database query result before it goes into the prompt, from the REST API or the SDKs.

API reference →

Next to Headroom

Headroom compresses inside a local proxy; CrawlGenie reads less from the web first and compresses the rest with the same key.

Compare →
Honest limits

What does it not do?

Not a summary

It keeps exact values and drops repetition; it does not explain or shorten prose with a model.

Not a proxy in front of your model

You call it on content, or the Claude Code plugin does after you turn auto-compress on; it does not sit between you and a model provider.

Savings depend on the data

Lists with many repeated fields shrink most; 250 npm search results went from 73,587 to 50,885 tokens without picking rows and to 8,443 with 40 rows picked.

Measured, not promised

How much smaller does it make real data?

Recorded on a GitHub issues response, a test-runner log and the tool itself, with the dates in our measurements.

91%fewer tokens for 100 GitHub issues as JSON: 131,031 to 11,228, the 40 rows that matter kept
95%fewer tokens for a test-runner log: 2,779 to 143, every failure kept whole
0model tokens: Compress works in code, nothing is summarised
Try the numbers

What would CrawlGenie save you?

Set how much your AI reads and which model it uses. The saving uses the share of a page your AI still reads, as measured.

500
13,000 tokens
$2 / 1M input tokens
80%
You would save
$281a month
$3,370 a year · 72% fewer tokens
Without CrawlGenie195M tokens · $390
With CrawlGenie55M tokens · $109

Your AI still reads up to 10% of each page it asks about (measured: 2–15% on long pages). The Token savings page shows your real number.

How we measured →
FAQ

Questions people ask

How do I compress JSON before sending it to an LLM?

Send it to CrawlGenie Compress: ask your AI to compress it with the compress tool, or call POST /v1/compress from your code. A list of objects comes back as a compact table, repeated values are counted, and with max_rows only the rows that matter are kept, errors first; the rest stay available by handle.

Does Compress use an AI model?

No. It works in code: lists become tables, repeats are counted, colour codes and noise are dropped. Nothing is summarised and no model tokens are spent, so the values your model reads are the original ones.

How much smaller does it make tool output?

It depends on the data. Measured: 100 GitHub issues went from 131,031 to 11,228 tokens with 40 rows kept, and a test-runner log from 2,779 to 143 tokens with every failure kept whole.

Can it compress Claude Code command output automatically?

Yes, with the CrawlGenie plugin for Claude Code: after you turn auto-compress on, very long command output is shortened on your machine before Claude reads it. Command output never leaves your machine.

Spend tokens on answers, not on pages.

Create a workspace in a minute. Connect ChatGPT, Claude, Cursor or your own agents. Every answer comes with the token savings.