Prom is a programming language for the AI era. You write the skeleton with strict English keywords: modules, types, branches, inputs and outputs. You write the logic in plain language, in any language. The runtime routes between prompts deterministically and gives every step only the context it needs.
module Support
use Billing from "./billing.prom"
use Bugs from "./bugs.prom"
enum Category { billing, bug, other }
fn handle(ticket: Ticket) -> Reply:
step classify(ticket) -> Category using fast:
Read the ticket and decide which group the customer's problem belongs to.
Only use what the customer wrote. Do not guess.
match classify:
billing -> return Billing.handle(ticket)
bug -> return Bugs.handle(ticket)
other -> return General.handle(ticket)
examples:
"crash reports go to Bugs":
input: { ticket: { subject: "App crashes on login", body: "..." } }
given: { classify: bug }
path: classify > Bugs.handle.summarize
Models write code quickly now. What still takes work is saying exactly what you want, and knowing which part of a program a model decided and which part you did.
.prom file is the program. There is no second codebase behind itmatch and if pick the pathThis is the design in the M0 spec. None of it is implemented yet.
A step returns a typed value. match picks the next prompt. Given the same input and the same earlier outputs, the next prompt is always the same one. The model's wording can differ; the path cannot.
Each step sees its own prompt, its arguments, and the knowledge it asks for. Nothing else. Importing a module reads its signatures, not its prompts. A program with a hundred steps still sends each call a single step's prompt.
Keywords are English and fixed. Prompts and descriptions are yours: Vietnamese, Japanese, English, or mixed in the same project.
examples assert which prompts an input flows through. given pins model outputs, so routing tests run offline, free and stable.
Each step records its context, output, tokens and cost. Because only steps are non-deterministic, feeding the recorded outputs back in reproduces the whole run without calling a model.
prom.aiProvider.anthropic(...) is the first one. Each step picks its model with using, so classification can run on a small fast model and the customer reply on a larger one.
The first compiler and runtime are written in Rust, until prom can compile itself.
prom checkprom runprom trace and prom replayprom testprom serve, then full applications and a self-hosting compiler