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.
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 does Compress keep, and what does it drop?
Exact values in, fewer tokens out: it never rewrites or summarises.
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 →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 →Logs: failures whole
Failing tests and errors stay word for word; passing lines are counted per file and colour codes go.
How it works →Focused on your question
Give a query, such as failed payments, and what answers it is kept first.
How it works →Nothing summarised
Values come back as they were; no model reads your data and no AI tokens are spent.
How it works →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 do I use Compress?
Connect your AI once
Add CrawlGenie to Claude, ChatGPT, Cursor or Codex; the compress tool is there in every chat.
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.
Read the savings
Every result ends with the tokens it saved against the original.
- 1Add the connector onceClaude: Customize → Connectors. ChatGPT Business: Plugins → Add custom MCP server.
- 2Ask in your own wordsNo commands to learn; your AI picks the right tool.
- 3Read the savingsEach answer ends with the tokens it saved.
- 1Paste one lineFrom the dashboard's Setup page into your editor's MCP settings.
- 2Or install the pluginIn Claude Code, the CrawlGenie plugin adds the skills too.
- 3Ask as usualThe tool result carries the token savings.
- 1Create a workspaceFree to start; invite teammates by e-mail.
- 2A key per personEach connector and person shows its own usage.
- 3Results where you workAgents and monitors post to Slack, Teams or a sheet.
Alerts and agent results in your Slack- Token savings per person and per connector
- Shared agents, memory and saved logins
- 1Import the toolsInto the OpenAI Agents SDK, LangChain or the Vercel AI SDK.
- 2Or call the APIREST, MCP, and SDKs for TypeScript and Python.
- 3Same savingsEvery response reports the tokens it saved.
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 →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.
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.
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.
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 →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.