Skip to main content

Agent frontends

The software that renders the eldritch ramblings of the shoggoth

2026-07-25 — 2026-11-11

quality 5.5

Wherein PDF Extraction Pipelines Are Preferred Over Native Model Tools, Gradio Is Employed for Bespoke Rendering, Open WebUI Presets Manage Sampling Parameters, and ACP Is Utilized for Direct Editor Integration.

computers are awful together
DIY
machine learning
NLP
premature optimization
slop
UI
Figure 1

The frontend is the outermost layer of the agent, i.e. the human-facing surface. Anything below that we classify as “harness” or LLM. Because of tradition and also convenience, the frontend is loosely coupled and for many systems the model need not know nor care what renders its tokens. Its job is to render what the harness emits and to carry the human’s input back — prompts, files, approvals, answers, settings. In practice most frontends ship welded to a harness, and the join between them is fuzzy in a few predictable places.

I generally want frontends (or, mostly, frontend–harness bundles) that can…

  1. Render what the model emits. Plain text renders anywhere; equations and diagrams are patchier.
  2. Get documents in, PDFs especially.
  3. Reach tools, via MCP or skills.

Getting a PDF in is the frontend’s job; deciding what of it reaches the context window is the harness’s, and the bundles split that differently. The Anthropic bundle passes the PDF to the model natively, Open WebUI and Qwen-Agent run their own extraction-plus-RAG pipelines, and Goose, OpenCode and Jan need something BYO. I tend to avoid all of these though, since the built-in extractors mangle display equations, dense notation and other stuff that I care about. I convert via a BYO pipeline and feed the resulting markdown to whichever frontend.

1 Some options

Most rows here are bundles, so the Tools and Documents columns describe the harness that ships with each frontend. The editor, Waku and Gradio rows are frontends alone and take whatever harness they are pointed at.

Rendering Tools Documents
Anthropic bundle (Desktop, Code, Cowork) out of the box MCP + skills native multimodal, drag-and-drop
Open WebUI out of the box, every delimiter style MCP, Tools, Python interpreter built-in RAG
Qwen-Agent WebUI delimiters registrable at the renderer a plain Python function built-in RAG (files=[…])
Goose needs a system-prompt line for maths MCP, skills BYO via MCP
OpenCode needs a system-prompt line for maths MCP BYO via MCP
Jan needs a system-prompt line for maths MCP BYO via MCP
an editor, over ACP the editor’s own diffs and buffers whatever the agent has the files already open
Waku, over each agent’s native protocol the agent’s transcript and diffs, every agent in one window whatever the agent has the workspace
our own script, usually Gradio ours to render a plain function call ours to parse

1.1 Gradio

A DIY frontend is not much work. Gradio is the de facto standard: gr.ChatInterface wraps a generator function into a streaming chat window in about a dozen lines, and gr.Chatbot(latex_delimiters=…) registers maths delimiters at the renderer rather than nagging the model to emit a particular format. Qwen-Agent’s WebUI is Gradio, as were oobabooga and AUTOMATIC1111 before it.

It is a toolkit rather than a finished frontend: no model picker fed from /v1/models, no preset store, no persistent conversation history. These are all things that are less difficult to implement than they are tedious and repetitive. Still, this suits some usage.

2 Where the frontend ends

Deciding what the model sees and which tools it may call is harness work, but the executor that runs a tool can live in the frontend. An ACP editor performs the agent’s file edits and shell commands itself, and Open WebUI’s code interpreter runs the model’s Python in the browser. The human approving or answering a tool call is reached the same way.

3 Sampling parameters

Mostly I set sampling parameters per task, in the code that calls the API. An eval run, a maj@k fan-out, a batch extraction job — each is a script that puts temperature, top_p and friends into the request body, and no chat window is involved. For that work the frontend’s sampling controls are irrelevant, since sampling is a harness decision and the script is the harness.

