Skip to main content
These two commands let you inspect a clone’s database — the primary way to score what an agent actually did.

query

Runs SQL against the clone’s database. Read-only by default — reads are enforced at the connection level (default_transaction_read_only=on), so a stray UPDATE can’t slip through unless you ask for it.

Arguments

Options

SQL source precedence: --file > inline argument > stdin.

Examples

Inline read:
JSON for programmatic scoring:
From a file or stdin:
Deliberate write (off the default safety rail):

Guardrails

Errors you might see


db

Prints the exact docker compose exec + psql command to open an interactive shell into a clone’s database (clones share one Postgres container, so the command targets the shared postgres service and selects the clone’s database with -d). It doesn’t open the shell or touch Docker — it just gives you the command to run, so you can copy it or pipe it.

Options

Examples

JSON:
Open the shell in one line:

Errors you might see