|
11 | 11 |
|
12 | 12 | Python implementation of [GCF](https://gcformat.com/) — the most token-efficient wire format for LLMs. A drop-in alternative to JSON and TOON for any structured data. |
13 | 13 |
|
14 | | -**100% comprehension on every frontier model tested. 29% fewer tokens than TOON, 56% fewer than JSON across 16 datasets. 91.2% on structurally complex code graphs (vs TOON 68.8%, JSON 54.1%). 2,400+ LLM evaluations. Zero training.** |
| 14 | +**Built for the agentic loop, where the same structured context crosses the model boundary turn after turn.** A single payload is 50-92% smaller than JSON, but GCF also deduplicates repeated structure across turns and sends only deltas when context changes, so by the 5th overlapping call each response costs 99% fewer tokens than JSON, and a 10-call session runs 94.4% cheaper than re-sending JSON every turn. Session dedup and delta both need local IDs and a multi-turn design that neither JSON nor TOON has. |
| 15 | + |
| 16 | +- **100% comprehension on every frontier model**, zero training. 29% fewer tokens than TOON and 56% fewer than JSON across 16 datasets; 91.2% on structurally complex code graphs (vs TOON 68.8%, JSON 54.1%). |
| 17 | +- **Proven lossless** across 43,000,000,000+ round-trips in 5 formats and 6 languages. Zero runtime dependencies. |
| 18 | +- **One format, four properties no other single format holds at once:** schema-free, lossless, token-compact (50-92% vs JSON), and model-readable with zero training. JSON is verbose, Protobuf needs a schema, MessagePack is binary, and TOON isn't reliably lossless. |
| 19 | + |
| 20 | +2,500+ LLM evaluations. [Full benchmarks](https://gcformat.com/guide/benchmarks.html). |
15 | 21 |
|
16 | 22 | Docs: [gcformat.com](https://gcformat.com/) · [Playground](https://gcformat.com/playground.html) · [GCF vs TOON](https://gcformat.com/guide/vs-toon.html) |
17 | 23 |
|
@@ -84,7 +90,7 @@ out1 = encode_with_session(payload1, sess) # full declarations |
84 | 90 | out2 = encode_with_session(payload2, sess) # reused symbols as "@N # previously transmitted" |
85 | 91 | ``` |
86 | 92 |
|
87 | | -By the 5th call in a session: 92.7% token savings vs JSON. |
| 93 | +By the 5th call in a session: 86% fewer tokens than JSON from dedup alone, 99% stacked with delta encoding. |
88 | 94 |
|
89 | 95 | ## Streaming Encode |
90 | 96 |
|
@@ -229,7 +235,7 @@ for snapshot in stream: # each turn's current GenericSet |
229 | 235 |
|
230 | 236 | ## Benchmarks |
231 | 237 |
|
232 | | -2,400+ LLM evaluations across 10 models, 3 providers, and 51 independent test runs. |
| 238 | +2,500+ LLM evaluations across 11 models, 4 providers, and 50+ independent test runs. |
233 | 239 |
|
234 | 240 | | | GCF | TOON | JSON | |
235 | 241 | |---|---|---|---| |
|
0 commit comments