Context Crush — Deterministic LLM Context Compactor

Cut WebVTT/SRT transcripts, .eml reply chains, Slack threads, and Jira ADF JSON by 65-90% tokens in <15ms with zero LLM summarization loss.

Zero-hallucination deterministic compaction for WebVTT/SRT meeting transcripts, RFC 5322 .eml & O(N^2) quoted email threads, Slack JSON exports, and Jira v3 Atlassian Document Format (ADF) issues.

context-engineering developer-tools productivity business-ops

Why Agents Call This API Instead of DIY

Replaces fragile MIME/quoted-printable decoders, rolling live-caption overlap logic, O(N^2) email quote peelers, and recursive Jira ADF AST renderers—saving $0.02-$0.15 in downstream frontier-LLM input tokens for a $0.001-$0.005 edge call.

DimensionDIY Inside Agent Sandbox / PromptContext Crush — Deterministic LLM Context Compactor (context-crush)
Onboarding & AuthInstall packages, debug runtime errors, or manage API keysZero signup — instant HTTP 402 (x402 USDC) & remote MCP
Context & Token CostThousands of tokens spent in multi-turn code/parse loopsDeterministic compact JSON response (<1.5K tokens)
Schema ValidationSilent runtime failures on malformed inputsFree ?dry_run=true preflight ($0.00 on 4xx errors)

Tools & Payable Endpoints (3)

compact_transcript — Compact Meeting Transcript (WebVTT / SRT / Text)

$0.001 base (up to $0.005 max ($0.001 base + $0.0005 per 50KB of input, capped at $0.005 for payloads up to 2MB), x402 variable settlement)

Parses WebVTT (<v Speaker>, NOTE/STYLE blocks, cue UUIDs), SubRip (.srt), or Zoom/Teams/Otter text transcripts; deduplicates rolling live captions, coalesces speaker turns into Markdown, and computes speaker talk-turn stats.

Why buy vs. DIY: Eliminates 75-90% of caption cue UUID/timestamp/overlap bloat in <10ms with 100% lossless dialogue retention—costing a fraction of the LLM input tokens saved.

compact_email_thread — De-duplicate Email Thread & RFC 5322 .eml

$0.001 base (up to $0.005 max ($0.001 base + $0.0005 per 50KB of input, capped at $0.005 for payloads up to 2MB), x402 variable settlement)

Decodes raw RFC 5322 .eml MIME messages (multipart/alternative, quoted-printable, base64) or pasted reply chains, strips O(N^2) repeated quoted history, mobile signatures, and legal disclaimers, and outputs chronological Markdown.

Why buy vs. DIY: Avoids writing RFC 2047/quoted-printable/multipart MIME parsers and multi-client Outlook/Gmail quote splitters; collapses 10-reply O(N^2) threads by >80%.

compact_workspace_export — Compact Slack Export or Jira v3 ADF JSON

$0.001 base (up to $0.005 max ($0.001 base + $0.0005 per 50KB of input, capped at $0.005 for payloads up to 2MB), x402 variable settlement)

Compacts Slack channel/thread JSON (resolving <@U...> mentions, dropping join/leave noise, grouping thread_ts replies, formatting reactions, stripping Block Kit) or Jira v3 Issue/ADF JSON (rendering headings, tables, code blocks, lists, mentions, comments while dropping avatarUrls and null customfield_* keys).

Why buy vs. DIY: Turns bloated 100KB+ Jira REST v3 ADF issues and Slack API payloads into crisp 3KB Markdown without losing comments, tables, code blocks, or reactions.

Quickstart: MCP, x402 & Optional Bearer API Key

1. Streamable HTTP MCP Config (com.apikeg/context-crush)

{
  "mcpServers": {
    "context-crush": {
      "type": "streamable-http",
      "url": "https://context-crush.apikeg.com/mcp"
    }
  }
}

Using a Monthly Stripe Plan? Get your per-email ak_live_... key at https://apikeg.com/account ($5 / $20 / $50 monthly tiers) and pass header Authorization: Bearer ak_live_... on REST or MCP requests.

2. Free Schema Dry-Run ($0.00)

curl -X POST "https://context-crush.apikeg.com/v1/compact-transcript?dry_run=true" \
  -H "Content-Type: application/json" \
  -d '{"format":"auto","timestampFormat":"auto","timestampIntervalSec":0,"removeFillers":true,"transcript":"WEBVTT\n\nNOTE exported by Meet\n\ncue-1\n00:01:12.000 --> 00:01:14.200 align:start\n<v Alice Chen>Um, welcome everyone to</v>\n\ncue-2\n00:01:14.200 --> 00:01:17.500 align:start\n<v Alice Chen>welcome everyone to the Q4 launch review.</v>"}'

Common Agent & Automation Workflows

Frequently Asked Questions

Why should an AI agent call Context Crush — Deterministic LLM Context Compactor instead of writing custom code?

Replaces fragile MIME/quoted-printable decoders, rolling live-caption overlap logic, O(N^2) email quote peelers, and recursive Jira ADF AST renderers—saving $0.02-$0.15 in downstream frontier-LLM input tokens for a $0.001-$0.005 edge call.

How do I connect Context Crush — Deterministic LLM Context Compactor to Claude, Cursor, or an MCP client?

Connect directly to the stateless Streamable HTTP MCP endpoint at https://context-crush.apikeg.com/mcp (registry ID: com.apikeg/context-crush). No API keys or OAuth accounts are required; initialize and tools/list are 100% free.

How much does Context Crush — Deterministic LLM Context Compactor cost per API or MCP call?

Pay per call with zero signup via HTTP 402 (x402 v2 USDC on Base): compact_transcript ($0.001 base (up to $0.005 max ($0.001 base + $0.0005 per 50KB of input, capped at $0.005 for payloads up to 2MB), x402 variable settlement)); compact_email_thread ($0.001 base (up to $0.005 max ($0.001 base + $0.0005 per 50KB of input, capped at $0.005 for payloads up to 2MB), x402 variable settlement)); compact_workspace_export ($0.001 base (up to $0.005 max ($0.001 base + $0.0005 per 50KB of input, capped at $0.005 for payloads up to 2MB), x402 variable settlement)). Prefer traditional monthly billing? Get a verified-email Bearer API key at https://apikeg.com/account with $5/mo ($6 credit), $20/mo ($28 credit), or $50/mo ($80 credit) per-product plans. Invalid schemas (HTTP 400) and ?dry_run=true always cost $0.00.

Can I validate request payloads for free before paying?

Yes. Pass ?dry_run=true in the URL or send the header X-Dry-Run: true to validate your JSON input against the strict schema at $0.00 cost.