daydream
Daydream CLI docs

Configuration

Files and precedence

Daydream reads Tom's Obvious Minimal Language (TOML) settings from the target root:

  1. [tool.daydream] in pyproject.toml.
  2. Root keys in .daydream.toml, which override matching keys.

phases merges by phase and field. improve and diagram merge by key. Malformed TOML stops review and Improve. post-findings warns and uses command-line approval settings.

Model, backend, and reasoning selection uses this priority order:

  1. Global command-line option.
  2. File setting for the phase.
  3. Global file setting.
  4. Built-in setting for the backend and phase.
  5. Backend default.

Latency routing supplies wonder and arbiter reasoning below explicit settings and above built-in defaults. The default backend is claude. Use --backend, --model, or --reasoning-effort to override the corresponding selection for one run. See source defaults and configuration loading for uncommon controls.

Configure tests

test_command is unset by default. Add the project's complete test command to pyproject.toml:

[tool.daydream]
backend = "codex"
test_command = "uv run pytest"

[tool.daydream.phases.arbiter]
reasoning_effort = "high"

Use root keys and [phases.arbiter] in .daydream.toml. --test-command COMMAND overrides the file setting. Daydream executes the command through the shell and uses its exit status as the test result. Missing or invalid commands stop accepted actionable fixes before verification or edits. Review-only runs do not require a test command. See the test contract for suite declarations and evidence reuse.

Credentials

Authenticate the selected coding agent. For Claude, authenticate Claude Code or set ANTHROPIC_API_KEY. For Codex, run codex login. For Pi, use the provider's native credential variable. Without a Daydream model override, Pi reads target settings before user settings. See the Pi configuration for fallback selection and credential aliases. Expose Osprey through PATH or OSPREY_BINARY.

For GitHub operations, install gh and run gh auth login. Check authentication with gh auth status. For App authentication, set DAYDREAM_APP_ID and the complete DAYDREAM_APP_PRIVATE_KEY together. Invalid or partial credentials stop initialization. App authentication binds to one locally resolved github.com repository. See App identity for credentials and Integration for bot installation. Repository settings cannot select credentials, tracing destinations, or upload destinations.

Temporary-worktree files

The default support-file list contains ignored .env, .env.local, and .env.* files. Daydream copies these files into temporary worktrees for fix runs. Review-only and comment-only modes do not copy support files. [tool.daydream.workspace] copy in pyproject.toml replaces the list. --copy PATH adds a support file and accepts repetition. Copied paths must remain inside the source and destination worktrees.

Tracing

Tracing is disabled by default. --trace-to NAME selects langsmith, honeyhive, or otlp and accepts repetition. The option replaces comma-separated DAYDREAM_TRACE_TO destinations. --no-tracing disables tracing, including environment selection.

Tracing sends prompts, responses, tool inputs, and tool outputs by default. Set DAYDREAM_TRACE_CONTENT=metadata or --trace-content metadata to exclude conversation and tool content. Invalid destinations, missing credentials, or invalid endpoints stop tracing initialization before model work. Later exporter failures produce warnings without stopping review. Use the transport contract for provider credentials, endpoints, and transport controls.

Back to Daydream