Config
Use this guide after arashi init when you want Arashi to create and switch worktrees in a repeatable way without repeating flags on every command.
Command Defaults
Set defaults in .arashi/config.json when you want consistent behavior without repeating flags.
{ "defaults": { "create": { "switch": true, "launch": true, "launchMode": "sesh" }, "switch": { "mode": "auto", "launchMode": "sesh" } }}defaults.create.switchcontrols whether Arashi switches into the new worktree aftercreate.defaults.create.launchanddefaults.create.launchModecontrol how create opens the new context.defaults.switch.modechooses between launch behavior, parent-shellcd, or automatic detection.defaults.switch.launchModecontrols howarashi switchopens when launch behavior is used.
Install shell integration with arashi shell install if you want defaults.switch.mode: "cd" or "auto" to support parent-shell directory changes.
Suggested Setup Sequence
- Start with
defaults.createanddefaults.switchso the default behavior matches your team. - Enable shell integration if you want
arashi switch --cdbehavior. - Add hooks after you confirm the create and switch flow you want to automate.
- Keep shared defaults in config and move environment-specific setup into hooks.