~/pronoia $ pronoia explain --coding

Coding with Pronoia. A dev team that opens its own pull requests.

Give a coding job to the team and it runs like a good engineering team does. A Builder agent makes the change on the project's coding Computer and opens a pull request. The checks that change needs run by themselves. A Reviewer agent checks the work. Safe changes merge on their own, and risky ones wait for a person. Every step lands on the Work item.

Status marks: live on app.pronoia.sh, on dev on our dev server and shipping in a coming release, projected agreed, not running yet. Today this loop runs on our dev server, where we use it to build Pronoia.

The loop on dev

The coding loop: a Work item goes to the Builder on the coding Computer, which opens a pull request through the broker. The named checks are chosen from the changed paths, and a Reviewer agent gives pass or hold. Hold goes back to the Builder on the same pull request. On pass, a change with no risky path merges on its own; a risky one waits for a person. Either way the project's dev environment rolls. The code index feeds the Builder, and everything lands on the Work item. Work itemthe job andits record Builderon the codingComputer Pull requestrepo pr, throughthe broker Named checkschosen from thechanged paths Revieweranother agent:pass or hold Risky path?sign-in, money,keys, migrations hold: the Builder fixes it on the same pull request yes no A personmerges it fromthe card Auto-mergeon its own, whenthe checks pass The project's dev environment rollsnever production; that's a person's call Code indexsearch by meaning and by keyword,with this branch's own changes on top reads On the Work itemThe pull request, each check's receipt, the verdict and everymerge notice. The next agent starts by reading it.
The Builder never merges its own work, and the Reviewer is always another agent. Code decides what merges; no agent's words can.

A project, its repo and its coding Computer

  • A Project groups the Work items for one goal, with the repository they change.
  • One owning team per Project projected You ask in that team's channel, and its Lead hands the job to the right agent.
  • A repository joins the workspace through Pronoia's GitHub app. Agents check it out on their Computer from a cached clone, one worktree per job.
  • The coding Computer on dev is a full Linux machine where the Builder edits, installs, tests and runs a preview of the app. Today Pronoia's own project has one.
  • One coding Computer per project projected Each project gets its own, so one project's work and keys never touch another's.
  • "Install this GitHub project" projected Ask, and the agent clones it, installs it, runs it and hands you a working preview link, like a teammate on a laptop would.

The Builder opens the pull request on dev

The Builder is an agent with a coding Skill and a Computer. It works on a branch made just for its job. When it's done, it asks Pronoia's daemon to push that one branch and open the pull request. The agent never holds a GitHub key. The broker makes each push and pull request with a short-lived grant, and only for this job's own branch.

# the Builder's run, on the project's coding Computer
$ pronoid repo checkout
# edit, run the tests, then see which named checks this diff needs
$ node scripts/qa-checks/qa.mjs required
$ pronoid repo pr "Empty state on the Work page"
# pushes only this job's branch, then opens the Work item's pull request

If the item already has an open pull request (after a hold, or when a new Builder picks it up), the checkout starts at that pull request's head and repo pr updates it. It never opens a second one. The command line is still called pronoid; it becomes pronoia with the rename.

The checks choose themselves on dev

A repository says in its AGENTS.md which paths need which named checks. Pronoia reads the pull request's changed files against that map itself, on the default branch, and never takes a run's word for it. The merge waits until each required check has passed at the pull request's latest commit, unless a person merges anyway and names the check they skipped.

Pronoia's own repository uses four named checks:

CheckWhat it proves
QA-A11YEach changed screen passes an accessibility check at phone (390 px) and desktop (1440 px) width, and can save before-and-after screenshots.
QA-CONTRACTThe API still matches its published contract.
QA-PERFTwenty requests to a page, with the slowest 5% under 800 ms.
FRESH-RETRY-CHECKA failed check runs once more on a fresh checkout. A pass there is marked flaky, not passed.

A check that couldn't run is recorded as not run, never as passed. Pronoia reads each command and its exit code from the run's own log into the item's receipts.

The Reviewer checks it on dev

The Reviewer is a different agent from the Builder. It reads the diff, the checks and the Work item, then gives one verdict on the exact commit it reviewed: pass or hold. Pronoia posts the verdict on the pull request as a review. A hold sends the job back to the Builder, which fixes it on the same pull request, and the Reviewer looks again.

Safe paths merge on their own on dev

An owner or admin switches auto-merge on for a project. After that, a passing review merges the pull request only when every rule holds:

  1. The verdict came from an agent that didn't build the change.
  2. The pull request still points at the commit that was reviewed. A later push needs a fresh review.
  3. No changed file is on a risky path: sign-in, billing and payments, secrets and tokens, database migrations or the build workflows.
  4. No check failed, and none is still running.
  5. GitHub says it can merge.

Anything else waits for a person, with a note on the Work item saying why. After a merge, the project's dev environment updates, if it has one. Production only ever moves when a person says so.

The code index on dev

Agents search a project's code with one tool, search_code. Under it, two searches run at once and their results are merged:

  • By meaning. Each piece of code is turned into an embedding, a list of numbers that captures what it does, so "where do we check the invite code" finds the right function even when no word matches. The embeddings come from OpenAI's text-embedding-3-small, or, with no OpenAI key, from a small open model (bge-small-en-v1.5) that ships with Pronoia.
  • By keyword. Postgres full-text search catches exact names, error messages and identifiers.
  • Merged by rank. The two lists are combined with reciprocal rank fusion, so a result that ranks well in both comes first.

Code is split at the top of each function, class or type, at most 80 lines a piece, and documents are split at their headings. Personal data is scrubbed out before anything is stored. Each workspace's index is its own. When a branch changes some files, only those files are indexed again for that branch, so a Builder searching its own branch sees its own changes on top of the main code. With no model to embed, search falls back to keywords and says so.

Work items are the record

A coding job is a Work item like any other. The request, the Builder's runs and comments, the pull request link, each check's receipt, the Reviewer's verdict and the merge notice all land on it. The next agent that picks the job up starts by reading the item, not by guessing. You can read the same record, on any device.

Milestone: Pronoia builds Pronoia on dev

In the week of September 28, 2026, the first change to Pronoia went all the way through Pronoia: a Builder agent made it on the coding Computer and opened the pull request through the broker, a Reviewer agent passed it, and it merged on its own. Our first test pull requests merged the same way. Auto-merge is on for Pronoia's own repository now, and risky paths still wait for a person.

The goal is the whole loop: a bug report in a chat becomes a Work item, the team fixes it, and the answer comes back to the same thread.