omniroute-compression

Compress token-heavy LLM request payloads via OmniRoute endpoints.

44.0k|5.9k|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/diegosouzapw/OmniRoute --skill omniroute-compression
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: omniroute-compression
Source: https://github.com/diegosouzapw/OmniRoute/tree/main/skills/omniroute-compression
Command: npx skills add https://github.com/diegosouzapw/OmniRoute --skill omniroute-compression

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OmniRoute token compression reduces oversized prompts so your AI sessions fit context windows, run faster, and cost less.

Core Features & Use Cases

  • RTK compression for terminal, build, test, and git output while preserving developer intent with major token savings (about 60–90%).
  • Caveman compression for chat history and human prose to shrink inputs (about 46% input) with configurable intensities for longer sessions.
  • Stacked mode (RTK → Caveman) for mixed coding and discussion workflows to maximize savings (about 78–95%).
  • MCP accessibility-tree filtering for browser/Playwright tool results by collapsing repeated lines and truncating overly verbose text (about 60–80%); configured via thresholds.

Quick Start

Enable maximum savings by setting compression to stacked mode with the pipeline rtK → caveman for your OmniRoute instance.

Frequently Asked Questions about omniroute-compression

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress token-heavy LLM request payloads to fit context windows?

To compress token-heavy LLM request payloads, you can apply stacked mode combining RTK and Caveman compression to shrink terminal output and chat history, reducing token size by up to 95% to fit context windows.

What is the best way to reduce API costs for large chat history and terminal outputs?

The best way to reduce API costs for large chat history and terminal outputs is using stacked compression pipelines, which apply Caveman prose filtering and RTK intent preservation to achieve 78–95% token savings.

Can I filter MCP accessibility-tree snapshots to reduce browser token sizes?

Yes, you can filter MCP accessibility-tree snapshots by collapsing repeated lines and truncating verbose text using configurable thresholds, reducing browser snapshot token sizes by 60–80%.

Do I need OmniRoute configured to use token compression for prompt optimization?

Yes, you need OmniRoute configured with OMNIROUTE_URL and OMNIROUTE_KEY to use token compression, and you can control compression settings at runtime via the /api/settings/compression and /api/compression/preview endpoints.

How does RTK compression preserve developer intent when shrinking build and test outputs?

RTK compression preserves developer intent when shrinking build and test outputs by intelligently filtering terminal, build, test, and git data to achieve 60–90% token reduction without losing critical debugging context.

What are the limitations of using Caveman compression for chat history inputs?

A limitation of using Caveman compression for chat history inputs is that it achieves about 46% token reduction, which is lower than stacked mode, requiring configurable intensity adjustments for longer sessions.