OmniGlyph
OmniGlyph
PreviewContext-as-image compression. Renders the system prompt, tool documentation, and dense history as compact PNG pages for the measured Claude Fable 5 path. The published OmniGlyph package also exposes native GPT 5.6 transformers, but OmniRoute keeps those routes fail-closed until provider fidelity and reading receipts exist.
The economics
Before → after
−66.9% tokens on this blockA real render of 1,015 characters of dense tool documentation — not a mockup.
## Tool: search_records(query, filters?, limit=50)
Searches the ledger. filters: {status:"ok"|"pending"|"failed", since:ISO8601, region}.
Returns [{id, status, attempt, region, ts, checksum}]. Rate: 20 rps. Auth: bearer.
## Tool: apply_patch(recordId, patch, dryRun=false)
Mutates one record. patch is RFC-6902 JSON Patch. dryRun returns the diff only.
Idempotency-Key header required. 409 on version conflict; retry with fresh read.
## Config
retry: {base_ms:300, factor:2, max:5}. circuit_breaker:{threshold:5, reset_s:30}.
regions: [us-east, us-west, eu-central, sa-east]. default_region: sa-east.
REGISTRO-A: {"id":"a3f8c2d19b4e","status":"ok","attempt":1,"region":"sa-east"}
REGISTRO-B: {"id":"7b1e4409ccde","status":"pending","attempt":3,"region":"eu-central"}
REGISTRO-C: {"id":"2d909e99f1b3","status":"failed","attempt":5,"region":"us-west"}
Notes: never expose checksum in logs; redact bearer; prefer read-modify-write with
Idempotency-Key; on 429 honor Retry-After; treat 408/500/502/503/504 as retryable.When it fires
Fail-closed: every gate must pass, or the request passes through untouched (each skip is recorded as skip:<reason>).
- 1Model — claude-fable-5 (measured); gpt-5.6 (HOLD)Only the measured Fable 5 path is enabled in OmniRoute. GPT 5.6 is structurally supported by the package but remains blocked until its provider receipt; unverified families such as Grok stay text-only.
- 2Transport — direct providerAggregators may resample images and destroy legibility — only a direct provider route is authoritative.
- 3Format — native Claude/OpenAIThe body must match the provider wire: Claude Messages, OpenAI Chat Completions, or native OpenAI Responses input[].
- 4Profitable — dense enoughThe exact 28px-patch cost gate decides per request; small or sparse text passes through untouched.
Compression profile
The profile is a ceiling, not a floor: a stricter profile cannot be reopened by a per-step override. Measured on this codebase: with coding-safe or balanced, a session that has not accumulated history yet compresses nothing, because both raise the minimum-characters threshold and keep the system prompt, tool schemas and tool results native.
The policy the published receipts measured. Images the system prompt, tool documentation and dense history.Enable the engine
Runs last in the stack after text engines clean the request, using the native provider wire; OpenAI Chat/Responses requests are compressed after translation so their shape is preserved. It also runs standalone through omniglyph mode. This is a preview and remains off by default until end-to-end validation is complete.