# Your first finished ticket

In this tutorial you install rev0, answer its setup wizard, give an agent a small job in a scratch
repo, approve its plan, merge what it wrote, and open the Knowledge Base. It takes about 15
minutes, and follows the same five steps, in the same words, as the Getting started coach on the
board.

## What you will have

- A board running on your machine, set up with the Developer profile.
- A scratch git repo, `hello-rev0`, with a README an agent wrote on its own branch.
- That branch merged, after you annotated and accepted the plan and reviewed the diff.

You need macOS or Linux with `git` and Node.js, and a Claude subscription (or a ChatGPT
subscription for Codex). You sign the agent in from the board.

## 1. Install and start the board

Pick one:

- **The Mac app** on Apple Silicon: install `rev0-macos.dmg` as shown in
  [Install rev0](../how-to/install.md#on-a-mac-the-app) and open rev0 from Applications. It opens
  the board in its own window, already signed in.

- **The Linux app** on x86_64: install `rev0-linux-amd64.deb` or run the AppImage as shown in
  [Install rev0](../how-to/install.md#on-linux-the-app). Like the Mac app, use its window.

- **A single binary** on Apple Silicon macOS or x86_64 Linux: download it and start it as shown
  in [Install rev0](../how-to/install.md#in-a-terminal-the-binary), ending with
  `./rev0-darwin-arm64 serve --with-runner`, then open
  [http://127.0.0.1:8000](http://127.0.0.1:8000). With no token set, the board opens straight
  away on this machine.

Either way, the board opens on the setup wizard, **Welcome to rev0**.

## 2. Answer the setup wizard

The wizard has six screens for the Developer profile. Everything it sets stays editable in
Settings.

1. **You**: type **Your name** (agents call you by it) and, if you like, the **Email** agents
   sign their work with. Under **Name your first board**, type a name for the board. Click
   **Continue**.
2. **Profile**: click **Developer**. It shows you a plan before each ticket runs, lets agents fan
   out on broad work, and turns on the code quality rules and the pre-merge gate. Click
   **Continue**.

   ![The Profile screen with the Explorer and Developer cards](../how-to/img/wizard-profile.png)

3. **AI engines**: on the **Claude** row, click **Install** if it is offered, then **Sign in**,
   then **Open the Claude authorize page**, and approve. The row finishes by itself and reads
   **Ready**. (Using Codex? Do the same on the **Codex** row.) If the installer already signed
   you in, the row says **Ready** straight away. Click **Continue**.
4. **Review agent**: leave it on **Off**. Click **Continue**.
5. **How it works**: read the four steps. Click **Continue**.
6. **Account**: click **Skip and finish**, under the sign in. The board opens without a rev0
   account, and you can sign in later under **Settings**, **General**, **Account**. Leave
   **Send usage and error reports** unticked or tick it, as you prefer: it is optional, and
   nothing is sent unless you tick it.

The board opens, with a small tip pinned next to the **Settings** button: **Point the board at
your code**, **Basics · step 1 of 5**. That is the Getting started coach. It rings one control
at a time, follows you into the window a step opens, and moves on by itself once the board sees
you did the step. The rest of this tutorial follows it.

To learn what the other profiles change, read
[Choose a profile, and change it later](../how-to/pick-a-profile.md).

## 3. Point the board at your code

Agents need a git repository to work in. In a terminal, make an empty one:

```bash
mkdir hello-rev0 && cd hello-rev0 && git init && git commit --allow-empty -m "start"
pwd
```

The empty commit gives the agent's branch something to start from. Copy the path `pwd` printed.

> [!TIP]
> If `git commit` stops and asks who you are, set an identity once with
> `git config --global user.name "Your Name"` and
> `git config --global user.email "you@example.com"`, then run the line again.

Now make it the board's default:

1. In the coach's tip, click **Open Settings**. Settings opens on this board's settings, and the
   tip rings **Default working directory**.
2. Paste the path into **Default working directory**. The tip moves to **Save changes**.
3. Click **Save changes**, then close Settings.

**Result:** the coach moves on to **Create your first ticket** and rings the **Create** button.
Every new ticket now starts in `hello-rev0`.

## 4. Create your first ticket

1. In the coach's tip, click **New ticket** (or click **Create**, a **+** on narrower screens).
2. In the **Create ticket** form:
   - **Summary**: `Add a README that says what this repo is`
   - **Description**: `One short paragraph: this is a scratch repo for trying rev0.`
   - Open **Ticket settings**: everything below is inside it.
   - **Working directory**: already filled in with your `hello-rev0` path.
   - **Mode**: it starts on **Interactive plan**, the default for every profile. For this
     tutorial pick **Plan (verbose text plan first)**, a text plan you can annotate line by
     line.
   - **Column**: leave it on **To Do (queued for the agent)**.

   ![The Create ticket form with the Mode list open](../how-to/img/create-form.png)

3. Click **Create**.

**Result:** the card appears in **To Do**, and within a few seconds the runner claims it and moves
it to **In Progress**. Click the card to open it:

- The **Activity** tab fills with the agent's work as it happens: it reads the repo and drafts a
  plan. In a plan mode it cannot edit files yet.
- The **Details** tab shows, under **Workspace**, the agent's own branch, `agent/ticket-<id>`, in a
  worktree next to your repo (`hello-rev0.agent_worktrees/`). Your `hello-rev0` checkout is untouched.

## 5. Approve a plan

When the plan is ready, the card moves to **Your turn**, the column of everything that waits on
you, and the coach rings it: **Approve a plan**.

> [!NOTE]
> The bell counts it too. The first time you open the bell, the board asks to show desktop
> notifications; allow it, and the next plan pops up even while the board is in another tab.

1. Open the ticket. Its **Plan** reads **awaiting sign-off**.
2. Select a few words of the plan. In the toolbar that appears, click **Comment**, and write
   `Mention that it was written by an agent.`

   ![A text plan with a comment attached to the selected words](../how-to/img/plan-annotate.png)

3. Click **Send to agent** in the bar under the plan.

**Result:** the agent revises the plan with your note, and the ticket comes back to **Needs
you**. Read the new plan, then:

4. Click **Accept plan**.

**Result:** the ticket switches to **Auto** and goes back to **To Do**; the agent claims it again,
writes the README and commits it on its branch. The coach moves on to **Merge a ticket**.

Under **Accept plan**'s arrow are **Execute by subagent** and **Execute by loop** (for splitting a
big plan into several agents), and beside it **Request changes**, which sends the plan back with
a message instead of accepting it. [Review and annotate a plan](../how-to/review-a-plan.md) covers them.

> [!NOTE]
> If the ticket stops in **Your turn** asking to use a tool instead, that is the
> permission gate at work: see [Approve a tool request](../how-to/permission.md).

## 6. Merge a ticket

Before the ticket settles in **In Review**, the board runs its verification checks in the
worktree. With the Developer profile these include the **Code quality gate**, which checks the
coverage, complexity and lint of what the change touched. A README passes it quickly.

When the card reaches **In Review**, the coach rings that column. Open the ticket:

- The bar under the header reads **Ready for your review.**
- On the **Changes** tab, **Files** shows exactly what the agent changed: a new `README.md`.
- **Commits**, further down, lists the commit it made on its branch.
- **Verification checks**, at the top of that tab, show the checks as passed.

![The In Review ticket, its bar reading Ready for your review with Request changes, Review diff and the Merge button](../how-to/img/in-review-merge.png)

1. On the bar, click **Merge**.
2. In **Merge branch**, click **Merge**.

If a check is still running, the board asks first: **Wait for verification** is the safe answer.

**Result:** the branch lands in your repo's base branch, and the ticket stays in **In Review** so
you can try the change first. Back in the terminal:

```bash
git log --oneline
cat README.md
```

The agent's commit is in your history, and the README is in your working tree. When you are
happy, drag the ticket to **Done**.

## 7. Open the Knowledge Base

The coach's last step rings the **Knowledge** tab in the header: **Open the Knowledge Base**.

1. In the coach's tip, click **Open it** (or click **Knowledge**).

**Result:** the Knowledge Base opens. This is where agents file the conventions and gotchas they
learn, so the next run does not rediscover them. A page an agent proposes waits for your review
before it goes live. [Keep what agents learn](../how-to/knowledge-base.md) shows how to use it.

That completes the coach's first chapter. Click the **Getting started** pill at the bottom right
of the board to open its checklist: each step with a link to its guide, **Up next** with a
**Start** button for chapter 2 (steering a running agent), and **Go further**. If you clicked
**Hide** earlier, the same checklist shows where you are, with **Show me** on the current step.

![The Getting started checklist for chapter 1: two steps ticked, Show me on Approve a plan, a guide link under every step, and Go further links](../how-to/img/coach-checklist.png)

## You can

- [ ] Install rev0 and answer its setup wizard.
- [ ] Sign an agent CLI in from the board.
- [ ] Point the board at a repository with a default working directory.
- [ ] Create a ticket in a plan mode, so the agent waits for your sign off.
- [ ] Annotate a plan, send it back, and accept it.
- [ ] Read an agent's diff and commits, and merge its branch.
- [ ] Find the Knowledge Base, where agents keep what they learn.

## Next

- [Run tens of agents at once](parallel-agents.md) runs several tickets side by side on one repo.
- [Write a ticket an agent can finish](../how-to/write-a-ticket.md) turns the next idea into a
  ticket that needs no follow up.
- [How rev0 works](../explanation/how-rev0-works.md) follows a ticket through the same steps,
  including the parts this tutorial skipped.
