> ## Documentation Index
> Fetch the complete documentation index at: https://docs.burakov.net/llms.txt
> Use this file to discover all available pages before exploring further.

# How it works

> From an idea to a merged pull request — planning, building, judging, and the only two points where you step in.

Remigent works like a responsible senior engineer with a QA team behind them. It doesn't reach for code
first: it plans the whole change, builds it, proves it against reality and only then asks for your
signature. You stand **at the door, not in the loop**.

## The life of a work item

**1. Intake & triage**

Everything you hand it lands in one inbox. Remigent deduplicates it, interprets it and ranks it
against the priorities in your [constitution](https://docs.burakov.net/remigent/projects-and-fleet.md#the-constitution).

**2. Scheduling**

An item starts only when it is worth its cost, fits the [monthly budget](https://docs.burakov.net/remigent/budget.md) and
doesn't collide with other work in flight. Independent work runs in parallel; work that would
collide waits its turn.

**3. Planning**

Remigent estimates, analyses risks, researches whatever it is unsure about, and writes a
complete plan with a cost forecast before any code changes. Larger work is split into a set of
small, dependent steps — each one becomes its own pull request.

**4. Building**

Remigent writes the code and its own tests inside an isolated
[sandbox](https://docs.burakov.net/remigent/security-and-privacy.md#sandboxing), using your build and test commands.

**5. Judging**

An independent judge checks the result on a fresh copy of the exact commit, with checks the code's
author never saw. A failure goes back to be fixed, and the judge verifies the fix again. See [Verification](https://docs.burakov.net/remigent/verification.md).

**6. Pull request**

The verified change is opened as a pull request in your own git host, with the evidence, the
decisions made along the way and the expected impact.

**7. Your merge**

You merge — one by one, or a batch of small, safe changes at once. Your own CI/CD deploys it;
Remigent never touches production.

**8. Watching the result**

After a merge, Remigent can watch the signals you've connected (errors, reviews, analytics) for a
while. If the change made things worse, it opens an urgent revert pull request.

## Where you step in

You touch exactly two points:

1. **Answering an escalation.** When a decision is about *what* the product should be — a value or a
   priority your constitution doesn't cover yet — Remigent asks you once. It never blocks while waiting:
   it parks that part and keeps working on everything else. Your answer is written into the constitution,
   so the same question is never asked twice.
2. **Merging.** Merge is the final acceptance gate and always stays with you.

Everything else — how to implement, which library to use, how to route around an obstacle — Remigent
decides on its own, as long as the change can be undone. When something can't be undone, autonomy pauses:
Remigent prefers to make it reversible (feature flags, migrations that expand before they contract) or asks
you first.

## Trust modes

For each task you choose how much Remigent confirms before acting:

| Mode | What happens |
| - | - |
| **Confirm** — "confirm my understanding" | Remigent shows you every plan and waits for your OK before building. |
| **Usual** — "do it like we usually do" | Remigent follows the decisions already made across your fleet and asks only about goals, taste, money and irreversible steps. |
| **Trust** — "I trust you, proceed" | Remigent decides more on its own; irreversible steps still need you. |

## Your attention is budgeted too

On a fleet, your attention is the real bottleneck. Remigent ranks everything that needs you by risk and
confidence: trivial, safe changes arrive as a quick batch to approve, high-stakes ones get a focused,
individual review. A daily attention budget (30 minutes by default) caps how much it asks of you; the
rest waits without blocking anything. As your constitution matures, the number of things that need you
keeps shrinking.

## When something goes wrong

* **An interruption mid-work** resumes from the last checkpoint or rolls back cleanly — no half-finished
  state is left in your repositories.
* **A defect that slips past the judge and your review** becomes a permanent check, so the same class of
  bug is caught next time.
* **A pattern of failures across several products** stops autonomous work across the fleet and asks you
  before anything continues.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.