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
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-
Verify the states and how they connect
State machines make possible inputs and transitions explicit. gvn checks each declared input in every non-final state, and checks that the workflow has routes for its stages’ outcomes.
-
Give each actor its own state
Keep details such as a child’s transcript, retry count, and review stages inside that child. The parent coordinates the work through an agreed input and outcome.
-
Reuse a workflow like any other actor
A workflow can host an agent, an approval, or another workflow. Test a child on its own and reuse it in any parent that honors its contract.
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
- Install gvn
Python 3.12 or newer. The core package has no dependencies.
- Run your first agent
One tool and a scripted model, offline. This is the file in the terminal here.
- 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 unansweredRows are the agent’s states. Columns are the inputs that can arrive. Each cell is what the agent does next.
| asked | tool_ | tool_ | answer_ | |
|---|---|---|---|---|
| idle | go to thinking | no answer | no answer | no answer |
| thinking | no answer | go to acting | no answer | go to answered |
| acting | no answer | no answer | go to thinking | no answer |
incomplete acting/askedWhat should happen if a second request arrives while a tool is running?
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