Manuscript Offprint

arXiv:2608.28027

String: An Agentic OS Where Every App Is a Markdown File

Jookyung Song, Nojun Kwak, Simyung Chang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLM agents have become a new class of software user, but every surface they work through was designed for someone else. Pages are built for human eyes, which can skim and ignore; tool schemas for programs, which pay nothing to carry definitions they never call. An agent has neither luxury: it re-reads, and pays again for, everything it is shown on every turn. We present String, an open-source runtime that gives this user an interface of its own and treats the job as an operating-systems problem. Tool knowledge moves out of the agent's context and into a common layer that renders it back one view at a time—as Markdown. A single SFMD (String-Flavored Markdown) document declares an application's views, typed actions, navigation, and credentials, and the runtime handles discovery, validation, execution, state, and secrets behind two core verbs: /open to see and /act to do. Web and app turn out to be two renderings of one architecture: an SFMD site serves styled HTML to browsers and the raw document to agents, so one grammar reaches apps, files, shells, and the web—even legacy HTML—with no per-site integration. Views stay partial by design, and the staging is causal: disclosing one tier of detail a single turn too early costs up to 23 accuracy points, while proper staging drops wrong-action selection from 28% to 2%. Privilege follows provenance: a remote page may call HTTP but never the shell, and caller-supplied text never expands a stored secret. On an 87-task benchmark that pairs each task with curated skills, operationalizing those procedures as on-demand String apps yields comparable aggregate success across six models from frontier to small (+1.3pp) while using 33.5% fewer tokens among completed episodes, and the resident interface stays a constant 53 tokens at any catalog size. We report the design, the evaluation, and what three months of production use taught us.

1 Introduction

An agent’s capability surface is assembled at the wrong layer. Function calling, tool APIs, and skill libraries all deliver capability the same way, by describing it into the model’s context as JSON schemas, API manuals, or few-shot transcripts [1, 3–5, 10, 11]. Every connected capability then charges rent. Its description sits in context whether or not the current turn uses it, and the total grows with each integration while context budgets do not. The cost is not only tokens. The agent has to hold, compare, and re-derive the operating knowledge of every tool it might reach for [27, 28],

†^{\dagger}Corresponding author

Preprint.

a burden we call cognitive load after its human counterpart [19, 20]—documented for models as distraction, length, and position effects [16–18]—and one that falls hardest on small models.

People solved a version of this long ago. Operating systems and browsers absorb the complexity and expose one uniform way to interact [24, 25], so a person runs thousands of applications without ever learning their wire formats. Agent–computer-interface work makes the same point for the new user: performance depends strongly on the interface an agent is given [6]. Agents are still living before that layer exists, with raw manuals, one-off integrations, and nothing common between the model and everything it wants to use.

String is our attempt at that layer, and it rests on two bets. The first is that the interface should be a document format rather than a protocol. SFMD (String-Flavored Markdown) is a strict superset of CommonMark in which a Markdown file declares views, navigation, and typed actions, so a file is an app and installing it is just copying it. The second bet is that conserving the agent's context is the runtime's job, not the agent's. We distill the system into four design principles, developed in §2–§3 and stress-tested by three months of production use:

• P1 — Partial exposure. The runtime, not the agent, conserves context. Views are rendered incomplete on purpose, and everything held back stays addressable.

• P2 — Uniform surface (location transparency). An SFMD page is the same object whether it is an installed app, a local file, or a web page: the agent drives all of them with the same two verbs, never knowing which kind it is talking to.

• P3 — Documents as programs. An app is a Markdown file; installation is copying; authoring needs no toolchain. Consequently, format errors are program bugs and must be loud.

• P4 — Recursive rendering. Action output is re-rendered as SFMD, so results carry the same affordances as pages; the interface composes with itself.

The paper covers the design ( §2§2), the runtime and its trust model ( §3§3), and the evaluation ( §4§4); lessons from production use, including the ones that did not go our way, are collected in Appendix C.

References (23)