omni-compression

omni-compression is a skill for Claude Code, Codex from alrcatraz/astra-aigate. It costs 42 tokens per session (1,457 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,457 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.01457
Opus 5 $0.00021 $0.00728
Sonnet 5 $0.00008 $0.00291
Haiku 4.5 $0.00004 $0.00146

Measured 9d ago against content hash 4f76b5aae58d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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 — 44 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. 9d 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 yesterday), licensed MIT. It adds 42 tokens to every session and 1,457 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to omni-compression, differing in 44 lines, and is treated as a copy.

Related

Other skills, from other repositories

prompt-library

Curated collection of high-quality prompts for various use cases. Includes role-based prompts, task-specific templates, and prompt refinement techniques. Use when user needs prompt templates, role-play prompts, or ready-to-use prompt examples for coding, writing, analysis, or creative tasks.

davila7/claude-code-templates · 57 tokens

Prompting

Meta-prompting standard library for generating, optimizing, and composing prompts programmatically via Standards, Handlebars Templates, and Tools; output is always a prompt to use elsewhere, not final content. USE WHEN meta-prompting, template generation, prompt optimization, prompt engineering, write a prompt, create…

danielmiessler/LifeOS · 90 tokens

Fabric

Execute any of 240+ specialized prompt patterns natively across Extraction, Summarization, Analysis, Creation, Improvement, Security, Rating. Common: extractwisdom, createthreatmodel, analyzeclaims, improvewriting, reviewcode, mermaid, youtubesummary. CLI used only for YouTube transcript (-y) and URL fallback (-u).…

danielmiessler/LifeOS · 136 tokens

cost-aware-llm-pipeline

A planning guide for choosing language models and managing the amount of conversation context used by an AI coding workflow. It groups tasks by complexity and gives rules for avoiding context overflow during long sessions.

hashgraph-online/awesome-codex-plugins · 42 tokens

ai-prompt-generator

A tool that creates or improves instructions for AI models. It offers prompt templates for approaches such as role-based instructions, examples, and step-by-step reasoning.

LeoYeAI/openclaw-master-skills · 0 tokens

ask-short-answer-first

Master the Bottom Line Up Front (BLUF) prompting pattern to get the direct 2-line answer immediately, eliminating preamble fluff and saving reading time.

alivirgo/Major-AI-Skills · 36 tokens