Browse documentation
Guides
View Markdown
On this page

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, whose picture this page reuses.
  • Time: about 3 minutes.

New here? Run your first agent offline, then take The short path and Using a vendor model: 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. Coding agents start at For coding agents.

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 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:

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 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 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 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 An agent whose final answer is checked data of a shape you declared. Actor
Model-backed choices 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 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 An agent, a batch of tool calls and a question to a person running side by side. Actor
Undo that the verifier checks A step whose effects are undone by another, with gvn proving the undo is reached. Actor
Designing a large harness 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 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 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 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 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 Finished runs read back, a change tried on them, and each graded against checks. Journal
Forking a run 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 A machine drawn, and two versions of it compared before you adopt a change. You → actor
Self-improvement 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
ask a person before a tool runs 5. A policy and approval, or the recipe Stop a tool call until a person approves
keep a waiting run across a restart the recipe for an agent approval across a restart, then 6. Crash and resume
build a first workflow 8. A workflow of two actors, or the recipe for a two-stage workflow
test a harness offline the recipe to test an agent offline, 11. Testing your harness, then the concept page Testing your harness
use ready-made tools, or tools from an MCP server Tools and MCP
write policy rules without a class Rules
give an agent a memory, or keep a long run within the context window Memory and Context management
measure the quality of what a harness produces Evals
see a harness drawn and step through its runs Workbench