The Research Report
OpenAI Symphony: When Your Prompt File Becomes a Control Plane
On April 27, 2026, OpenAI published a repository called openai/symphony. Within 24 hours it had 17,000 stars. The README is sparse and the warning label is blunt: "Symphony is a low-key engineering preview for testing in trusted environments."
But beneath that modest framing sits something that rewrites how we think about prompt engineering. Symphony turns a single file called WORKFLOW.md into the complete operating contract for autonomous coding agents. That file holds your tracker configuration, your agent runtime settings, your workspace hooks, and the full prompt template that tells Codex what to do. It is YAML front matter plus Liquid-templated Markdown. It lives in your repo. It version-controls alongside your code. And OpenAI built the spec for it.
This is prompts-as-code going first-party. Here is what that means and why it matters.
What Symphony Does
Symphony is an agent orchestrator. It reads work from a Linear issue tracker, creates isolated workspaces for each issue, and launches Codex coding agents to handle the tasks. The core loop:
- Poll Linear for candidate issues in active states (Todo, In Progress, etc.)
- Create an isolated workspace directory per issue
- Render a prompt from your
WORKFLOW.mdtemplate with the issue data - Launch Codex in app-server mode inside that workspace
- Let the agent work autonomously, with up to 20 continuation turns per session
- Reconcile state: if Linear shows an issue moved to Done or Cancelled, kill the agent and clean up
The key shift: engineers stop managing agent sessions. They manage work items on a board. The agents pull tasks and execute. Humans review the output. The blog post reports a 500% increase in landed PRs on some internal OpenAI teams in the first three weeks.
The system is opinionated about the separation of concerns. Symphony does not write to Linear. It reads issues and dispatches agents. The agent itself, guided by the prompt template, handles ticket mutations like state transitions, comments, and PR links. This means the workflow prompt is the single source of truth for how work happens.
WORKFLOW.md: Anatomy of a Prompt Contract
The WORKFLOW.md file is the centerpiece. It combines configuration and instructions in one version-controlled artifact. The structure mirrors Jekyll-style front matter: YAML between triple dashes, then Markdown body.
The YAML Front Matter
The front matter handles all runtime configuration:
tracker:
kind: linear
project_slug: "symphony-0c79b11b75ea"
active_states:
- Todo
- In Progress
- Merging
- Rework
terminal_states:
- Closed
- Cancelled
- Done
polling:
interval_ms: 5000
workspace:
root: ~/code/symphony-workspaces
hooks:
after_create: |
git clone --depth 1 https://github.com/openai/symphony .
if command -v mise >/dev/null 2>&1; then
cd elixir && mise trust && mise exec -- mix deps.get
fi
before_remove: |
cd elixir && mise exec -- mix workspace.before_remove
agent:
max_concurrent_agents: 10
max_turns: 20
codex:
command: codex --config shell_environment_policy.inherit=all --config 'model="gpt-5.5"' --config model_reasoning_effort=xhigh app-server
approval_policy: never
thread_sandbox: workspace-write
turn_sandbox_policy:
type: workspaceWrite
This covers six top-level sections: tracker, polling, workspace, hooks, agent, and codex. You can see the full power here. Tracker configuration selects which Linear states count as active or terminal. Agent configuration caps concurrency and turn limits. Codex configuration passes through to the app-server runtime, including model selection, approval policy, and sandbox constraints. Hooks run shell scripts at workspace lifecycle events like creation and removal.
The spec is explicit about dynamic reload: Symphony watches WORKFLOW.md for changes and applies them without restart. Invalid changes halt new agent dispatch but keep running sessions alive. The last known good config stays active until you fix the file.
The Liquid Prompt Template
After the closing ---, the Markdown body becomes the agent prompt. This is where prompt engineering meets infrastructure. Symphony uses the Liquid template engine (via the Solid Elixir library) to inject issue data. Available variables include issue.identifier, issue.title, issue.description, issue.state, issue.labels, issue.url, issue.blocked_by, and attempt (the retry counter).
The rendering runs in strict mode. Unknown variables or filters cause hard failures. No silent typos. No placeholder gaps. If you write {{ issue.tittle }}, the render crashes and you find out immediately.
The production WORKFLOW.md in the repository runs about 400 lines of Markdown instructions. It is not a vague system prompt. It is a detailed operating procedure that defines:
- Status routing: Which states mean what, and what the agent should do in each one
- Workpad protocol: A single persistent Linear comment as the source of truth for progress tracking
- PR feedback sweeps: Required protocol for reviewing all PR comments before moving to Human Review
- Blocked-access escape hatch: Exact conditions under which an agent can stop early
- Rework handling: Full reset procedure when reviewer requests changes
- Acceptance criteria enforcement: Ticket-provided validation sections are treated as non-negotiable
Here is a taste of how issue state drives different agent behavior:
{% if issue.state == "Rework" %}
Reviewer requested changes. Address all feedback before re-submitting.
{% elsif issue.state == "Merging" %}
Run the land skill. Do not call gh pr merge directly.
{% endif %}
And retry awareness:
{% if attempt %}
Continuation context:
- This is retry attempt #{{ attempt }}
- Resume from the current workspace state instead of restarting from scratch.
- Do not repeat already-completed investigation.
{% endif %}
Label-based routing:
{% if issue.labels contains "bug" %}
This is a bug fix. Start by reproducing the issue.
{% elsif issue.labels contains "feature" %}
This is a new feature. Begin with design validation.
{% endif %}
The template system makes WORKFLOW.md a living document. You can encode your team's entire development workflow into structured, testable prompts that change behavior based on ticket state, labels, blockers, and retry count. When you update the file, Symphony hot-reloads it for the next dispatch cycle.
The Contract Model
The spec calls WORKFLOW.md a "repository contract." That phrasing is precise. This is not a config file that an orchestrator happens to read. It is a binding agreement between the repository, the orchestrator, and the agent. The spec defines:
- Discovery rules:
WORKFLOW.mdin the current working directory, or an explicit path passed at startup - Parsing rules: YAML front matter decoded to a map, Markdown body trimmed
- Validation rules: Missing file is a fatal error. Invalid YAML halts dispatch. Unknown template variables fail the affected run only
- Reload rules: File changes apply dynamically without restart, but invalid changes do not crash the service
This is a contract with error classes, fallback behaviors, and a clear separation between configuration errors (block everything) and template errors (block only the affected run). It has the shape of an API specification, not a tips-and-tricks blog post.
Why This Matters for Prompt Engineering
The prompt engineering discipline has spent years in a weird liminal state. Practitioners write prompts. They iterate on them. They share techniques on social media. But the artifacts themselves live in chat interfaces, in notebooks, in copy-paste snippets. They are ephemeral. They are not code. They do not get reviewed, versioned, tested, or deployed through the same pipelines as the software they control.
WORKFLOW.md changes that equation in three ways.
Prompts Get a File Format
YAML front matter for configuration. Liquid-templated Markdown for instructions. Strict parsing. Strict rendering. Error classes. This is not ad hoc text in a chat box. It is a structured file format with a spec behind it. The prompt is version-controlled alongside the code it directs. You can diff it, review it, roll it back. You can write tests against it.
Prompts Get a Runtime Contract
The template variables are not suggestions. They are a typed interface. issue has documented fields. attempt has documented semantics. Unknown variables crash the render pipeline. The contract model means prompts are not just text. They are programs with inputs, outputs, and failure modes that the system handles explicitly.
Prompts Get First-Party Validation
OpenAI shipped this. The company that builds Codex, the company that builds GPT-5.5, the company whose models are the target of all this prompting work, has published a specification that says: "Here is how you structure a prompt file for autonomous agent orchestration. Here are the sections. Here is how the variables work. Here is how errors propagate." That is a signal. When the model provider codifies prompt structure as a versioned, validated, hot-reloadable file format, the discipline moves from craft to engineering.
The Emerging Repo-Standard Stack
WORKFLOW.md does not exist in isolation. It joins two other files that are becoming standard infrastructure for agent-ready repositories.
AGENTS.md: The Context File
AGENTS.md is the project-level instruction file for coding agents. Think of it as a README for agents. It contains build steps, test commands, code style guidelines, and conventions that agents need but humans do not. Over 60,000 open-source repositories now include one. OpenAI Codex reads it natively. So do Amp, Jules, Cursor, and other agents. It is now stewarded by the Agentic AI Foundation under the Linux Foundation.
AGENTS.md answers: "What does an agent need to know about this codebase?"
COMPRESSION.md: The Context Budget File
COMPRESSION.md is a plain-text convention for managing context window compression in long-running agents. It defines what to compress, what to preserve, compression ratios, and token budgets. It emerged from the Agentik Safety Framework as one of 12 specifications covering operational control, data security, output quality, and accountability for autonomous systems.
COMPRESSION.md answers: "How does an agent manage its own context within model limits?"
WORKFLOW.md: The Orchestration Contract
WORKFLOW.md answers: "How does an orchestrator dispatch work to agents and what instructions govern that work?"
Together, these three files form a stack:
- AGENTS.md defines the static context every agent needs
- COMPRESSION.md defines how agents manage their own context budget
- WORKFLOW.md defines the dynamic instructions and configuration for orchestrated work
Each file serves a different layer. AGENTS.md is read by the agent at the start of every session. COMPRESSION.md governs behavior during long sessions. WORKFLOW.md is read by the orchestrator and rendered per-dispatch with live data. But they share a common philosophy: agent behavior should be specified in plain-text files that live in the repository, that are version-controlled, and that are readable and auditable by humans.
This is the prompts-as-code movement crystallizing into a standard stack. Not a vendor format. Not a framework-specific config. A set of .md files with well-defined semantics that any orchestrator or agent can implement.
Getting Started
Here is how to start using Symphony and WORKFLOW.md today.
Prerequisites
- A Linear account with a personal API key
- Codex CLI installed and configured
- A codebase that is set up for agent work (the OpenAI harness engineering guide covers this)
- Elixir and Erlang installed, or mise for version management
Steps
1. Clone the repository
git clone https://github.com/openai/symphony
cd symphony/elixir
2. Copy WORKFLOW.md to your project
Take the elixir/WORKFLOW.md from the Symphony repo and adapt it for your project. At minimum, change these values:
tracker.project_slug: Your Linear project slug (right-click your project in Linear, copy the URL, extract the slug)workspace.root: Where you want isolated workspaces createdhooks.after_create: Your repo clone command and setup stepscodex.command: Your preferred Codex model and configuration
3. Customize the prompt template
The Markdown body is where the prompt engineering happens. Start with the production template from the repo. It covers status routing, workpad protocol, PR feedback sweeps, and rework handling. Then tailor it:
- Add project-specific conventions and testing requirements
- Adjust the status map to match your Linear workflow states
- Add label-based routing for your team's label taxonomy
- Include project-specific validation steps
4. Set environment variables
export LINEAR_API_KEY=your_linear_personal_api_key
5. Install dependencies and start
mise install
mise exec -- mix setup
mise exec -- mix build
mise exec -- ./bin/symphony ./WORKFLOW.md
6. Enable the dashboard (optional)
mise exec -- ./bin/symphony ./WORKFLOW.md --port 4000
This starts a Phoenix LiveView dashboard at localhost:4000 showing real-time orchestrator state, running sessions, and token usage.
7. Required acknowledgment flag
The first time you run Symphony, you must pass the acknowledgment flag:
mise exec -- ./bin/symphony ./WORKFLOW.md --i-understand-that-this-will-be-running-without-the-usual-guardrails
This is intentional. Symphony runs Codex with approval_policy: never in the default config. There is no human-in-the-loop confirmation. The agents can execute code, push commits, and modify your repository without asking permission.
Custom Workflow Patterns
The Liquid template system enables sophisticated per-task-type definitions. Some patterns from the documentation:
State-specific instructions: Route different behavior based on ticket status.
{% if issue.state == "Rework" %}
Full approach reset. Re-read all human comments. Close the existing PR.
Create a fresh branch from origin/main. Start over.
{% elsif issue.state == "Merging" %}
Execute the land skill. Do not call gh pr merge directly.
{% endif %}
Blocker handling: Skip work that is blocked by unresolved dependencies.
{% if issue.blocked_by %}
This issue is blocked by:
{% for blocker in issue.blocked_by %}
- {{ blocker.identifier }}: {{ blocker.state }}
{% endfor %}
Do not proceed until blockers are resolved.
{% endif %}
Retry awareness: Tell agents whether this is a fresh start or a continuation.
{% if attempt %}
Continuation (Attempt #{{ attempt }}).
Resume from current workspace state. Do not restart from scratch.
{% else %}
Fresh workspace. Begin with investigation.
{% endif %}
Validation
You can validate your WORKFLOW.md syntax before running the orchestrator:
iex> SymphonyElixir.Workflow.load("./WORKFLOW.md")
{:ok, %{config: %{...}, prompt: "...", prompt_template: "..."}}
Errors return with details:
{:error, {:workflow_parse_error, reason}}
Roll Your Own
The spec is language-agnostic. OpenAI explicitly encourages building your own implementation. The repository includes an Elixir reference, but the SPEC.md defines the system in implementation-neutral terms. You can implement it in any language. The spec covers:
- Workflow loader: reads WORKFLOW.md, parses YAML and prompt body
- Config layer: typed getters, defaults, environment variable resolution
- Orchestrator: polling, dispatch, concurrency, retries, reconciliation
- Workspace manager: directory lifecycle, hooks, cleanup
- Agent runner: prompt rendering, Codex app-server protocol, session management
- Issue tracker client: Linear API, issue normalization
- Observability: structured logs, optional dashboard
The Bigger Picture
OpenAI built Symphony to solve a specific internal problem. Engineers were context-switching between Codex sessions. Each person could manage three to five sessions before productivity dropped. The bottleneck was human attention, not agent speed.
Symphony shifts the model. Engineers file tickets. Agents pick them up. Engineers review the results. The blog post tells the story of one engineer making three significant changes from a cabin on bad Wi-Fi, filing tickets from the Linear mobile app.
But the lasting contribution is not the orchestrator itself. OpenAI says they do not plan to maintain Symphony as a standalone product. The Elixir implementation is prototype software. The real contribution is the spec and the WORKFLOW.md format.
When the organization that builds the most widely used coding agent publishes a specification that says "agent prompts should be version-controlled files with structured configuration, typed template variables, strict error handling, and hot-reload capability," that is a statement about how prompt engineering should work. It is a statement that prompts are infrastructure, not conversation.
WORKFLOW.md is the third pillar in a stack that is becoming the standard for agent-ready repositories. AGENTS.md gives agents static context. COMPRESSION.md gives agents a budget protocol. WORKFLOW.md gives orchestrators a dispatch contract. All three are plain text. All three are version-controlled. All three are human-readable.
The era of pasting prompts into chat boxes is not over. But the era of prompts-as-code just got its first spec from the company that makes the models. That is the signal worth watching.
Symphony is open source under Apache 2.0 at github.com/openai/symphony. The spec is at SPEC.md. Documentation is at mintlify.com/openai/symphony.