Skip to content

Quickstart

Run a simulation, read the log it wrote, and score it. These are the same commands a study uses.

Read the README first for what the platform is for. This page assumes only that.

1. Install

In a new project of your own, with <tag> a release from the releases page:

uv init --python 3.14 my-study && cd my-study
uv add "glossogen @ git+https://github.com/agencyenterprise/GlossoGen.git@<tag>"
source .venv/bin/activate
echo 'ANTHROPIC_API_KEY=<your key>' > .env
mkdir runs

glossogen needs Python 3.14, which uv init --python 3.14 sets. Activating the environment puts glossogen on your PATH. Without it, write uv run glossogen wherever this page writes glossogen. This walkthrough runs Anthropic models, so .env holds ANTHROPIC_API_KEY. Another provider works the same way, with its key set and --model / --provider swapped in the commands below. Running simulations lists the providers.

Working from a clone of this repository instead: make install, then cp .env.example .env, and each glossogen ... command below is spelled VIRTUAL_ENV= uv run --no-sync python -m glossogen .... Installation has both paths in full, including the optional extras.

2. Run a simulation

warehouse_robot_recovery puts three agents around a stopped robot, and none of them can see the whole problem. The floor associate is the only one who can see the machine, the robotics engineer holds the recovery procedures, and the fleet safety coordinator holds the constraints. They share one radio channel, which costs a character budget and is the only channel scored. The default preset also gives them a free debrief channel between rounds.

glossogen run warehouse_robot_recovery \
  --model claude-haiku-4-5-20251001 --provider anthropic \
  --runs-dir ./runs \
  --config knobs_default \
  round_count=3 \
  > ./runs/quickstart.log 2>&1 &
Argument What it does
--model, --provider, --runs-dir, --config All four are required.
--config knobs_default Names a preset the scenario ships. A path to a JSON file of your own works here too.
round_count=3 A knob override: one field of the preset changed without copying it. The preset's own value is 15.

If your environment has no key for the provider you named, the run is refused at the command line rather than starting and failing once the clock has run out. The launch log, ./runs/quickstart.log, says why. Three rounds of this preset took under two minutes and $0.28 on claude-haiku-4-5-20251001.

Wait for the run to finish before scoring it. This prints 1 once it has:

grep -c '"simulation_ended"' ./runs/warehouse_robot_recovery/*/warehouse_robot_recovery.jsonl

Wait for that event. round_advanced to round N fires when round N starts, so a round count says the run finished while its last round is still going, and scoring then silently drops that round.

3. Read what it recorded

Everything downstream reads one file: the web UI, every metric, and every flow that rewinds a finished run.

RUN=$(ls -td ./runs/warehouse_robot_recovery/*/ | head -1)   # the newest run
python -c "
import collections, json, sys
kinds = collections.Counter(json.loads(l)['event_type'] for l in open(sys.argv[1]) if l.strip())
for kind, count in kinds.most_common(): print(f'{count:5} {kind}')
" "$RUN/warehouse_robot_recovery.jsonl"

That counts the events by type. Most of them are the agents' own model calls, tool calls and waits. These are the ones that describe the game:

Event What it records
message_sent An agent speaking on a channel
injection_delivered The scenario telling one agent what happened this round
world_event_delivered The world answering an agent's action
round_advanced Round N starting
simulation_ended The run finishing, and the only signal that it has

Events are only appended, never rewritten, which is what lets a finished run be replayed from any round.

4. Score it

glossogen evaluate warehouse_robot_recovery \
  --run-dir "$RUN" \
  --metrics round_success,mean_chars_per_round,mean_chars_per_message,round_ended_idle,round_ended_timeout \
  --model claude-haiku-4-5-20251001 --provider anthropic

Every metric in that list is deterministic, so this run costs nothing: the report's evaluation_cost.estimated_cost_usd comes back 0.0. Each metric logs its score as it finishes, and the report lands at <run>/warehouse_robot_recovery_report.json.

A round ends one of three ways: the scenario ends it once the round is settled, every agent goes idle, or the wall clock runs out. round_ended_idle and round_ended_timeout count the last two. Check round_ended_timeout before trusting a number like mean_chars_per_round: in a round the clock cut off, the agents were still talking when it ended, so the character count shows the time limit rather than how much they had to say.

The platform's own metrics are generic: a scenario opts into one by implementing the hook the metric reads, so the same measurement works across scenarios. A scenario can also carry metrics that apply only to it, declared by its scenario_metrics(). Adding shorthand_codes or language_repetition to that list puts a judge model to work and spends real money. Evaluation has the full catalogue and which hook each metric reads.

Where next

  • Pick a different scenario — Scenarios for what ships and which to start with.
  • Write your own — Creating a scenario, then Testing a scenario for the scripted harness.
  • Understand the numbers — Evaluation for the catalogue, Communication metrics for how the language measures read together.
  • Fork a finished run — Agent swaps and forks, for forking a run at a round boundary with one agent replaced. This is how the platform answers "could a fresh agent pick up the protocol from here" by experiment rather than by asking a judge.