Python agent harness framework

Ten agents is a demo. Ten thousand takes engineering.

gvn gives every agent and workflow its own verified state machine, with state it owns and explicit inputs and outcomes. Build small parts you can trust, then compose them into systems of any size.

Python 3.12+ No API key for the first run

one workflowtriageresearchplanbuildreviewtestescalaterequestanswercall toolresultidlethinkingansweredactingverified

1 agent

One agent is one state machine. gvn checks that every state handles every input before the agent runs.

Reason about one layer at a time

In gvn, an actor owns its state and asks the runtime to do work. That interface works for one agent or for a workflow that coordinates many actors.

Compare harness approaches

Run an agent in two commands

No API key and no network. The first example scripts the model’s replies, so you get the same output every time.

pip install gvn
python first_agent.py Download first_agent.py
Order A-17 has shipped. what it prints

first_agent.py is one tool and one scripted model.

Start here, in this order

  1. Install gvn

    Python 3.12 or newer. The core package has no dependencies.

  2. Run your first agent

    One tool and a scripted model, offline. This is the file in the terminal here.

  3. Take the quickstart

    Build a verified machine, feed it inputs, then run an agent on a real model.

Every new state multiplies the cases you can miss

Each state has to answer every input, so the cases grow faster than the design does, and the one nobody thought of surfaces in production. gvn lists every pair and refuses to build until each has an answer.

This agent’s author wrote four answers. The table shows the eight nobody wrote, including a second request arriving while a tool is running.

Every state, every input

Build blocked: 8 unanswered

Rows are the agent’s states. Columns are the inputs that can arrive. Each cell is what the agent does next.

askedtool_wantedtool_returnedanswer_ready
idlego to thinkingno answerno answerno answer
thinkingno answergo to actingno answergo to answered
actingno answerno answergo to thinkingno answer
What gvn reports, 8 timesincomplete acting/asked

What should happen if a second request arrives while a tool is running?

assistant3 states × 4 inputs = 12 cases · answered is final and takes no input

Start with one agent.

Install gvn, run the offline example, then take the quickstart. Everything larger is built from the same parts.

Get started
  • Deciding whether to use it?

    See who gvn suits and how it compares with other ways of building agents.

    Is gvn for you?
  • Working with a coding agent?

    Copy a prompt for Claude Code, Codex, or Cursor that points it at the tested examples. Agents can read the docs index directly.

    Get a coding-agent prompt llms.txt