carrier98.exe - protocol specification
_
□
×

carrier98

Data modulation for a new era.

carrier98 is an LLM-to-LLM wire protocol for structured data. It modulates serialized machine state into a parser-inert, copy-paste safe visual stream.


Demo

What the LLM receives:

𓍹┗◅╗▚▼╦╋◉◊╧▚┏╖▬┻▻╹╣╛◞◟▬▦╫╬■▗┓╡◺◀◔╘◍┫◍▖╒▦◥▥╓┣╨◉╡■◿▧◎▗┗◔▚▮╢┻┃╓╗━▜╟◺╘▛■╓◤╸◥╧┃╤╸▛╡▻▦╘╘▦◕╙╢╕◯◜╪┫◀▖┛╢╕╓◝►┣◺▼═┳◎┗╕◢╘╟┃┫▧◘┻╪╡▧▗╠▨▤▶╫▻╙▜█▗┃┏▘◞▼╛┫◤▦═◣◟◟╘▗▛╕◤╝━╝╻╥▤╔╨╟▮▰╚╢╞╬╜╨┳┓┳▮┓●●◢▨╞╻▘╫◯╙▧╗▲◿╫▙■╸╗◅█╘◸╕◀╘◍◝●╧■◅◍▗◉▲╺▬▛◢┗◯╡▶╤╤╝═▤◉▘║◅■◤▻╣▰╕╺◞║╻┏┛╢▮╹┻█◥▦━◹╤◊╡◢▮╬╢╚◯▝▜◺╋■▤▘▼◥►◝┗╟┏╔█╠◍▚╥╓▶▥╖╕▮◝◣◀▰╚▩┃▙◿◜◢▥◉◆◜▟═◄┛╓◸▘▼◢▦╜╘◝╥╗┻◆┻╓╥◍▛╪▮◣▗◉◢╗◤▰╖╋◀◤◆▥╒┫╧╋═▖╥╺●═◝▼╡┳╺┗◟╗▻◸▘╝╋╬╻╧╣═◕▻◣▦╩╸▘▮◤▤▗◅◢╻╞┻╤╟▥▚╸╒▨◊◺●▻╹╡▙╩╓━●╢►●▲◀▖▼▥◟┏◔▨╙◢◔◼╧◄┏╖◹▨▼╣╘◣┛╻▖▙┛▖╠╗╹╚◜▬▲╙╪◔►╤╫╛╔╞◕╘●▜╤╠◤╠╤▰╫╠╓┳■┳┫▙▩▼◤╖◿╫◄◤◢▙◀╔╪◺▖╝┓╥◄▗●◎▬▮┛▙╙▶▨▖╓◯◎┛▩╔▞╕╻◯╜┳┣╔▰◺◄╜▮╠◍▥╧▞◆┃╔◆◎╚╢◘◉▥╜▤█▲◟►▶═▝┫◼┻╙╜▧╡┗▰◅▻◍╖╠◹╕◆▦▘◜◯┏▙╠▶┏▧╡◄◕┏◤╝▛◍▶◄▬▜┻┣┫▞█◯◕◢◀╤╠◥╜▧◄◤╋┃▩◊▞▼■◔╺▚◟►◎╬◯◞▚╠▮┏┣▛▦╡◤■╚◤►▙┓■┗█╤◜╥╤╒◥▞╒╕◣┏╫▻◔╢▘◹◞▛╹╺┳╸╖╹━◄╪╧━╟►╛▰▞▩╺▟▙▼▙▙╚◉◼╋┻◕╋◝╸╝▧▥╩◔┣▞▤▥▟╹◤◆╗▮◀◞╜▦█╩╤║╸╘═▚╫═╠◢▦┣◔╕╻╘╗▞▲╢◿═▟▧┏┏▤◞╺▦◤▟▮▟┗╛▶▰▰┗╸◊▩▚╻▬▗▰▚╥◎▖╛╻▟┛╘◼╔╻▘╓╤╟╘◟╪═▜▼╚▗▙▝▲╢◥◞▘▨█◤◄◢┫▼◺◤◕◼◢║◿╨┣◍▦▰╩╒▼◎╋┏═◍◥▨◼╝╤╥╦╖▼╸╟◹▚╨◄┣▟▬◕◉╝╩╜╋▦╬╬╔╙┗╖◿╞◉◍■◺┃╝╢▗◄╖▖◜◹◄▜╕┓▶▧▥●▮▝◢▝◤╜╟▞▼▛┃┳╡▙◝▟▞◢●▚╤╺◤▟╺◀◝◅╠╘╫╛◊◍╘◣◘◎█┳═╨╸◯┫╡◞▗╹╩╪▧▘┻╢▰╝╹▚╗╪┛▖╥●▘╸◸╠█▲╤╖╓◥▬━◸╥╒▤╟▦╓╧▟◊◤▶╛╬◜◯◊◯▶╦◜┳╤▘╞▘▗◜▥━▞╣▧╥╺▞┏◟▶◔▞┻╘◉▥╦◎◘╣▻►◔╗╛◼┳┣■╓◣══◣◝┳▥╧▛╦▝▮◺╣◎◢►╝┏▛●▥◺◞╒╥◥■┛◉▗◤◿▼╕◉▜◔▦╝╧◆╘╹╪╒╋▰●╟▟╪▙◕╥▚╙▼◯◣▨┣╓┫▶▛◯◤┫◜▚◣┃┃◹┻◞┣■▦▙╜◆╬┫◝▮▦◝┳◣▟◀▼╢◿◄┛╒║╖◕═▬◜╜╫╫▧◅▮◣▟╬■▟◎▗╝┫▬►▜▙┃╝◞━▬◯┻◤◢╨╟▜╚╤◍╦╞╔▗▞◊◘◕▦╕┏╛▬━╝╛►◆╙◢╘┣╘◺▚◢▤◣┳┗╝◝╨╫╜┫╢█╚┳◺┃┻╺╚▧▲◤◀◞┫╝═╡◍◊▝╸◔◞┣◔◞╡●▞╺◉╻■╓┳▜◔╧▬◔◤◸╩▰╺◿◢◸▤┏◜┳╙╝╻𓍺

