config.toml
twig reads ~/.config/twig/config.toml (respecting XDG_CONFIG_HOME).
No config file is required: every setting has a default, and twig init
generates one interactively. Unknown keys and dangling references are
warnings (shown by every command and by twig doctor), never hard
failures.
# Extra places to scan for worktrees, besides providers and the current# repo. Each root is scanned at <root>/*, <root>/*/*, and the Claude Code# patterns. ~ expands.roots = []
# Built-in tool layouts to scan; active when present on disk.# Known: "conductor", "claude-code".providers = ["conductor", "claude-code"]
[open]# The opener set run on entry. "ghostty" works without a definition.default = ["ghostty"]
[open.openers.ghostty]kind = "ghostty" # built-in kinds: ghostty | commandclear = true # clear after cd — new windows only; skipped when # entering the current tab so scrollback survivesdelay_ms = 300 # AppleScript delay before typing into the new windowreuse_window = false # when already inside Ghostty, enter the current window # instead of opening a new one (same as a one-off -t)
# Define any other tool as a command template:# [open.openers.cursor]# kind = "command"# command = "cursor {{dir}}" # {{dir}} = quoted worktree path# # {{cmd}} = quoted entry command# # (makes a terminal injection-capable)
[remote]auto_include = false # include remotes in the search on every local missconfirm_before_fetch = true # ask before fetching a match; set false # to fetch + create the worktree silentlydir = ".claude/worktrees/{{slug}}" # worktree location for fetched # branches, relative to the main # worktree; {{branch}} = name with /→-
[setup]auto = true # run setup logic on entry; false = only with --setupRelated files
Section titled “Related files”| Path | Contents |
|---|---|
~/.config/twig/config.toml | this file |
~/.local/share/twig/trust/ | trust approvals |
<gitdir>/twig-setup.json | per-worktree setup state |