Skip to content

Settings reference

Driga reads config.toml and the process environment. Precedence is explicit flags, then environment, then the TOML file, then the defaults below. Empty environment values count as unset, and dotenv files are never loaded. An unknown DRIGA_* name is an error. Restart the collector after changing its configuration; the CLI and hooks reload on every invocation.

Find and edit the file with driga config path, driga config show and driga config edit. List settings are file-only and have no environment variable.

KeyTypeDefaultEnvironment
motionstringonDRIGA_MOTION
rootslistemptyfile only
root_depthint3DRIGA_ROOT_DEPTH
excludelist**/node_modules, **/.tmp/**file only
stalled_afterduration10mDRIGA_STALLED_AFTER
orphan_min_ageduration10mDRIGA_ORPHAN_MIN_AGE
capture_textstringtitlesDRIGA_CAPTURE_TEXT
open_cmdstringemptyDRIGA_OPEN_CMD
no_service_hintboolfalseDRIGA_NO_SERVICE_HINT
ui.themestringsystemDRIGA_UI_THEME
adapters.claude.enabledbooltrueDRIGA_ADAPTERS_CLAUDE_ENABLED
adapters.codex.enabledbooltrueDRIGA_ADAPTERS_CODEX_ENABLED
adapters.gemini.enabledbooltrueDRIGA_ADAPTERS_GEMINI_ENABLED
adapters.copilot.enabledbooltrueDRIGA_ADAPTERS_COPILOT_ENABLED
orphans.extra_signatureslistemptyfile only
machine.disk_free_minsize0DRIGA_MACHINE_DISK_FREE_MIN
summaries.enabledboolfalseDRIGA_SUMMARIES_ENABLED
summaries.modelstringhaikuDRIGA_SUMMARIES_MODEL
cleanup.worktree_idleduration168hDRIGA_CLEANUP_WORKTREE_IDLE
cleanup.regenerablelistnode_modules/, target/, .venv/, venv/, dist/, build/, .next/, __pycache__/, .gradle/, .terraform/file only
fleet.serveboolfalseDRIGA_FLEET_SERVE
fleet.listenstringemptyDRIGA_FLEET_LISTEN
fleet.share_textstringtitlesDRIGA_FLEET_SHARE_TEXT
fleet.enroll_windowduration10mDRIGA_FLEET_ENROLL_WINDOW
fleet.allow_any_addressboolfalseDRIGA_FLEET_ALLOW_ANY_ADDRESS
inbox.alertsstringwaitingDRIGA_INBOX_ALERTS
inbox.alert_afterduration0sDRIGA_INBOX_ALERT_AFTER
inbox.alert_repeatduration5mDRIGA_INBOX_ALERT_REPEAT
inbox.jump_terminalboolfalseDRIGA_INBOX_JUMP_TERMINAL
intake.otlpboolfalseDRIGA_INTAKE_OTLP
intake.listenstring127.0.0.1:7418DRIGA_INTAKE_LISTEN

Top-level keys of config.toml.

Event-bound motion in the terminal Flow map.

TypeDefaultAllowedEnvironment
stringonon or offDRIGA_MOTION

Additional repository discovery roots; ~ expands to HOME.

TypeDefaultAllowedEnvironment
listemptyfile-only; empty = session working directories onlyfile only

Repository discovery depth.

TypeDefaultAllowedEnvironment
int30..max int; zero = roots onlyDRIGA_ROOT_DEPTH

Repository discovery exclusions.

TypeDefaultAllowedEnvironment
list**/node_modules, **/.tmp/**file-only; empty = no exclusionsfile only

Quiet busy-session threshold.

TypeDefaultAllowedEnvironment
duration10m0..2562047h47m16.854775807s; zero = default 10mDRIGA_STALLED_AFTER

Minimum orphan candidate age.

TypeDefaultAllowedEnvironment
duration10m0..2562047h47m16.854775807s; zero = no age minimumDRIGA_ORPHAN_MIN_AGE

Local text capture policy.

TypeDefaultAllowedEnvironment
stringtitlestitles or snippetsDRIGA_CAPTURE_TEXT

Editor command; {cwd} is substituted.

TypeDefaultAllowedEnvironment
stringemptyempty = auto-detectDRIGA_OPEN_CMD

Suppress optional service hints.

TypeDefaultAllowedEnvironment
boolfalsetrue or falseDRIGA_NO_SERVICE_HINT

The [ui] table.

Palette for the whole terminal UI: light, dark, or system to follow the terminal.

TypeDefaultAllowedEnvironment
stringsystemsystem, light or darkDRIGA_UI_THEME

One [adapters.<name>] table per agent.

Enable Claude session discovery.

TypeDefaultAllowedEnvironment
booltruetrue or falseDRIGA_ADAPTERS_CLAUDE_ENABLED

Enable Codex session discovery.

TypeDefaultAllowedEnvironment
booltruetrue or falseDRIGA_ADAPTERS_CODEX_ENABLED

Enable Gemini session discovery.

TypeDefaultAllowedEnvironment
booltruetrue or falseDRIGA_ADAPTERS_GEMINI_ENABLED

Enable Copilot hook and process discovery.

TypeDefaultAllowedEnvironment
booltruetrue or falseDRIGA_ADAPTERS_COPILOT_ENABLED

The [orphans] table.

Additional signature files; ~ expands to HOME.

TypeDefaultAllowedEnvironment
listemptyfile-only; empty = built-in signaturesfile only

The [machine] table.

Low disk free-space limit. Zero uses the smaller of 10% of the volume or 20 GB (decimal). Replaces cleanup.low_disk_* warning thresholds.

TypeDefaultAllowedEnvironment
size00..18446744073709551615 bytes; optional KiB/MiB/GiB suffix; zero = automaticDRIGA_MACHINE_DISK_FREE_MIN

The [summaries] table. Summaries run your installed Claude CLI on demand.

Enable optional local Claude summaries.

TypeDefaultAllowedEnvironment
boolfalsetrue or falseDRIGA_SUMMARIES_ENABLED

Model selection passed to the Claude CLI.

TypeDefaultAllowedEnvironment
stringhaikunonemptyDRIGA_SUMMARIES_MODEL

The [cleanup] table.

Idle worktree cleanup eligibility.

TypeDefaultAllowedEnvironment
duration168h0..2562047h47m16.854775807s; zero = no idle minimumDRIGA_CLEANUP_WORKTREE_IDLE

Additional regenerable relative directories (merged with defaults).

TypeDefaultAllowedEnvironment
listnode_modules/, target/, .venv/, venv/, dist/, build/, .next/, __pycache__/, .gradle/, .terraform/file-only; empty = built-in directoriesfile only

The [fleet] table for paired machines.

Enable optional fleet serving.

TypeDefaultAllowedEnvironment
boolfalsetrue or false; requires fleet.listenDRIGA_FLEET_SERVE

Fleet TCP listener address.

TypeDefaultAllowedEnvironment
stringemptyrequired with fleet.serve; explicit private IP/interface, public addresses require allow_any_addressDRIGA_FLEET_LISTEN

Fleet export text policy, bounded by local capture policy.

TypeDefaultAllowedEnvironment
stringtitlesnone, titles or snippetsDRIGA_FLEET_SHARE_TEXT

Fleet enrollment duration.

TypeDefaultAllowedEnvironment
duration10m1ns..10m; zero rejectedDRIGA_FLEET_ENROLL_WINDOW

Permit explicit non-loopback fleet listener.

TypeDefaultAllowedEnvironment
boolfalsetrue or falseDRIGA_FLEET_ALLOW_ANY_ADDRESS

The [inbox] table.

Desktop alerts for attention and optionally completions.

TypeDefaultAllowedEnvironment
stringwaitingwaiting, all or offDRIGA_INBOX_ALERTS

Alert only when a wait is still open this long after it began.

TypeDefaultAllowedEnvironment
duration0s0..2562047h47m16.854775807s; zero = alert immediatelyDRIGA_INBOX_ALERT_AFTER

Minimum interval between alerts for one session.

TypeDefaultAllowedEnvironment
duration5m0..2562047h47m16.854775807s; zero = no throttleDRIGA_INBOX_ALERT_REPEAT

Opt in to bringing a proven macOS terminal window to front.

TypeDefaultAllowedEnvironment
boolfalsetrue or falseDRIGA_INBOX_JUMP_TERMINAL

The [intake] table for the optional loopback OTLP receiver.

Enable optional loopback OTLP/HTTP JSON intake.

TypeDefaultAllowedEnvironment
boolfalsetrue or falseDRIGA_INTAKE_OTLP

OTLP intake TCP listener address.

TypeDefaultAllowedEnvironment
string127.0.0.1:7418loopback IP and port 0..65535; zero = ephemeral portDRIGA_INTAKE_LISTEN

Relative values resolve against the working directory at startup.

VariableDefaultPurpose
DRIGA_CONFIG$XDG_CONFIG_HOME/driga/config.toml or ~/.config/driga/config.tomlConfiguration file override.
DRIGA_DATA_DIRLinux: $XDG_DATA_HOME/driga or ~/.local/share/driga; macOS: ~/Library/Application Support/drigaDatabase and fleet data directory override.
DRIGA_SPOOL_DIRLinux: $XDG_STATE_HOME/driga/events or ~/.local/state/driga/events; macOS: ~/Library/Application Support/driga/eventsHook/ack spool directory override.

Driga sets these for its own child processes and tests. They are accepted so those processes start cleanly; they are not configuration.

VariableKindPurpose
DRIGA_CHAT_SOCKETpathChat broker socket for the MCP child of one Chat turn.
DRIGA_CHAT_CONVERSATIONidChat conversation of the MCP child’s turn.
DRIGA_CHAT_TOKENsecretPer-turn token tying the MCP child’s approval requests to its turn.
DRIGA_CHAT_READ_ONLYmarker1 keeps the Chat MCP child read-only.
DRIGA_INTERNALmarker1 suppresses recursive hooks from Driga-owned Claude subprocesses.
DRIGA_FIXTURE_OUTPUTpathFixture generator output directory (tests only).
DRIGA_COLLECTOR_HEAP_CHILDmarker1 selects isolated collector heap-test child.
DRIGA_FLEET_HEAP_CHILDmarker1 selects isolated fleet heap-test child.
DRIGA_OTLP_TRACES_ADDEDmarker1 records enhanced telemetry installed by Driga in Claude settings.
DRIGA_JSON_WATCH_CHILDmarker1 selects isolated NDJSON watch-test child.
DRIGA_TEST_MCP_PROCESSmarker1 selects isolated MCP-test child.