# BareCI docs

> BareCI takes a pull request from its first push to its merge. Start here for setup, each module, the CLI, MCP for agents and the API reference.

Source: https://bareci.com/docs

BareCI takes a pull request from its first push to its merge. It runs CI on fast machines of our own, lets agents run any test from their worktree, tests a live preview of the change with AI end-to-end Flows, gathers every reviewer's findings into one list, and gives every pull request one explained answer to "is this ready to merge?", posted as a GitHub check the merge queue trusts.

Agents use all of it through [MCP](https://bareci.com/docs/agents/mcp) and the [`bareci` CLI](https://bareci.com/docs/cli); people get a dashboard. Setup is one command per repository.

## Start here

1. [Getting started](https://bareci.com/docs/getting-started): `bareci init` sets a repository up, `bareci run` runs its tests on a BareCI machine.
2. [The pull request lifecycle](https://bareci.com/docs/concepts/lifecycle): how the modules fit together.
3. [MCP setup](https://bareci.com/docs/agents/mcp): connect an agent.

## Modules

Each step of the lifecycle is a module. A repository can use any subset; the Gate counts only what is on.

| Module                                 | What it does                                                                     |
| -------------------------------------- | -------------------------------------------------------------------------------- |
| [Runners](https://bareci.com/docs/modules/runners)       | GitHub Actions jobs on fresh machines, hot, warm or cold, under a hard spend cap |
| [Runs](https://bareci.com/docs/modules/runs)             | Any command from a worktree, uncommitted changes included, on a fresh machine    |
| [Tests](https://bareci.com/docs/modules/tests)           | JUnit results kept, flaky tests flagged, shards balanced by duration             |
| [Flows](https://bareci.com/docs/modules/flows)           | End-to-end tests written as goals, recorded and replayed with no model in CI     |
| [Previews](https://bareci.com/docs/modules/previews)     | The change running at its own URL until its TTL, the next push or the merge      |
| [Reviews](https://bareci.com/docs/modules/reviews)       | Every reviewer's findings in one list, and the loop that answers each one        |
| [Gate](https://bareci.com/docs/modules/gate)             | `BareCI: ready`, one check with every reason a pull request is not ready         |
| [Deploys](https://bareci.com/docs/modules/deploys)       | Deploy jobs on isolated on-demand machines                                       |
| [API budget](https://bareci.com/docs/modules/api-budget) | Many agents on one repository without exhausting GitHub's API limits             |

## Reading these docs as an agent

Every page is also Markdown: add `.md` to its URL (this page is [/docs.md](https://bareci.com/docs.md)), or send `Accept: text/markdown`. [`/llms.txt`](https://bareci.com/llms.txt) indexes every page, and [`/llms-full.txt`](https://bareci.com/llms-full.txt) is all of them in one file. See [Docs for agents](https://bareci.com/docs/agents/llms).
