Skip to content

Config File Reference

The config file is optional. If present, it must be named bugatti.config.toml and located in the project root (the directory where you run bugatti).

[provider]
name = "claude-code" # Provider name (default: "claude-code")
extra_system_prompt = "..." # Additional context for the agent
agent_args = ["--flag", "value"] # Extra CLI args for the provider
step_timeout_secs = 300 # Default per-step timeout in seconds
strict_warnings = false # Treat WARN as failure?
base_url = "http://localhost:3000" # Base URL for the app under test
[commands.<name>]
kind = "short_lived" # "short_lived" or "long_lived"
cmd = "npm run migrate" # Shell command to run
# Long-lived command additional fields:
readiness_url = "http://localhost:3000/health" # Single readiness URL
readiness_urls = ["http://...", "http://..."] # Multiple readiness URLs
readiness_timeout_secs = 30 # Readiness timeout (default: 30)
[checkpoint]
save = "./scripts/checkpoint.sh save" # Save command (required if section present)
restore = "./scripts/checkpoint.sh restore" # Restore command (required)
timeout_secs = 120 # Timeout for save/restore (default: 120)
FieldTypeDefaultDescription
namestring"claude-code"Provider to use
extra_system_promptstringβ€”Additional system prompt for the agent
agent_argsstring[][]Extra CLI args passed to the provider
step_timeout_secsinteger300Default timeout per step (seconds)
strict_warningsbooleanfalseTreat WARN results as failures
base_urlstringβ€”Base URL for the app under test

Define as many commands as needed. The name is used with --skip-cmd and --skip-readiness.

FieldTypeRequiredDescription
kindstringyes"short_lived" or "long_lived"
cmdstringyesShell command to execute
readiness_urlstringnoSingle URL to poll (long-lived only)
readiness_urlsstring[]noMultiple URLs to poll (long-lived only)
readiness_timeout_secsintegernoReadiness timeout, default 30 (long-lived only)
FieldTypeDefaultDescription
savestringrequiredShell command to save a checkpoint
restorestringrequiredShell command to restore a checkpoint
timeout_secsinteger120Timeout for save/restore commands