State the requirements. Reuse and combine contracts.
Quickstart ·
The language ·
Examples ·
Harnesses ·
Honest status
What this is
Contract authoring is
expressing intent by composing requirements. Reusable contracts provide the
building blocks; composition determines how their requirements apply together.
An agent performs the work, and an evaluator assesses whether the contract’s requirements are satisfied. The executor returns a result that includes the evidence needed for that assessment. Execution and evaluation repeat as needed.
This public repository supplies the Contract Markdown and ProseScript
format, the open-prose skill, and reusable libraries. A responsibility
expresses requirements for state maintained over time. A function performs a
one-time call. ProseScript specifies required steps when their order or method
matters. See requirements and composition
for how these fit together.
Contracts are readable *.prose.md files. A compatible agent harness runs them
using the skill and its own tools. The requirements remain the reference for
success; execution depends on the host's inputs, capabilities, and permissions.
Serving a standing responsibility requires a host that supports continuous
operation. See Harnesses and Honest status.
Run it where your agent lives
The fastest way to touch the language is the skill:
npx skills add openprose/prose
That installs OpenProse into any Prose-Complete coding agent (Claude Code, Codex CLI, OpenCode, and friends). From there, point your agent at a contract and say prose run <file>: the session itself embodies the VM; there is no separate binary. The examples/ directory is the tour; start small and read the contract before you run it.
For a new program, say prose init, then use prose compose to shape its
purpose, topology, contract boundaries, and outside-in semantic tests. Compose
progressively materializes one directory package; use prose write when a
single contract is already understood and needs focused authoring.
Your first contract is a Markdown file away: kind: responsibility frontmatter, a ### Goal that states what should stay true, and the sections below. The skill teaches your agent the rest.
The language: Responsibilities
You author Responsibilities, standing goals written as Markdown contracts. This is where the declaration becomes concrete:
### Maintains is the world-model schema: what truth this node keeps current, which fields are material (and so move the fingerprint, the content hash the runtime compares to decide whether work reruns) vs immaterial, optional #### facets that split the truth into independently-subscribable parts, and the postconditions a render must satisfy before it may commit.
### Requires names the upstream facets this node subscribes to. Forme (the wiring layer) matches Requires.<facet> ↔ Maintains.<facet> and draws the subscription edge. Structure is subscription; the graph wires itself from the contracts.
### Continuity declares the wake source: input-driven by default, self-driven on a freshness cadence, or external-driven (a gateway turning an ingress event into an edge).
Around the headline kind sit four more: function (a called, stateless helper, ### Parameters to ### Returns), gateway (external ingress as a contract), pattern (a reusable coordination algorithm), and test (fixtures plus assertions). Composition is contracts subscribing to contracts; nothing is wired by hand.
The deep truth lives in the skill (skills/open-prose/) and the spec (spec/): the vocabulary, the section grammar, the execution semantics. This page is the door, not the manual.