# Guides

Each guide does one job, such as connecting a real model, getting checked data back, running
a harness as a service or reading a recorded run, and leaves you with working code for it.
This page groups the guides by goal so you can go straight to yours.

- **You will be able to:** pick the guide for your job, and see which part of gvn it works
  on.
- **Read first:** the [quickstart](../quickstart.md), whose picture this page reuses.
- **Time:** about 3 minutes.

New here? [Run your first agent](../start.md) offline, then take
[The short path](shortcuts.md) and [Using a vendor model](vendors.md): together they bring
that agent to a real model with a policy of your own. For an ordered route through the whole
site, see [Choose your path](../paths.md). Coding agents start at
[For coding agents](../for-agents.md).

## Where each guide fits

The quickstart drew gvn as one loop. The **governor** drives a run: it records each
**event** (something that happened) in the **journal**, feeds it to the **actor** (a
[state machine](../reference/glossary.md#state-machine) with a job, such as an agent), and
hands the work the actor asks for to a **fulfiller**: one for the model, one for the tools,
one for the **policy** (your rule for whether a tool call may run, or must first be approved
by a person). The same picture, with each guide placed on the box it extends:

```mermaid
flowchart LR
    you(["You, or your application"])
    person(["A person who approves"])
    subgraph run ["One run"]
        direction TB
        governor["<b>Governor</b><br/>Running as a service<br/>Logs, traces and streams<br/>Spending and rate limits"]
        actor["<b>Actor</b><br/>Designing a large harness<br/>Structured answers<br/>Model-backed choices<br/>Fan-out over items<br/>Different kinds of child<br/>Undo that the verifier checks"]
        governor -- "event" --> actor
        actor -- "request" --> governor
    end
    fulfillers["<b>Fulfillers</b><br/>model: Using a vendor model<br/>tools and policy: A coding agent"]
    journal[("<b>Journal</b><br/>Replay and evaluation<br/>Inspecting a run<br/>Forking a run<br/>Self-improvement")]
    you -- "The short path: run_agent<br/>Diagrams and diffs" --> governor
    governor -- "request" --> fulfillers
    fulfillers -- "event" --> governor
    governor -- "records" --> journal
    governor -- "asks" --> person
    person -- "event" --> governor
```

The arrow from you to the governor carries the guides about how you build and start a run
and how you review its machine before it runs.

## Guides by goal

Each table names what you will have at the end of the guide, and the box of the picture it
works on. A guide lists what it builds on under "Read first".

### Get one agent working

| Guide | What you will have at the end | Box |
|---|---|---|
| [The short path: `run_agent`](shortcuts.md) | An agent with your own functions as tools, run with one call, with a policy and a person who approves. | You → governor |
| [Using a vendor model](vendors.md) | That agent running on Anthropic, OpenAI or a service with a Chat Completions endpoint, and its usage read. | Fulfillers: model |
| [A coding agent on your own repository](coding-agent.md) | An agent that reads, edits, tests and commits code, with a person approving the risky calls. | Fulfillers: tools and policy |

### Shape what the model returns

| Guide | What you will have at the end | Box |
|---|---|---|
| [Structured answers](structured-answers.md) | An agent whose final answer is checked data of a shape you declared. | Actor |
| [Model-backed choices](model-backed-choices.md) | A workflow that routes on a model's pick of one of a fixed set of options. | Actor |

### Compose several actors

| Guide | What you will have at the end | Box |
|---|---|---|
| [Fan-out over items, with retries](items-and-retries.md) | One child per item of a list, a few at a time, with failures retried a bounded number of times. | Actor |
| [Different kinds of child in one stage](mixed-stages.md) | An agent, a batch of tool calls and a question to a person running side by side. | Actor |
| [Undo that the verifier checks](compensation.md) | A step whose effects are undone by another, with gvn proving the undo is reached. | Actor |
| [Designing a large harness](large-harnesses.md) | A big harness split into actors with stable inputs and results, so a change stays local. | Actor |

### Run it for real

| Guide | What you will have at the end | Box |
|---|---|---|
| [Running as a service](running-as-a-service.md) | Runs shared between processes, one driver at a time, and a run another process left carried to its end. | Governor and journal |
| [Spending and rate limits](spending-and-rate-limits.md) | A run under an allowance of tokens, model calls or cost, and one throttle shared by every model of an account. | Governor and fulfillers: model |
| [Logs, traces and streams](observability.md) | A run sent to your logs, your tracing system and a user's live stream. | Governor |

### Understand and change recorded runs

| Guide | What you will have at the end | Box |
|---|---|---|
| [Inspecting a run](inspecting-a-run.md) | A recorded run read actor by actor, moment by moment, and the first position at which a changed actor does something else. | Journal |
| [Replay and evaluation](replay-and-evaluation.md) | Finished runs read back, a change tried on them, and each graded against checks. | Journal |
| [Forking a run](forking-a-run.md) | A recorded run copied up to any point into another journal and carried on with a different answer or a fresh model call. | Journal |
| [Diagrams and diffs](diagrams-and-diffs.md) | A machine drawn, and two versions of it compared before you adopt a change. | You → actor |
| [Self-improvement](self-improvement.md) | A harness that inspects, evaluates and changes another harness. | Journal and actor |

## Jobs answered elsewhere

These jobs have a page of their own outside the guides:

| I want to | Go to |
|---|---|
| write my own tool | [4. Adding a tool](../tutorials/adding-a-tool.md) |
| ask a person before a tool runs | [5. A policy and approval](../tutorials/agent-with-approval.md), or the recipe [Stop a tool call until a person approves](../recipes.md#approve-a-tool-call) |
| keep a waiting run across a restart | the recipe for [an agent approval across a restart](../recipes.md#agent-approval-across-a-restart), then [6. Crash and resume](../tutorials/durability.md) |
| build a first workflow | [8. A workflow of two actors](../tutorials/workflow.md), or the recipe for [a two-stage workflow](../recipes.md#a-two-stage-workflow) |
| test a harness offline | the recipe to [test an agent offline](../recipes.md#test-an-agent-offline), [11. Testing your harness](../tutorials/testing.md), then the concept page [Testing your harness](../concepts/testing.md) |
| use ready-made tools, or tools from an MCP server | [Tools](../tools/index.md) and [MCP](../tools/mcp.md) |
| write policy rules without a class | [Rules](../tools/rules.md) |
| give an agent a memory, or keep a long run within the context window | [Memory](../concepts/memory.md) and [Context management](../concepts/context-management.md) |
| measure the quality of what a harness produces | [Evals](../evals/index.md) |
| see a harness drawn and step through its runs | [Workbench](../workbench/index.md) |
