Context
is king.
Pragma is an open-source, local-first editor for writing and creative work, where AI tools live and evolve alongside your content.
How it works
Documents, data, and the tools, workflows and small apps that act on them are all plain files in one space that you own, can keep in git, and can open with anything else.
Text. Markdown documents and Fountain screenplays, with wikilinks, a reading view and side-by-side editing.
Tables. Rows with typed columns, edited as a grid: shared data your tools reference instead of duplicating.
Classes. Notes, screenplays and media from chosen folders, gathered by a filter and shown as rows. The Flows a Class links become buttons on every document it holds.
Flows. Graphs of typed nodes — load a note, generate text, replace the selection — run from a canvas, a button in a document, the command line or an agent.
Applets. Small sandboxed apps with their own interface, for whatever no built-in node anticipates.
An open protocol defines every format, so nothing is locked inside the app.
Features
AI builds the tools.
You hold the keys.
Pragma's tools aren't built into the editor. They're documents in your space that you build with AI, and they reach your files and models only through access you approve.
A copilot that proposes. A chat panel that works on whatever is on screen. Its edits and new documents are proposals: nothing changes until you accept them.
Your choice of model. Anthropic, OpenAI, Google Gemini, or any OpenAI-compatible server, including local ones like LM Studio and Ollama.
Explicit permissions. Flows ask before they read a document, write one or call a model, and every approval can be revoked. Change what a Flow does, and its approvals are withdrawn.
Sandboxed Applets. An Applet touches nothing on its own. What reaches it comes through a Flow, so you approve a graph you can see, not code you would have to read.
Open to your agents. Claude Code, Cursor and other MCP clients can read and search your space and run the Flows you allow. It’s off until you turn it on, local-only and token-gated.
Git and publishing. Commit, pull and push your space from inside the editor, and publish a folder of Markdown documents as a website through Sogma.
Your files.
Your models.
Your tools.
Pragma is open source and runs on your own machine, as a desktop app for macOS, Windows and Linux, or as a web app you can reach safely from your other devices.