What is prompt compression?
Prompt compression reduces the number of tokens needed to convey the same instructions to an AI model. Fewer tokens means faster processing, lower cost, more room in the context window for actual work, and often clearer instructions that lead to fewer retries.
How I-Lang compresses prompts
I-Lang achieves compression through structured syntax that eliminates the overhead of natural language: articles, filler words, hedging, and ambiguous phrasing.
Before: natural language (91 words, ~120 tokens)
Please read the sales data from the CSV file. Then filter it to only include
records where the revenue is greater than 1000. After that, calculate
statistics grouped by region. Sort the results by revenue in descending
order. Finally, format the output as a markdown table and display it.
After: I-Lang (18 tokens)
[READ:@SRC|path=sales.csv]
=>[FILT|whr=revenue>1000]
=>[STAT|by=region]
=>[SORT|by=revenue,desc]
=>[FMT|fmt=md]
=>[OUT]
Reduction
| Metric | Natural language | I-Lang | Change |
|---|---|---|---|
| Words | 91 | 18 | -80% |
| Estimated tokens | ~120 | ~25 | -79% |
| Ambiguity | Multiple interpretations possible | One interpretation | Lower |
Where compression matters most
System prompts and behavioral rules
System prompts run on every turn. A 500-token system prompt costs 500 tokens per message. Compressing behavioral rules from natural language to structured ::GENE{} definitions typically saves 35-55% on the behavioral layer.
Long context sessions
As context fills up, AI quality degrades. Compressed instructions leave more room for actual task content. This is why projects like GSD (Get Shit Done) are actively optimizing their skill token overhead.
Per-token billing
If you pay per token (API usage, cloud inference), every token in your system prompt is money spent on every single request. Compression directly reduces cost.
How it works technically
I-Lang uses an 88-verb dictionary where each verb is a 3-5 character code (READ, FILT, STAT, FMT, OUT). Verbs chain with =>. Modifiers use key=value pairs. Targets use @ENTITY references. No articles, no prepositions, no filler.
The compression comes from three sources:
| Source | Natural language overhead | I-Lang equivalent |
|---|---|---|
| Verb phrases | "Please read the data from" | [READ:@SRC|path=...] |
| Connectors | "Then", "After that", "Finally" | => |
| Behavioral rules | "Always give conclusions first and do not hedge" | T:conclusions_first A:hedging⇒remove |
Try it
Paste any natural language prompt into the interactive compressor on the I-Lang homepage. See the token reduction for yourself.