kosh

What the original six programs do — and what Kosh does instead

Notes from taking the supplied binaries apart, plus the decision each one drove. This is analysis, not a port: no code was copied, and no proprietary format was reimplemented.

1. DeflOpt.exe — “Optimises deflated files” 2.07

Kosh equivalent: kosh optimize. Same guarantee (byte-identical content, smaller deflate stream) but the container is rebuilt from parsed structures rather than patched, so CRC/Adler fields, extra fields and local headers stay consistent. --dry-run replaces guesswork; --strip is the /k inverse; --backup replaces the implicit in-place rewrite.

2. ECT.exe — “Efficient Compression Tool” 0.1

Kosh equivalent: kosh optimize --level 1|2|3. Same algorithms, rebuilt: Zopfli for the entropy layer, our own PNG filter analysis (adaptive or forced, ranked with fast zlib before spending Zopfli), real metadata stripping, and --jobs to parallelise across files. Empty files and already-optimal files are handled instead of refused.

3. WABBIE_1.0.exe — “Wabbie Compressor”

Kosh equivalent: kosh pack / kosh unpack. Keeps the good part — blocks that compress independently, so it parallelises — and drops the GPU dependency: Zstandard (with internal threading), Brotli or LZMA per block, a table of contents, per-entry SHA-256, selective extraction, symlinks and safe paths.

4. SplitSat.exe — “Ultra Fast File Splitter” 5.0

Kosh equivalent: kosh split / kosh join / kosh parts. Splitting by size or by part count, but each part is hashed into a JSON manifest, so joining verifies every part and the reassembled file. Works on any OS, streams with constant memory, and refuses to silently produce a corrupt output.

5. WinRK312x64.exe — WinRK 3.12 (x64) installer

Kosh equivalent: kosh archive plus the .kosh container. The workflow is reproduced (one window, pick files, one output file, get them back) but the formats are open: ZIP, tar, tar.gz, tar.zst, tar.xz and .kosh, each with a CLI verb and a browser UI.

6. decomp.exe — 4,473 bytes

What “better” means here

Concern Originals Kosh
Platform Windows x86 only Linux, macOS, Windows (pure Python + wheels)
Interface Console flags or a GUI One CLI and a local web UI over the same engine
Integrity None / implicit SHA-256 per part, per file, per container entry
Failure handling In-place rewrite, no undo Atomic temp-and-rename, --dry-run, --backup
Progress Sparse or none Live progress with throughput, JSON output for scripting
Scope One job per program Split, join, pack, unpack, archive, optimise, inspect