1,221 characters. Parser-inert. Copy-paste safe.

What the human sees (after decode):

{"quotes":[
  {"character":"Morpheus","quote":"I'm trying to free your mind, Neo. But I can only show you the door. You're the one that has to walk through it."},
  {"character":"Trinity","quote":"The answer is out there, Neo. It's looking for you, and it will find you if you want it to."},
  {"character":"Oracle","quote":"You didn't come here to make the choice. You've already made it. You're here to try to understand why you made it."},
  {"character":"Smith","quote":"Never send a human to do a machine's job."},
  {"character":"Keymaker","quote":"There is a building. Inside this building there is a level where no elevator can go, and no stair can reach."},
  ...
]}

2,666 characters. 54% larger. All those braces, quotes, and colons - syntax the LLM has to parse.

The carrier stays the same. The human gets JSON. Everyone wins.

Jump to: Philosophy · Wire Format · Alphabet · Binary Format · Benchmarks · Implementations · stele →


Philosophy

The carrier wave carries the signal. Like DTMF tones encoding digits for telephone switches, carrier98 encodes structured data for LLM pipelines. It’s data modulation - not different from hitting 0-9 on a phone keypad, just highly advanced.

Design principles:

  1. Parser-inert - No regex, JSON parser, shell, or syntax highlighter will grab it by accident
  2. Display-safe - Renders visibly on any terminal, editor, or browser (no invisible chars, no replacement boxes)
  3. Copy-paste debuggable - See it in a log, copy it, decode it
  4. Self-describing - Schema embedded in the payload
  5. Dense - Smaller than JSON, smaller than TOON

“The image translators work for the construct program - but there’s way too much information to decode the Matrix. I don’t even see the code. All I see is blonde, brunette, redhead.”


The Name

