omni-compression

omni-compression is a skill for Claude Code, Codex from alrcatraz/astra-aigate. It costs 42 tokens per session (1,456 once invoked), scanned A, a copy of omni-compression, MIT.

A service for compressing command output, prose, and prompts, with configurable language packs and rules. It supports RTK, Caveman, and combined compression modes.

In plain words
What is it for?
Previewing compressed messages, managing compression rules and language packs, and configuring the compression service.
Why use it?
It helps reduce the amount of text sent to an agent while letting you preview and configure the compression.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Previewing compressed messages, managing compression rules and language packs, and configuring the compression service.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alrcatraz/astra-aigate/omni-compression
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alrcatraz/astra-aigate --skill omni-compression
Clone the repo
git clone --depth 1 https://github.com/alrcatraz/astra-aigate

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for omni-compression

README.md
[![agentmods](https://agentmods.dev/badge/skills/alrcatraz/astra-aigate/omni-compression/github.svg)](https://agentmods.dev/skills/alrcatraz/astra-aigate/omni-compression)
Your own site
<a href="https://agentmods.dev/skills/alrcatraz/astra-aigate/omni-compression"><img src="https://agentmods.dev/badge/skills/alrcatraz/astra-aigate/omni-compression/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for omni-compression

Your own site · 80×15
<a href="https://agentmods.dev/skills/alrcatraz/astra-aigate/omni-compression"><img src="https://agentmods.dev/badge/skills/alrcatraz/astra-aigate/omni-compression.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,456 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01456
Opus 5.5 $0.00017 $0.00582
Sonnet 5.5 $0.00008 $0.00291
Haiku 4.5 $0.00004 $0.00146

Measured 23d ago against content hash 154fe20e08eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

omni-compression scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://localhost:20128/api/compression/preview \
Origin

This is a copy

100% identical to omni-compression — 52 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/omni-compression/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

Configure RTK (command output), Caveman (prose), and stacked compression modes. Manage language packs, custom rules, and test prompt compression reducing tokens by 60–90%.

Authentication

All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.

Endpoints

POST /api/compression/preview

Preview compression for a message payload

curl -X POST https://localhost:20128/api/compression/preview \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/compression/language-packs

List Caveman compression language packs

curl https://localhost:20128/api/compression/language-packs \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

GET /api/compression/rules

List Caveman compression rule metadata

curl https://localhost:20128/api/compression/rules \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

Payloads

See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.

OmniRoute — Compression

Requires OMNIROUTE_URL and OMNIROUTE_KEY. See entry-point SKILL for setup.

Overview

OmniRoute compresses token payloads before forwarding to providers. No code changes required — set it once, it applies to all requests transparently.

Engine Best for Typical savings
RTK Terminal / build / test / git output 60–90%
Caveman Human prose, chat history 46% input
Stacked (rtk → caveman) Mixed coding sessions 78–95%
MCP accessibility filter Browser/accessibility tool results 60–80%

Read the full file on GitHub · 180 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed 154fe20e08eb
  2. 3mo ago First seen · 180 lines · 42 tokens per session scan A 4f76b5aae58d

Subscribe to this mod's changes

omni-compression is a skill published in the GitHub repository alrcatraz/astra-aigate (1 stars, last pushed 4d ago), licensed MIT. It adds 42 tokens to every session and 1,456 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to omni-compression, differing in 52 lines, and is treated as a copy.

Related

omni-compression compared with skills from other repositories

omni-compression next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
omni-compressionalrcatraz/astra-aigateSkill14d agoMITA42Claude Code, Codex
prompt-librarydavila7/claude-code-templatesSkill35kyesterdayMITA57Claude Code, Codex
Fabricdanielmiessler/LifeOSSkill21k16d agoMITA193Claude Code, Codex
Promptingdanielmiessler/LifeOSSkill21k16d agoMITA111Claude Code, Codex
cost-aware-llm-pipelinehashgraph-online/awesome-codex-pluginsSkill1.6kyesterdayApache-2.0A42Claude Code, Codex
ai-prompt-generatorLeoYeAI/openclaw-master-skillsSkill2.2k12d agoMITA0Claude Code, Codex
ai-context-primermohitagw15856/pm-claude-skillsSkill1.6kyesterdayMITA149Claude Code