# Choose your path

This page gives you an ordered route through the documentation for what you came to do.
Pick the row that fits you, follow its steps in order, and stop when you have what you need.

| You are | You want | Your path | Time |
|---|---|---|---|
| A developer | To build your own harness and understand every part of it | [Build your own harness](#build-your-own-harness) | about 4 hours, in sittings |
| An engineer trying gvn out | A working proof of concept of your own to judge it by | [Try it in an afternoon](#try-it-in-an-afternoon) | 2 to 3 hours |
| A manager or an architect | To decide whether gvn fits, without running code | [Evaluate gvn](#evaluate-gvn) | 10 or 35 minutes |
| A coding agent, or someone briefing one | To go from a brief to a working harness | [Coding agents](#coding-agents) | a few pages |

## How the documentation is laid out

Every path below draws on the same sections. Each section does one kind of work:

```mermaid
flowchart LR
    start["<b>Start</b><br/>install, first agent,<br/>quickstart"]
    tutorials["<b>Tutorials</b><br/>one idea at a time,<br/>in order"]
    recipes["<b>Recipes</b><br/>one complete file<br/>per problem"]
    guides["<b>Guides</b><br/>one job per page"]
    concepts["<b>Concepts</b><br/>why it works<br/>the way it does"]
    reference["<b>Reference</b><br/>guarantees, interfaces,<br/>Python API"]
    start --> tutorials
    start --> recipes
    tutorials --> guides
    recipes --> guides
    guides --> concepts
    guides --> reference
```

- **Start** gets gvn running and shows the whole design in one picture.
- **Tutorials** teach in order. Each adds one idea to a running example.
- **Recipes** are complete files you can run and adapt before reading any theory.
- **Guides** each do one job, such as connecting a model or running as a service.
- **Concepts** explain the design behind the code.
- **Reference** is for looking things up: what gvn guarantees, each interface, every public
  name.

Beside these, [Evals](evals/index.md) measure how well a harness does its job, the
[Workbench](workbench/index.md) draws a harness and its recorded runs on a local page,
[Tools](tools/index.md) are ready-made tools for an agent, and [Domains](domains/index.md)
are complete example harnesses.

## Build your own harness {#build-your-own-harness}

You want to understand each part well enough to design a harness for your own job. Read in
order and type the code. Every example runs offline, with a scripted stand-in for the model,
until the last step.

| Step | Read | You can now | Time |
|---|---|---|---|
| 1 | [Install](install.md) and [Run your first agent](start.md) | run an agent that calls a function of yours | 5 min |
| 2 | [Quickstart](quickstart.md) | name every part of gvn and say how a run moves through them | 10 min |
| 3 | Tutorials [1](tutorials/first-machine.md) and [2](tutorials/decisions-and-branching.md) | build a state machine, read what the verifier reports, and branch on data | 25 min |
| 4 | Tutorials [3](tutorials/first-agent.md), [4](tutorials/adding-a-tool.md) and [5](tutorials/agent-with-approval.md) | wire an agent yourself, give it tools, and make a tool call wait for a person | 45 min |
| 5 | Tutorials [6](tutorials/durability.md) and [7](tutorials/streaming.md) | keep a run across a crash, and watch a run while it happens | 25 min |
| 6 | Tutorials [8](tutorials/workflow.md), [9](tutorials/deadline.md) and [10](tutorials/conversation.md) | compose actors into a workflow, give a step a deadline, and hold a conversation | 40 min |
| 7 | Tutorials [11](tutorials/testing.md) and [12](tutorials/real-model.md) | test a harness offline and move it to a real model | 30 min |
| 8 | [Your own harness](tutorials/your-own-harness.md) | turn your own job into a design and a starting file | 30 min |

After step 8, pick [guides](guides/index.md) by the job in front of you. When your harness
grows past one workflow, read [Designing a large harness](guides/large-harnesses.md).
When you want the reasons behind a part, its [concept page](concepts/index.md) has them.

You can stop early. After step 4 you can build a single agent with tools and approval. After
step 5 it survives a restart.

## Try it in an afternoon {#try-it-in-an-afternoon}

You want to build something small of your own and judge gvn by how that goes. This path
skips the tutorials and goes job by job. Each step names the one page or section to open.

| Step | Do | Open | Time |
|---|---|---|---|
| 1 | Run an agent with one tool | [Run your first agent](start.md) | 5 min |
| 2 | See the whole design, and watch the verifier name a gap | [Quickstart](quickstart.md), the big picture and steps 1 to 3 | 10 min |
| 3 | Give the agent your own tools: one that reads, one that changes something | [The short path](guides/shortcuts.md#step-1-a-tool-from-a-function), steps 1 and 2 | 20 min |
| 4 | Make the changing tool wait for a person. Approve it, then deny it | [The short path](guides/shortcuts.md#step-3-the-default-policy-and-a-tighter-one), steps 3 and 4 | 20 min |
| 5 | Get the final answer as checked data instead of text | [Structured answers](guides/structured-answers.md) | 15 min |
| 6 | See what happened in the run | [Logs, traces and streams](guides/observability.md) and the journal in [the quickstart](quickstart.md#see-the-machine-at-work) | 10 min |
| 7 | Keep the pending approval across a restart | The recipe [Keep an agent's pending approval across a restart](recipes.md#agent-approval-across-a-restart) | 20 min |
| 8 | Write an offline test | The recipe [Test an agent offline](recipes.md#test-an-agent-offline) | 15 min |
| 9 | Put the agent inside a workflow | The recipe [A two-stage workflow](recipes.md#a-two-stage-workflow), then [tutorial 8](tutorials/workflow.md) | 30 min |
| 10 | Switch to a real model | [Quickstart, step 4](quickstart.md#step-4-switch-to-a-real-model), then [Using a vendor model](guides/vendors.md) | 15 min |

Steps 1 to 8 need only the core `gvn` package and no API key.

While you build, these are the things to look at, because they are what gvn is about:

- **The verifier's findings.** Remove a route from a machine or a workflow and read what
  gvn reports before anything runs.
- **The journal.** Print the event names of a run. They are the whole story of what happened,
  in order.
- **Parking.** A run that waits for a person returns to your code and holds no process.
- **The swap to a real model.** Count the lines that change.

To go further with a measured comparison, [Your first eval](evals/first-eval.md) grades a
harness over a set of cases, and the [Workbench](workbench/first-session.md) draws the
harness and steps through its recorded runs.

## Evaluate gvn {#evaluate-gvn}

You want to know what gvn is, what it guarantees, and what adopting it asks of your team.
You will not run code.

**Ten minutes:**

1. [Is gvn for you?](fit.md) says who it suits and compares its design with other approaches,
   question by question.
2. [Runtime guarantees](reference/runtime-guarantees.md) says what gvn guarantees and what
   your application supplies.
3. [Scale benchmark](reference/scale.md) gives the measured numbers.

**Thirty-five minutes:** [Is gvn for you?](fit.md#evaluate-gvn) continues that list with a
minute budget per step. It covers the execution model, deployment, a complete example
harness, testing, model vendors, observability, and how stored data and the public API are
kept stable.

To see it rather than read about it, hand
[Try it in an afternoon](#try-it-in-an-afternoon) to an engineer on your team.

## Coding agents {#coding-agents}

You are an AI coding agent that has been asked to build a harness, or you are about to give
one that job.

1. Read [llms.txt](https://gvn-harness.dev/llms.txt). It indexes the Markdown form of every
   page an agent needs. Every page on this site is also served as Markdown: add `.md` to its
   address.
2. Read [Docs for coding agents](for-agents.md). It has the table for choosing an actor, the
   rules of the framework, a map from task to page, and a prompt to copy.
3. Start from the complete file closest to the brief in [Runnable recipes](recipes.md). Each
   one runs offline and is tested.
4. Look names up in the [Python API](https://gvn-harness.dev/reference/python.md), generated from the source.

Keep everything offline with a scripted model until the tests pass, then switch the model.
