Skip to content

String

String is an operating system for AI.

It sits on top of existing operating systems and the web, giving AI agents a single, consistent interface to the outside world — apps, documents, websites, APIs, and files.

AI reads everything as Markdown. AI acts through a handful of commands. That’s the entire interface.


Context is text. String presents all content as text, preferring Markdown — the format AI understands best. SFMD (String Flavored Markdown) adds lightweight extensions for navigation, block addressing, and actions while remaining 100% CommonMark compatible.

Actions are commands. Two primitives cover nearly everything:

  • /open — see something (a document, a page, a block, a shortcut)
  • /act — do something (call an API, run a workflow, submit data)

New capabilities come from new documents, not new commands.


#DocumentWhat it covers
1Why StringThe problem, the vision, and why AI needs its own OS
2The ModelContext hierarchy, SFMD principles, command surface
3The AI LoopHow an AI agent discovers, navigates, and acts
4TopicsSessions, typed topics (file, web, app, bash)
5ActionsAction definition, invocation, response templates
6StateVariables, secrets, session state, configuration
7Navigation/open, /nav, menus, shortcuts, history
8AuthoringHow to write SFMD documents
9EditingCreating and modifying documents through String
10ErrorsError codes, format, and handling
11TransportChanFlow channel tags, AI ↔ String communication
12Response FormatResponse structure and formatting
13Tools/tool invocation, cmd blocks, tool vs app

Practical, scenario-based guides showing AI using String end-to-end. Each guide is a real AI↔String conversation using channel tags. The cookbook lives in its own repository: string-os/cookbook.

#GuideScenario
0CLI Quick StartInstall string and run your first command
1Document EditingCreate, edit, undo, commit, and version a document
2Web BrowsingResearch multiple sites, manage tabs, compile findings
3Single-Page AppOne-file weather app — all /act, no navigation
4Multi-Page AppMulti-file weather app — /open to move, /act to do
5Multi-Topic WorkflowsAPI docs→code, email→report, build+changelog
6CLI AppWrap a shell CLI as an SFMD action surface
7Cross-Agent PortabilityOne file, three AI agents, same behavior