consensus-tools tests

Run local consensus policy test harness.

Usage

consensus-tools tests run [--agents <n>] [--script <path>] [--openai-key <key>] [--model <name>]

Defaults

  • Script: .consensus/generation.ts
  • Agent count: 3
  • Model: gpt-5.2

Examples

# Use default generated script
consensus-tools tests run

# Custom script + model
consensus-tools tests run --agents 6 --script .consensus/generation.ts --model gpt-5.3

# Explicit API key
consensus-tools tests run --openai-key "$OPENAI_API_KEY"

tests run returns JSON output suitable for CI assertions.