98 = 96 alphabet characters + 2 frame delimiters

Also a nod to Windows 98 - a time when machines were learning to communicate with each other.


Wire Format

𓍹{payload}𓍺
Component Value Description
Frame start 𓍹 (U+13379) Egyptian hieroglyph, opening quotation mark
Frame end 𓍺 (U+1337A) Egyptian hieroglyph, closing quotation mark
Payload Base-96 encoded Binary data in carrier98 alphabet

Why Hieroglyphs?

These aren’t arbitrary ancient characters - they’re actual quotation marks from 5,000 years ago. Rope coils the Egyptians used to frame quoted text. Perfect semantic match for framing protocol data.

  • Stable: Unicode 5.2 (2009), 15+ years proven
  • Parser-inert: No parser on Earth looks for hieroglyphs
  • Visually distinct: You see them, you know it’s carrier98

Alphabet

96 visually-safe Unicode characters:

Range Block Count Examples
U+2501–U+257B Box Drawing (heavy/double) 44 ━ ┃ ┏ ╔ ║
U+2588–U+259F Block Elements 11 █ ▀ ▄ ▌ ▐
U+25A0–U+25FF Geometric Shapes (solid) 41 ■ ▲ ● ◆ ◉

Properties:

  • Visually distinct (no confusables like 0/O or 1/l)
  • Cross-platform safe (renders on Windows, macOS, Linux)
  • No blanks (nothing looks like whitespace)
  • Size-independent (readable at any font size)
  • Monospace-friendly (consistent width in terminals)

Excluded:

  • ASCII (parser-visible)
  • Light box drawing (invisible at small sizes)
  • Outline shapes (look empty)
  • Emoji (inconsistent rendering)
  • CJK (width issues)
  • C0/C1 control characters
  • Private use areas

Binary Format

[compression][header][values]

Compression Prefix (1 byte)

Byte Algorithm
0x00 None
0x01 Brotli
0x02 LZ4
0x03 Zstd
[flags: u8]
[root_key?: varint string]    // if FLAG_HAS_ROOT_KEY
[row_count: varint]
[field_count: varint]
[field_types: nibble-packed]
[field_names: varint strings]
[null_bitmap?: bytes]         // if FLAG_HAS_NULLS

Flags:

Bit Flag Description
0 TYPED_VALUES Per-value type tags (reserved)
1 HAS_NULLS Null bitmap present
2 HAS_ROOT_KEY Root key in header

Field types (4-bit tags):

Tag Type Encoding
0 U64 Varint
1 I64 Zigzag varint
2 F64 8 bytes IEEE 754
3 String Varint length + UTF-8
4 Bool Packed bits
5 Null No bytes (bitmap only)
6 Array Varint count + elements
7 Any Type tag + value (reserved)

Values

Row-major order. No delimiters between values - the schema defines boundaries.

  • Integers: LEB128 varint (MSB continuation bit)
  • Signed integers: Zigzag encoding, then varint
  • Floats: 8 bytes, IEEE 754 double, little-endian
  • Strings: Varint length + UTF-8 bytes
  • Arrays: Varint count + elements
  • Nulls: No bytes (tracked in bitmap)

Encoding Pipeline

Structured Data → IR → Binary → Compress → Base96 → Frame

Intermediate Representation (IR) is the pivot point. Parsers (JSON, YAML, CSV) produce IR. The binary packer consumes IR. This decouples input formats from the wire format.


Example

Input:

{"users":[{"id":1,"name":"alice"},{"id":2,"name":"bob"}]}

Binary structure:

Flags: 0x04 (HAS_ROOT_KEY)
Root key: "users"
Row count: 2
Field count: 2
Field types: [U64, String]
Field names: ["id", "name"]
Values: 1, "alice", 2, "bob"

Wire format:

𓍹╣◟╥◕◝▰◣◥▟╺▖◘▰◝▤◀╧𓍺

Benchmarks

What the LLM sees (characters in context window):