They matter in a narrower case: when I drive a local model interactively, so the app I am typing into is the only client. There, the bundled harness sends whatever values the frontend lets me set. Open-weights models ship with recommended settings — Qwen3.6 wants a different temperature for thinking than for coding, for example — and a local server like vllm-mlx has no per-model sampling defaults. So either the frontend sends the recommended values with each request or the model runs on the server’s generic defaults. With hosted models the vendor picks the defaults, and the Anthropic bundle exposes no sampling settings at all.

3.1 What each client can send

For that interactive case, what these apps can send varies more than I expected.

App What it can send Snags
Goose temperature, nothing else its binary contains GOOSE_TEMPERATURE and not the strings top_p, min_p or repetition_penalty, so no configuration would make it send them
OpenCode arbitrary keys per model, from a models.<id>.options block its @ai-sdk/openai-compatible transport spreads into the body last models.<id>.temperature is a boolean capability flag, not a value, and without it no temperature is sent at all; defaults are injected by substring-matching the model id, so anything with qwen in the name silently acquires temperature 0.55
Open WebUI a full pinned parameter set per model preset the penalty field is misnamed against any non-Ollama server (detail)
Jan the full sampler set, but only on a custom provider; the controls are hidden for the built-in cloud providers a local endpoint is not one of Jan’s “local” options, which are its own engines; it has to be added by hand

Open WebUI handles this best. Its unit is the model preset: a base model plus a system prompt plus a pinned parameter set, saved as its own entry in the model picker — harness configuration with a frontend menu on it. So the same weights can appear twice, Qwen3.6 at temperature 1.0 for thinking beside Qwen3.6 at 0.6 for coding, which is the split the model tables recommend and which neither the server nor Goose can express. It also reads the model list from /v1/models, so the picker does not drift from what the server is serving. That, more than the rendering, is why I put up with its pile of Node packages with peculiar version requirements.

A preset is one row in webui.db, and the part that matters is small:

{
  "id": "cascade-2-maths",
  "base_model_id": "nemotron-cascade-2",
  "name": "Cascade-2 (maths)",
  "params": { "temperature": 1, "top_p": 0.95, "min_p": 0.02, "repetition_penalty": 1.05 }
}

What this looks like against vllm-mlx, including a parameter name that silently does not survive the trip, is on the Mac page.

Gotcha: Open WebUI can also rewrite the conversation before it reaches the model. Its context compaction (ENABLE_CONTEXT_COMPACTION) replaces older turns with a model-written summary once a chat passes a token threshold, keeping the most recent 40% or so. The threshold (CONTEXT_COMPACTION_TOKEN_THRESHOLD, default 80,000) is one global number in the 0.13 source, not a per-model one, so it cannot suit a model with a 100K window and one with a 262K window at once. Compaction is off by default in 0.13. Where the exact text matters, such as a paper attached for refereeing, a summary is the wrong substitute, so I set it to False explicitly rather than rely on that default.

It also decides whether earlier turns’ thinking reaches the model. In 0.13.3 it sends the reasoning back only to Ollama and llama.cpp connections; for any other OpenAI-compatible server, llama-swap included, it drops it (get_reasoning_format in its middleware). Qwen3.8’s template keeps earlier thinking by default (preserve_thinking), but behind Open WebUI it has nothing to keep, so a long back-and-forth grows only by the visible answers. That suits refereeing, where the 50,000 tokens of deliberation behind the last answer would otherwise crowd the paper out of the window.

4 Driving an agent from the editor

For coding, and for most work where the artefact is a file, the frontend I want is the editor I already have. The Agent Client Protocol (ACP) is how the two talk. Zed wrote it, modelled on the Language Server Protocol: rather than every editor hand-rolling an integration for every agent, both sides speak one JSON-RPC dialect, and ideally any ACP editor can drive any ACP agent.

The agent runs as a subprocess of the editor and they talk JSON-RPC over stdio (or HTTP/WebSocket for a remote agent). The editor owns the files and the terminal, so the agent’s edits arrive as native diffs and its shell commands run in the editor’s own terminal — the editor is the executor for those tools. ACP reuses MCP’s JSON types where it can and adds a few of its own for agent UI.

