AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Oct 27, 2026, 19:01 JST

Folkbench: four checks before using an AI relay API

Send on LINE
Folkbench: four checks before using an AI relay API

3 Key Points

  1. What happened

    Folkbench published a guide, reworked for Japanese readers on Zenn, laying out four checks for AI relays used in coding: intact escaping and indentation, unbroken multi-turn tool calls, preserved cache_control and long context, and untouched system prompts.

  2. Why it matters

    The guide argues that a relay which re-encodes or reformats streamed output can deliver code that won't parse, and one that strips client optimization headers can force a full re-prefill after a one-line edit, so teams should test relays directly rather than assume they pass through requests unchanged.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The guide's starting point is a shift in what terminal-based coding agents such as Claude Code CLI and OpenAI Codex CLI expect from the infrastructure between them and the model. From a software-development view, Folkbench describes a relay not as a simple pipe but as an L7 proxy with a state-machine parser and a context scheduler, which is why the checks focus on what happens to the bytes and the request metadata rather than on network stability or load tolerance.

The four criteria follow from that framing. Escaping and indentation decide whether generated Python, YAML, or C++ arrives parseable, with the pass line set at byte-for-byte agreement with upstream output. Tool-call structure and multi-turn state decide whether an agent can keep calling read_file, edit_file, or run_terminal_command without JSON parse errors. Cache and long-context handling decide whether a one-line edit forces a costly re-prefill, tested with a 150k-token repository that hides a dependency between two distant files. System-prompt integrity is checked with packet capture, requiring that not a single byte changes.

The guide does not name specific relay vendors or report results from running these tests, so it functions as a checklist for teams to apply themselves. Folkbench says its model rankings and evaluation articles can be viewed without registration.

FAQ
What does the guide say a relay must not do to streamed code?
It must not re-encode escape sequences such as \n, \t, or \\d or reformat whitespace. The pass line is byte-for-byte agreement with the upstream output, with no formatting or compression on the relay side.
How does the guide test prompt caching?
It checks that cache_control survives the relay and that the response usage returns cache_read_input_tokens. If the relay strips cache_control, a one-line edit can force re-prefill of hundreds of thousands of tokens.
What is the long-context test in the guide?
It places an interface definition in file A and a call site in file B of a 150k-token repository, fills the gap with unrelated code, and asks how to change the interface. The result is compared with calling the official API directly.
Send on LINE

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 articleOpenAI AI disproves 指数時間仮説, proves 量子色力学 existence