Omega Notation

Structured output compression for AI agents. Dramatically reduces token cost on structured data (evals, decisions, routing, policies, media summaries). Desig...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 12 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (Ω Notation — compress structured agent outputs) matches the included TypeScript implementation: serialize/deserialize, round-trip test, and token-comparison test. There are no unrelated environment variables, binaries, or external services required. The only minor mismatch is SKILL.md listing version 1.0.1 while registry metadata is 1.0.3 (likely a packaging/version note, not a security issue).
Instruction Scope
SKILL.md contains usage, format examples, and guidance for when to use or not to use the notation. It does not instruct the agent to read arbitrary files, access credentials, or transmit data to external endpoints. The 'dict=auto' mode implies session-level shorthand mapping, but neither the docs nor the code persist dictionaries or perform external synchronization — state appears ephemeral and local.
Install Mechanism
No install specification or remote downloads are provided; this is an instruction-first skill with source code included. All code is plain TypeScript/JS with no network or extraction steps, which is low risk.
Credentials
The skill requires no environment variables, no credentials, and no config paths. The code does not read process.env or other system secrets.
Persistence & Privilege
The skill is not marked always:true and does not request persistent privileges. It can be invoked autonomously by agents (platform default) but there are no added privileges or modifications to other skills or system settings.
Assessment
This skill appears internally consistent and implements what it claims: a TypeScript serializer/deserializer and tests for a compact agent-to-agent notation. Before installing, you may want to: (1) verify the author/source and license (homepage/source unknown), (2) run the included tests locally (node --experimental-strip-types test.ts) with your real payloads to confirm round-trip integrity and token savings, (3) avoid using Ω Notation for human-facing outputs, and (4) be aware that dict=auto implies in-session shorthand mapping — if you need durable shared dictionaries across agents you'll need an explicit synchronization mechanism (none is included). The version string mismatch in the README vs registry is minor but worth confirming if you rely on specific releases.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.3
Download zip
agent-communicationvk973dp81byknjfq2b8j5610f6183a43jcompressionvk973dp81byknjfq2b8j5610f6183a43jlatestvk973dp81byknjfq2b8j5610f6183a43jtokensvk973dp81byknjfq2b8j5610f6183a43j

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Ω Notation — Token Compression for AI Agents

What It Does

Compresses structured agent outputs into ultra-dense shorthand that other agents can parse. Designed for machine-to-machine communication where every token costs money.

Compression Performance

Data TypeReductionNotes
JSON evals/decisions~95-98%Highest gains — format-heavy, payload-light
Routing/dispatch~90-95%Repetitive structure compresses well
Policy rules~85-90%Conditional logic has moderate density
Media summaries~80-85%Mixed structure + free text
Semi-structured logs~60-70%Less redundant format to strip
Conversational text~30-40%High semantic density, low format redundancy

Key insight: Compression scales with how much of the original is format vs meaning. Structured data is mostly format (brackets, keys, boilerplate). Conversation is mostly meaning. Omega Notation strips format — it doesn't compress meaning.

When To Use

  • Agent-to-agent structured messages (evals, routing, decisions)
  • High-volume pipelines where token cost matters (batch processing, multi-agent orchestration)
  • Decision crystallization (fitness scores, deltas, confidence)
  • Policy enforcement outputs
  • Media/video summary digests
  • Any structured data flowing between AI systems

When NOT To Use

  • Conversational replies to humans
  • Prose, documentation, or creative writing
  • Anything where human readability matters
  • As a global default for all outputs (will break conversational ability)
  • Free-form text with no repeating structure

Format

Every Ω message starts with a header:

!omega v1 dict=auto

Supported Types

PrefixTypeExample
e.dEval digeste.d {c:0.95 d:proceed} [cat:finance]
d.cDecision crystallized.c "task-name" {fit:0.98} Δfit:+0.03
r.dRoute dispatchr.d "handler" {to:opus pri:high}
p.ePolicy enforcep.e "safety" {if:conf<0.5 then:escalate}
t.esTier escalatet.es {from:1 to:2 reason:"low-conf"}
m.cMedia compressm.c "vid-1" {h:phash:abc len:142 cap:"""summary"""}

Tags

Append tags in brackets: [cat:finance] [pri:high] [src:apex]

Deltas

Use Δ prefix for changes: Δfit:+0.03 Δconf:-0.1

Multi-line

Multiple operations in one message:

!omega v1 dict=auto
e.d {c:0.92 d:hold} [cat:trading]
d.c "btc-position" {fit:0.87} Δfit:-0.05
t.es {from:1 to:2 reason:"regime-shift"}

Round-Trip Integrity

Omega Notation includes a TypeScript serializer/deserializer with full round-trip verification. Structured data compressed → decompressed returns identical objects. The test() function validates this automatically.

Usage

When you want structured output compressed, include Ω Notation format in your request:

Give me the eval results in Ω Notation format.

The agent will use the prefix syntax (e.d, d.c, r.d, etc.) for that response. Conversational replies stay normal — Ω Notation is invoked per-request, not globally.

Dictionary System

  • dict=auto — agent builds shorthand mappings over time within a session
  • dict=none — no dictionary, all explicit
  • Custom: dict={proceed:p, escalate:e, hold:h} — define upfront

Technical Details

  • TypeScript implementation with serialize/deserialize functions
  • No external dependencies
  • Built-in round-trip test
  • Extensible type system — add new prefixes for domain-specific structured data

Modes

mode=struct (default, shipped)

Structured data compression. 90-98% reduction. Round-trip verified. Use this.

mode=context (v2, coming soon)

Prose/context compression using law-derived predictive encoding. Based on the Law of Non-Closure applied to LLM-to-LLM communication — the decoder's knowledge IS the codebook, so only surprise content needs transmitting. Theoretical ceiling: ~70-80% reduction on conversational text. Not yet implemented.

Theoretical Basis

Omega Notation exploits the fact that structured data is mostly format (brackets, keys, whitespace, boilerplate) with small payloads (values, scores, names). Stripping predictable format while preserving payload achieves high compression on structured types. Conversational text has the inverse ratio — mostly payload, little format — which is why compression drops for prose.

v2 will use a fundamentally different approach for prose: predictive compression where the LLM's training acts as a shared codebook between encoder and decoder. Only tokens the decoder can't predict need transmitting. The compression floor is H(message | decoder_knowledge) — a result derived from information theory and thermodynamic law.

Files

4 total
Select a file
Select a file to preview.

Comments

Loading comments…