NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Jookyung Song, Nojun Kwak, Simyung ChangarXiv 2026

TL;DR

String is an open-source runtime that reimagines LLM tool use as an operating system problem, replacing bloated JSON schemas with a lightweight Markdown-based interface. By shifting tool knowledge into a common runtime layer that progressively discloses information, String reduces an agent's resident context to a constant 53 tokens and cuts overall token consumption by over 33% while maintaining or improving task accuracy.

What Problem Does This Paper Address?

Current LLM agents interact with software through interfaces designed for humans (web pages with visual noise) or traditional programs (rigid JSON schemas). When an agent uses tools via standard function calling or the Model Context Protocol (MCP), the entire description of every available tool must sit inside the prompt context window on every single turn.

This creates an $O(n)$ scaling problem: as you add more tools, you pay a heavy "token rent" for capabilities the agent might not even use. More importantly, cramming massive schemas into the context window inflicts a high "cognitive load" on the model, leading to distraction, position effects, and a severe drop in action selection accuracy—especially for smaller models.

Methods

The authors introduce String, an agentic operating system that standardizes the agent-computer interface using a document format rather than a complex protocol.

The core of String is SFMD (String-Flavored Markdown), a strict superset of CommonMark. In SFMD, a single Markdown file defines an entire application, including its views, typed actions, navigation, and credentials. The agent interacts with this environment using just two core Unix-style slash commands: /open to view a page or app, and /act to execute an action.

Figure 1: String in one view: the agent loop (command →partial Markdown view →next: hint → result), and the runtime that gives every surface—apps, files, web, shells, peers—one uniform gram- mar (P2), with views kept deliberately partial (P1) and shell execution reserved for local content.

The system is built on four core design principles:

  1. P1 — Partial Exposure: The runtime intentionally withholds full schemas and long lists, rendering them on-demand to conserve the agent's context.
  2. P2 — Uniform Surface: Web pages, local files, shell environments, and apps all share the same Markdown grammar, providing location transparency.
  3. P3 — Documents as Programs: Apps are plain Markdown files; installing an app is as simple as copying the file.
  4. P4 — Recursive Rendering: Action outputs are re-rendered back into SFMD, making results instantly navigable and composable.

String maps these concepts directly to classical operating system mechanisms:

Table 1: The OS analogy, made concrete. Each row is an enforced mechanism, not a metaphor.

Datasets

The system was evaluated using:

  • SkillsBench v1.1: A benchmark containing 87 practitioner tasks across eight domains, originally designed to measure how well curated procedural guides (skills) help agents solve complex, multi-step problems.
  • OpenAPI Scale Test: 100 public OpenAPI services converted into String apps to measure context residency scaling.
  • Production Trajectories: A dataset of real-world task trajectories generated over three months of internal production use (including an end-to-end automated news publishing service) used to fine-tune open-weight models.

Key Insights and Ideas

  • Staging is Causal, Not Just Economical: Progressively disclosing tool details isn't just about saving tokens; it directly drives model accuracy. Disclosing tier-2 details just one turn too early dropped agent accuracy by up to 23 points. Proper staging dropped wrong-action selection from 28% to 2%.
  • Zero Learning Curve via Pretrained Priors: Instead of inventing a new syntax, String leverages what LLMs already know from pretraining scale: reading plain Markdown and writing standard Unix shell conventions (flags, positional arguments, --help).
  • Privilege Follows Provenance: Security boundaries are enforced based on where a document comes from. Local files are permitted to execute shell commands, whereas remote SFMD documents fetched over HTTP are strictly restricted to HTTP actions.

Key Results

When evaluated on SkillsBench across six frontier and small models (including GPT-5.5, DeepSeek V4 Pro, and Claude Sonnet 4.6), operationalizing procedures as String apps achieved a +1.3 percentage point increase in aggregate success over the baseline skills method.

Table 2: SkillsBench (87 tasks, 3 runs per model–task pair; all conditions run on the OpenHands harness, as in the original benchmark). Operationalizing the benchmark’s curated procedures as executable String apps yields comparable aggregate success while cutting tokens among completed episodes by 21.7–44.3%.

Crucially, String achieved this while using 33.5% fewer tokens on average among completed episodes. In the scalability test with 100 OpenAPI services, standard JSON schemas consumed 103,518 tokens per turn, whereas String maintained a fixed resident interface of just 53 tokens, reducing execution tokens by over 91%.

Additionally, fine-tuning small open-weight models (like Qwen and Gemma) on String's simple grammar cut generated tokens by 51.9% to 78.9% while maintaining or improving task success.

Limitations and Future Work

The current release (v0.1) is a proof-of-concept limited to a single-user, loopback-only, and unauthenticated environment. Crucial production security features—such as cryptographic app signing, granular capability management, comprehensive audit logging, and interactive permission prompts—remain on the project's roadmap.

Summary updated

BibTeX
@misc{song2026string,
  author = {Jookyung Song and Nojun Kwak and Simyung Chang},
  title = {{String: An Agentic OS Where Every App Is a Markdown File}},
  year = {2026},
  eprint = {2608.28027},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.28027},
}
Figure