AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Oct 15, 2026, 10:00 JST

Folkbench: judge AI relay APIs on 4 coding tests

Folkbench: judge AI relay APIs on 4 coding tests

3 Key Points

  1. What happened

    Folkbench published a guide arguing AI relay APIs (gateways that sit between coding tools and model providers) should be judged on four tests, including 100% AST parse success and no JSON parse errors across 10+ turn tool chains.

  2. Why it matters

    The guide says a relay that unescapes, re-encodes, or strips optimization fields can break code chunks and agent state, so the proxy layer itself can silently damage output quality.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

Folkbench's starting point is that AI relays are no longer just chat front-ends: they sit between coding clients and model providers as application-layer proxies that reassemble streams and schedule context. The use cases have shifted from single-line IDE completion to terminal agents like Claude Code CLI and OpenAI Codex CLI, and to spec-driven development.

The four criteria are framed as failure modes rather than generic network metrics. Escaping can break when a relay unescapes or re-encodes chunks, cutting multi-byte UTF-8 characters and delivering code that will not parse. Tool calls can break when structured JSON with fields like path, old_str, and new_str is mis-serialized, or when assistant tool_use and user tool_result messages are not chained across turns. Long context can break when cache_control is stripped, forcing re-prefill, or when RAG trimming or model swapping shrinks the repository the model actually sees. Output can break when buffers or timeouts cut a long module short.

The guide also notes that mid-to-large codebase contexts tend to run 100k–200k tokens, which is why it treats cache passthrough and the 150k-token needle test as core checks rather than edge cases. Folkbench says P95 latency, availability, and per-token pricing for individual relays can be compared on its site without registration.

FAQ
What kinds of relays does the guide say to avoid?
Relays that inject their own global prompt or strip the system prompt are flagged as failing, because the guide requires a packet capture showing zero byte changes to the system prompt.
How does the guide suggest testing long-context dependency handling?
It recommends placing an interface definition in a leading file and its call site in a trailing file within a 150k-token repository, then checking whether cross-file variables and types are missed compared with a direct API connection.
What does the guide say about cache_control?
If a relay strips cache_control, the guide says even a one-line fix can force re-prefill of hundreds of thousands of tokens, so the field should survive upstream and cache_read_input_tokens should appear in the response usage.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleWordCraft, a Rust-built open-source Word alternative, hits v0.6.1