On the editor side the adopters are Zed and JetBrains, with community bridges for Neovim, Emacs and VS Code. On the agent side, Goose ships a goose acp server; Gemini CLI, Claude Code and Codex have native support or adapters, AFAICT. Goose’s ACP-clients guide is the least stale list I have found.

5 Waku

Waku (source: egoist/waku) is an open source app that supports myriad ugly CLI agents and wraps them in a native interface. Coding-oriented. Macos/Linux. Covered as a coding frontend.

6 Diffusion language models

Everything above assumes an autoregressive model: we append a prompt, the model appends an answer, and the frontend draws the appending. A diffusion language model like DiffusionGemma instead fixes a block of text and denoises all of it at once. Streaming that into a chat box is a printing press pretending to be a typewriter.

It would better suit an interface built around editing text — much as image diffusion gets inpainting in its GUIs. We would want to regenerate selections, infill gaps, rewrite under constraints. The closest things I know of are Aider’s AI! / AI? scoped edits and the inline-diff autocomplete most editor extensions ship. Both mutate selected text, but I don’t know whether either supports diffusion models specifically, and I don’t fully trust arbitrary infill anyway. Also, the context window for each generation looks short (hundreds of tokens), which seems… not enough?

So for diffusion models the frontend is not loosely coupled to the model after all.

7 Maths

Maths needs all three of the jobs above: notation has to render, the solve() oracle has to be reachable as a tool, and papers have to get in. If we are proving there is a fourth thing no chat window does at all.

7.1 Rendering notation

Hosted clients render LaTeX without our help. Self-hosted frontends fumble it in two places.

The first is delimiters. Models like to emit \(…\) and \[…\], while most chat UIs wire only $…$ and $$…$$ into their renderer, so the equation arrives as raw backslashes. Goose, OpenCode and Jan need a system-prompt line telling the model to emit dollar delimiters. Open WebUI does not: its KaTeX pass registers every delimiter style — $…$, $$…$$, \(…\), \[…\], even \begin{equation} — behind guards that keep prose dollar signs out of maths mode.1 Gradio frontends, Qwen-Agent included, let us register the delimiters at the renderer instead.

1 Recent, though: inline $…$ was deliberately excluded into early 2026, so an older install still wants the system-prompt line.

The second is streaming. A $$ arrives before its closing pair, so the equation shows as raw text until the delimiter lands — the maths case of the flash-of-incomplete-markdown problem. The fix is to buffer until the delimiters balance; rendering a finished document rather than a stream avoids it entirely.

7.2 Calling the oracle

Reaching a solve() oracle reduces to MCP versus skills, and every frontend in the table has one or the other. The one frontend-level trap is the timeout: a synchronous solve() that fans out for three minutes will exceed some clients’ tool-call time limit, which is what the async handle pattern is for.

7.3 Lean state

No chat frontend renders Lean proof state. The Lean 4 web editor runs a Lean server with a live goal panel, so I keep it open beside the chat. When we own the loop, the compiler’s complaints are the loop’s input anyway, and printing them is free. A custom React app with an embedded editor would buy full control for a day or two of plumbing; I’d defer that until the loops earn it.

7.4 Our loop behind Open WebUI

Owning the loop need not mean writing a frontend. Open WebUI straddles two layers, frontend and harness, and the two come apart. So we can run our own orchestrator underneath and keep the KaTeX rendering, the RAG and the chat history. There are three extension points, in increasing order of maintenance burden:

  • A Pipe Function is a Python function that registers as a custom “model” in the picker, intercepts the prompt and returns whatever it produces. Enough for a single custom agent.
  • A Pipeline is a standalone Python service that Open WebUI talks to as if it were a model, so the generate-run-verify loop — routing, retries, fan-out, oracle calls, and the sampling parameters for each — runs in its own process. Upload a .py file or point it at a raw GitHub URL and it shows up as a model.
  • MCP (native since v0.6.31) lets the loop itself use tools — the mathx oracle, a wrapped Lean server. It composes with either of the above.

So: keep the stock UI, put the loop in a Pipeline, add tools over MCP, and defer the React app until something like proof-state rendering forces it.