Show HN: Wiretuple – Cut LLM structured-output tokens with positional tuples A new open-source Go reverse proxy called Wiretuple cuts 35–60% of LLM structured-output and function-calling tokens losslessly by rewriting repeated JSON keys into positional tuples on the wire, according to its Show HN release. Wiretuple's benchmark table reports 60.8% output-token savings on an e-commerce invoice scenario (2,041 to 801 tokens, 59.2% net), 44.5% on a dev-tool pull request batch (1,602 to 889, 43.0% net) and 56.0% on an MCP tool-invocation batch (1,617 to 711, 53.7% net), with structural equality confirmed via reflect.DeepEqual and p99 overhead under 0.1 ms. The single-binary proxy ships with zero external dependencies and supports OpenAI and Anthropic endpoints, including SSE streaming rehydration and a shadow-mode SQLite audit that estimates savings before activating rewrites. Cut 35–60 % of the output tokens of LLM Structured Outputs and Function Calling — losslessly. wiretuple is a single-binary HTTP reverse proxy written in Go with zero external dependencies: your app keeps calling the same API, and repeated JSON keys become positional tuples on the wire. client ──► wiretuple ──► upstream API │ request: schema {"items": {"id","total","currency"} } rewritten to prefixItems + "Tuple: id, total, currency " │ response: "a1", 12.5, "EUR" , "a2", 3, "USD" rehydrated to {"id":"a1","total":12.5,"currency":"EUR"}, ... │ └─ incremental SSE rehydration, same bytes downstream A schema that asks for 40 line items with 7 fields makes the model emit the same seven key names 40 times. Those keys are pure overhead: the receiver already knows them from the schema. wiretuple moves the key list into one legend and sends values as positions. go build -trimpath -ldflags="-s -w" -o bin/wiretuple ./cmd/wiretuple No go.mod requirements, no cgo, no runtime data files. OpenAI-compatible client export OPENAI BASE URL=http://127.0.0.1:8787/v1 ./bin/wiretuple -upstream https://api.openai.com Anthropic-compatible client export ANTHROPIC BASE URL=http://127.0.0.1:8787 ./bin/wiretuple -upstream https://api.anthropic.com Flags: | Flag | Default | Meaning | |---|---|---| | -upstream | – | upstream base URL required | | -listen | 127.0.0.1:8787 | listen address | | -break-even | 5.0 | minimum net savings % to rewrite a schema | | -legend-tokens | 0 | fixed legend cost 0 = estimate | | -activate | true | master switch | | -shadow