Noteline

← All posts

6 min read

AI Orchestration with Markdown Files

AI orchestration coordinates multiple AI steps, agents, and tools toward one outcome. Plain Markdown files give it a durable, readable control layer.

AI orchestration is the practice of coordinating several AI steps, agents, and tools so they work toward one outcome instead of running in isolation. The simplest control layer for that coordination is a set of plain Markdown files: a spec the AI reads, a context file it pulls from, and an output folder it writes to. You own the files, you can read them, and any model or tool can use them. The rest of this post shows why that works, gives you three patterns to start with, and names the honest limits so you do not over-trust the approach.

What is AI orchestration, exactly?

AI orchestration means arranging multiple AI operations into a sequence or a graph that produces a result. A single prompt is not orchestration. Orchestration starts when you have steps that depend on each other: research, then draft, then critique, then revise. Or when you split work across agents: one summarizes, one fact-checks, one formats.

Every orchestration needs a few things to function:

  • Instructions: what each step should do, in what order, with what rules.
  • Context: the background, facts, and constraints the model needs to act well.
  • State: what has happened so far, what is decided, what is still open.
  • Outputs: the actual artifacts each step produces.

You can keep these four things inside an app's hidden database, or you can keep them in files you can open. The argument here is that files win for most people doing real work.

Why do plain Markdown files make a good control layer?

Markdown is text with light structure: headings, lists, tables, code blocks, links. Models read it natively because a large share of their training is Markdown, and humans read it without any tooling. That dual readability is the point. When the same file is legible to you and to the AI, the gap between "what I asked for" and "what it saw" closes.

Compare the two ways of holding orchestration state:

Property Files (Markdown) Opaque app state
You can read it directly Yes, in any editor Often no, it is hidden
You can edit a step by hand Yes Rarely
Version history with diffs Yes, via Git Depends on the vendor
Works across tools and models Yes Locked to one app
Survives the app being shut down Yes No
Easy to grep, copy, back up Yes No

The deeper reason is durability. When orchestration state lives in files, the run is inspectable. You can see exactly what the model was told, change one line, and re-run. When something goes wrong at step four, you read steps one through three. The cause is on disk, not buried in a vendor's internals, which is the same case for keeping notes as plain Markdown files.

What does a file-based AI workflow look like in practice?

Here are three patterns you can adopt today. None of them require special software. They are just files in a folder.

The plan file

Write a plan.md that states the goal, the steps, and the rules. The AI reads it before acting, and you both treat it as the source of truth for the run.

# Goal
Turn the raw interview notes into a 1,200-word article.

# Steps
1. Extract the three strongest claims into claims.md
2. Draft the article in draft.md using only those claims
3. Critique the draft in critique.md (tone, accuracy, length)
4. Revise into final.md

# Rules
- No invented quotes. Cite the source line for every claim.
- Plain American English. No hype words.

The plan file is where you do your thinking before the model does its generating. This is close to what people now call context engineering: deciding deliberately what goes into the model's window instead of dumping everything and hoping. A plan file is a small, honest version of that. More on the idea in context engineering with files.

The context file

Keep a context.md with the stable facts the model should always have: product details, your voice, constraints, terms to avoid. Instead of re-explaining yourself in every prompt, you point the agent at one file. When your situation changes, you edit the file, not a dozen prompts.

A good context file is short and current. If it grows stale, the orchestration quietly degrades, so treat it like a living document, not a dump.

The output folder

Give the run a folder and let each step write a named file: claims.md, draft.md, critique.md, final.md. The folder becomes a paper trail. You can read any intermediate artifact, hand-edit it, and continue from there. If the draft is wrong, you fix draft.md and re-run the critique step against your edit. Nothing is buried.

This separation of files also keeps each step focused. A critique step that reads only draft.md and the rules cannot get distracted by the raw notes. You control what each step sees by controlling what you give it.

Why do files beat opaque app state for orchestration?

The strongest argument is control. When an AI tool holds your workflow inside its own state, you depend on that tool to show you what happened, to let you edit it, and to keep existing. Files remove that dependency.

A few specifics:

  • Reproducibility. A folder of Markdown files is a record you can re-run, share, or archive. The inputs are visible, so the outputs are explainable.
  • Composability. Because files are tool-neutral, you can move a workflow between different AI assistants and coding agents without rewriting it. The same control layer works no matter which model reads it.
  • Versioning. Put the folder in Git and you get a full history of every change with readable diffs. You can see what the AI changed and roll back a bad step.
  • Inspectability. Grep across the folder, open a file at 2 a.m. without launching anything, back it up like any other text. The workflow is just data on disk.

There is also a quieter benefit. Working this way forces you to write down what you actually want. Vague goals produce vague files, and vague files produce bad runs, so the format pushes you toward clarity. That is good discipline whether or not a model is involved.

What are the honest limits?

Files are a control layer, not magic. Be clear-eyed about the trade-offs.

  • Coordination still needs a runner. Files hold instructions, context, and state, but something has to execute the steps in order, whether that is you copying between files or a script driving an agent. The files do not run themselves.
  • No real-time locking. If two agents write the same file at once, you can get conflicts. For parallel work, give each step its own output file and merge deliberately.
  • Long context is still finite. A huge context file can blow past a model's window or bury the important parts. Smaller, targeted files usually beat one giant document.
  • Plain text is not a database. For high-frequency structured data, querying, or strict schemas, a real database is the right tool. Files shine for human-readable specs, context, and outputs, not for millions of rows.
  • You still have to read the outputs. File-based orchestration makes the work inspectable, but it does not check it for you. Models still make things up. The paper trail only helps if you actually read it.

None of these break the approach. They just mark where it ends. For most writing, research, and document work, a plan file, a context file, and an output folder cover the job.

Where to start

Pick one repeatable task you already hand to an AI assistant. Write a short plan.md and a context.md for it, make an output folder, and run it once by hand, step by step, with each result saved as its own file. You will immediately see which instructions were unclear, because the files make the gaps visible.

Because the whole control layer is just .md files, you want an editor that opens a plain folder of Markdown, renders tables and code, and never traps your work in a proprietary format. Noteline does exactly that: your notes and workflow files are plain text on your disk, yours to read, edit, and keep. The files are the point, and the files are yours.