How it works

From a prompt to a live app.

Your agent writes the app as files. Cori proves them, gives every release a preview of its own, and waits for a person before anything goes live.

What Cori gives you

  • 01

    Not a prototype. The app.

    Durable workflows, a Postgres store with rules for each role, approvals and an audit trail, at an address your team signs into. Nothing to rewrite when everyone starts using it.

    workflows · store · approvals · auditPrototype vs production →
  • 02

    Keep your agent.

    Claude Code, Codex, Cursor, Copilot, Gemini CLI or any agent with a shell. Cori plugs into the one you already pay for: no new AI to buy, no new editor to learn.

    plugin · cli · mcpSupported agents →
  • 03

    The agent thinks once.

    Your agent works out the process. Cori runs it as code: the same path every run, checked before it ships, with a model only where you put one.

    design time → run timeSee the benchmark →
The release

Four moves.
The last one is yours.

your agent · ~/team-requests

> Build our purchase requests app. Anyone on the team files a request. Up to 100 € a rule approves it; above that, or for travel, a manager decides.

⏺cori(create_app team-requests)mcp
⏺Write(workflows/submit_request/workflow.yaml)
⏺Write(workflows/submit_request/steps/triage.ts)llm
⏺Write(workflows/submit_request/steps/route.ts)code
⏺Write(workflows/submit_request/steps/approval.ts)human
⏺Write(stores/requests/migrations/0001_init.sql)store
⏺Write(stores/requests/roles/manager.yaml)store
⏺Write(front/src/views/Approvals.tsx)front
⏺Bash(cori check .)0 warnings

⏺ One workflow of six steps, a store whose rows belong to who filed them, and three screens. Managers see everyone’s requests. Deploying a preview next.

Prototype vs production

The UI was the easy part.

A coding agent writes a convincing internal tool in an afternoon. What it can’t hand you is the part that has to hold on Monday: a request that waits days for a manager, data each person may or may not see, and a record of who changed what.

Agent-built prototypeOn Cori Cloudruns

Prototype: Die with the request, or with the laptop.

On Cori Cloud: Durable on Temporal: a run can wait a week for a decision, survives every deploy, and retries the step that failed.

decisions

Prototype: The model decides again on every run.

On Cori Cloud: Rules live in typed TypeScript. A model step answers to a fixed schema, and the decision stays in code you can read.

access

Prototype: One API key, and everyone sees everything.

On Cori Cloud: People sign in. Each role gets its screens, rows and columns, from rules in the app’s folder.

changes

Prototype: Edited in place, and hoped for.

On Cori Cloud: Every release is checked, previewed on its own sandbox data and made live by a person. Rolling back is one click.

Your agent

Works with the agent you already pay for.

Claude Code gets Cori in one plugin. Any agent that runs a shell works too: the cori command line, and an AGENTS.md in every app that tells it the rules.

  • Claude Code
  • Codex
  • Cursor
  • GitHub Copilot
  • Gemini CLI
  • Cline
  • OpenCode
  • Conductor

+ any agent with a shell, or an MCP client

Design time · run time

The agent thinks once. Cori runs it every time.

An agent is brilliant at finding a path and unreliable at repeating it. We gave fresh agents ten ordinary multi-tool tasks, three times each, then replayed the workflows Cori had captured from them.

Fresh agent · same task, three runs

b1 · support inbox triage · tool calls

  1. run 19passed
  2. run 226
  3. run 326
tokens
370k · 469k · 436k
minutes
1.90 · 2.18 · 2.22

The 9-call run passed. A 26-call run missed a required digest and failed. Same task, same fixtures.

Cori · the captured workflows, replayed
trials passed, across all ten tasks
30/30
activities, every one on its first attempt
294
model tokens at run time
0
an average run, against 100.6 s for fresh agents
13.5 s
cori13.5 s
fresh agent100.6 s

Run to run, fresh agents varied by a median 23.4% in tool calls, 13.9% in tokens and 11.3% in time. Ten Google Workspace tasks on synthetic fixtures, three trials each: a small sample, reported as measured. Read the benchmark →

The app is code

Real code, not a prompt.

Every organization starts with this app: a model sorts each request, a rule approves up to 100 €, a manager decides the rest. Your agent writes the same shapes for yours, and your team reviews them like any other code.

codeworkflows/submit_request/steps/route.ts

The decision is a rule over typed data, in plain TypeScript, never the model's.

import { step } from "@cori-do/sdk";
import type { Ctx } from "../.cori/context";
import { z } from "zod";

/** Requests up to this amount are approved by the rule; above it,
 *  or for travel, a person decides. */
const APPROVED_BY_RULE_UP_TO_EUR = 100;

// The decision is a rule over typed data, never the model's.
export default step.code({
  name: "route",
  description: "Approve by the rule, or ask a manager",
  input: (ctx: Ctx<"route">) => ({
    amount_eur: ctx.params.amount_eur,
    category: ctx.steps.triage.category,
  }),
  output: z.object({ needs_approval: z.boolean(), reason: z.string() }),
  run: ({ amount_eur, category }) => {
    if (category === "travel")
      return { needs_approval: true, reason: "Travel is always approved by a person" };
    if (amount_eur > APPROVED_BY_RULE_UP_TO_EUR)
      return { needs_approval: true, reason: `Over ${APPROVED_BY_RULE_UP_TO_EUR} €` };
    return {
      needs_approval: false,
      reason: `Up to ${APPROVED_BY_RULE_UP_TO_EUR} €: approved by the rule`,
    };
  },
});
Step kinds+ branch · switch · map · loop · try · wait
code
TypeScript over typed inputs: rules and decisions
llm
one model call, a fixed schema, a cost tier
store
the app’s Postgres, through its rules
human
an approval or an answer, routed to a role
http
an API behind a connector your org declared
mcp
one tool of an MCP server your org connected
cli
an allow-listed program, in a sandbox
activity
your own Temporal code: Go, C#, Java…
workflow
another workflow of the app, as a child
Run time · your team

Your colleagues get an app, not a repo.

The live app has its own address and its own sign-in. People see the screens and rows their role allows, managers decide from an inbox, and every run keeps its steps, its inputs and who decided.

People and roles
Invite your team and give each person roles in each app. Share one app with someone outside as a guest, once an admin agrees.
Approvals
Human steps wait in an inbox, routed to a role, with a deadline and what happens when it passes.
Audit trail
Runs started, decisions taken, releases deployed and made live, access granted: each one recorded with who and when.
Data
Each store opens as a sheet of the rows and columns your role reaches, and no others.
app.cori.do · console
Team Requests● Live · v1
OverviewReleasesRunsDataAccess
Submit request● Runningsubmit_request-d6d9b13b50e7…
Waiting for a managerTrain tickets Paris–Lyon · 240 € · from alice@acme.comDecide
  1. ✓Triagellmsmall tier · 812 tokens · travel1.6 s
  2. ✓RoutecodeTravel is always approved by a person9 ms
  3. ✓Recordstorerequests · createRequest58 ms
  4. Approve requesthumanmanager · 7 days, then declinedwaiting
  5. Decidecode
  6. Closestore