Skip to main content

OMNI

OMNI is a neural compressor for source code. It beats tar+xz on ratio for Python codebases by combining a trained sequence model with explicit long-range copy matching and entropy coding, instead of general-purpose byte-level compression.

omni compress my_project/
# -> my_project.satish_andromeda

omni decompress my_project.satish_andromeda
# -> my_project/  (byte-identical to the original)

Install

Real one-line installers (apt install omni, curl ... | sh) aren't live yet. For now:

git clone <this repo>
cd omni
./install.sh

which installs the omni CLI in editable mode via pip.

Usage

omni compress <path> [--model NAME] [--out FILE]     # file or directory
omni decompress <file.satish_*> [--out PATH]
omni info <file.satish_*>                              # header only, no model needed
omni models                                             # installed model generations
omni version

Model management — omni model update fetches the latest generation directly from this repo's GitHub Releases (tagged <generation>-<year>, e.g. andromeda-2026), no separate registry server required:

omni model update                                       # install/refresh the latest generation
omni model update --force                                # re-download even if already installed
omni model register <name> <year> <model.pt> --so <arithmetic_coder.so> [--default]
omni model default <name>

omni model update checks ben-blance/omni by default — override with the OMNI_MODEL_REPO env var (owner/repo) to point at a fork.

omni compress always uses the latest installed generation unless you pass --model. omni decompress always uses whatever generation the archive's header says it needs — see docs/satish-format.md.

Try it

examples/ has a walkthrough against a small sample project.

Public vs. private

This repository is the distribution layer only — the CLI, the SATISH container format, docs, and install scripts. It does not contain the compression engine (tokenizer, model architecture, LZ matcher, arithmetic coder, or trained weights).

              this repo (public)
                     │
          ┌──────────┴──────────┐
          │                     │
    CLI (src/omni/)      SATISH format (documented,
          │                docs/satish-format.md)
          ▼
   src/omni/engine.py  ──seam──▶  OMNI engine (private)
                                        │
                                        ▼
                                 model: Andromeda (2026)

src/omni/engine.py is the only file that talks to the engine, and it does so dynamically (via OMNI_ENGINE_SRC, or a private package once one exists) — nothing else in this package needs to change when the engine moves to its own private repo or ships as a compiled binary.

The SATISH format is public and documented on purpose (see docs/satish-format.md) even though the engine isn't: a .satish_* file's header should always be inspectable, independent of whether you have the model or algorithm that produced it.

License: MIT — see LICENSE. This covers the CLI and SATISH format shell in this repo only; it does not extend to the private compression engine or trained model weights, which are distributed separately (see "Public vs. private" above) and are not covered by this license.

Metadata

Release files for omni-compress 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omni-compress 0.1.0
File Size Uploaded
omni_compress-0.1.0.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for omni-compress 0.1.0
File Interpreter ABI Platform
omni_compress-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / omni_compress-0.1.0.tar.gz

Download URL omni_compress-0.1.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1c6ab2d8f577d9859e69639c371a642050a3f227d5d0922fc868525fa1ffebae
BLAKE2b-256 checksum
How to use checksums
00e76194f874098ec90fd40099959b376a10dcd5b888782f128b513658534786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / omni_compress-0.1.0-py3-none-any.whl

Download URL omni_compress-0.1.0-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f109e3c1defa95c63e9cd092425bbdc1b6ec48f47bfcb30f2e67b08193688987
BLAKE2b-256 checksum
How to use checksums
eb4a5bac280a3a3985172c369597406f97e0b4a7107f8892b4b6086426a37ca1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

0.2.2

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page