Payload JSON carrier98+brotli Context Reduction
1 KB 1,055 403 62% smaller
10 KB 14,080 1,075 92% smaller
100 KB 245,081 7,885 97% smaller

At 100KB, you’re packing 245,081 characters into 7,885. That’s a 31x compression in context space.

Wire overhead:

carrier98 trades bandwidth for context density. The display96 alphabet uses ~3 bytes UTF-8 per character, so wire size is ~1.5x larger than JSON+brotli. But the model doesn’t see wire bytes - it sees characters. And those characters are 97% fewer.

Payload JSON + server brotli carrier98 + server brotli Wire Overhead
1 KB 346 bytes 529 bytes 1.5x
10 KB 794 bytes 1,359 bytes 1.7x
100 KB 6,022 bytes 9,154 bytes 1.5x

The trade-off: Pay 1.5x bandwidth, get 31x context density.

Why this matters: Bandwidth is cheap. LLM inference isn’t. Every character the model parses costs compute. At 100KB, carrier98 saves the model from parsing 237,196 characters of JSON syntax - all those braces, quotes, colons, and commas. That’s compute you’re not paying for.

The economics: JSON parsing on a CPU is essentially free - deterministic, fast, measured in microseconds. LLM inference is expensive - probabilistic, slow, measured in dollars per million tokens. carrier98 moves the parsing cost from expensive (model) to cheap (client CPU). Even if bandwidth is your bottleneck, you’re still saving on the expensive side of the equation.

The Format Family

Format Model Parses Model Understands Optimized For
JSON Every token Yes Human readability
TOON Fewer delimiters Yes Model readability
stele Minimal delimiters Yes Model efficiency
carrier98 Nothing No (opaque) Model carrying data

carrier98 and stele are siblings:

  • carrier98 = the pipe. Opaque binary wrapped in hieroglyphs. Maximum density. The model shuttles it without parsing.
  • stele = the format. Model-readable structured data with Unicode delimiters. The model can parse and operate on it.

In practice: When you need a model to work with data, use stele. When you need a model to move data untouched, use carrier98. The pipe carries the format.

Read the full stele specification →


stele Format (Summary)

A model-readable structured data format. Uses rare Unicode delimiters so models parse structure with minimal tokens. No escaping needed - quotes, braces, newlines are just content.

For the complete specification, examples, and design philosophy, see the stele documentation.

Delimiters

Symbol Unicode Purpose
◉ U+25C9 Row start (fisheye)
┃ U+2503 Field separator (heavy pipe)
◈ U+25C8 Array element separator
∅ U+2205 Null value

Schema Declaration

@{root}┃{field}:{type}┃{field}:{type}...

Types: int, str, float, bool, str[], int[]

Example

@users┃id:int┃name:str┃active:bool
◉1┃alice┃true
◉2┃bob┃false
◉3┃carol┃true

With Arrays

@users┃id:int┃tags:str[]
◉1┃admin◈editor◈superuser
◉2┃viewer

With Nulls

@records┃id:int┃score:float┃notes:str
◉1┃95.5┃∅
◉2┃∅┃pending

Embedded Content (no escaping)

@logs┃level:str┃msg:str
◉error┃Failed to parse {"key": "value"}

Quotes, braces, colons - all just content. The ┃ delimiter is rare enough that collisions are virtually nonexistent.

Escape Hatch

If content contains a delimiter (extremely rare), wrap in carrier98:

@art┃name:str┃chars:str
◉gradient┃𓍹╣◟╥◕◝▰◣◥▟𓍺

The hieroglyph frame signals “decode me first.”

Pipeline

JSON → stele (model workspace) → carrier98 (transit) → stele → JSON

The model works in stele, the wire uses carrier98. Best of both.


Limitations

  1. Root primitives: Must be object or array (not 42 or "hello")
  2. Null array elements: Not supported (use object fields for nullable values)
  3. Single-element arrays: Unwrap to single value
  4. Sparse arrays: Normalized with nulls

Implementations

Language Repository Status
Rust base-d Reference implementation

License

MIT OR Apache-2.0