create Command
What It’s For
Section titled “What It’s For”Start feature work across multiple repositories from a single command.
What It Does
Section titled “What It Does”- Creates a worktree for the target branch in each configured repository.
- Ensures repositories are aligned to the same branch name.
- In interactive mode, always creates the parent/meta worktree and prompts only for optional child repositories.
- Reconciles managed ignore rules before creating any parent or child worktree.
- Runs configured lifecycle hooks when present.
arashi create <branch> [options]Key Options
Section titled “Key Options”--only <repos>limit creation to comma-separated repository names.--group <group>create worktrees only for repositories in the requested group. Repeat for multiple groups.-i, --interactivepick repositories interactively.--switchswitch to the created parent worktree after create.--no-switchdisable configured create switch defaults for one invocation.--launchopen a terminal/editor context after create.--no-launchdisable configured create launch defaults for one invocation.--seshforce sesh launch mode (implies launch behavior).--conflict <strategy>preselect conflict handling (ABORT,REUSE_EXISTING).--no-hooksdisable hook execution.--no-progresshide progress indicators.--dry-rungenerate a plan without creating worktrees.--move-changesmove compatible uncommitted changes from the current workspace into the new worktree after create.--jsonoutput machine-readable create results or structured unsupported-mode errors.
Examples
Section titled “Examples”# Create branch worktrees across the workspacearashi create feature-auth-refresh
# Create in specific repositories onlyarashi create feature-auth-refresh --only api,web
# Create worktrees for the core repository grouparashi create feature-auth-refresh --group core
# Pick child repositories interactively while always creating the parent worktreearashi create feature-auth-refresh --interactive
# Force launch for this runarashi create feature-auth-refresh --launch
# Disable configured launch default for this runarashi create feature-auth-refresh --no-launch
# Review the plan firstarashi create feature-auth-refresh --dry-run
# Create worktrees and emit JSON for automationarashi create feature-auth-refresh --no-launch --no-switch --json
# Create worktrees and move current uncommitted work into themarashi create feature-auth-refresh --move-changes- In standalone mode,
createmakes one worktree at the main root’s.worktrees/<branch>path from either the main or a linked worktree. Before any mutation, Git must report the exact destination as effectively ignored; repository/group filters and interactive multi-repository selection are rejected. See the Standalone Repository workflow. createvalidates branch names and repository readiness.- On failure, coordinated operations can roll back to keep repos consistent.
- Reconciliation honors existing effective tracked, repository-local, or global rules before using the clone’s stored scope or repository-local default. Scope
nonecreates no ignore-file changes and warns for safe paths that remain unignored. --dry-runpreviews managed ignore scope, effective sources, planned rules, warnings, and unsafe skips without changing ignore files or clone-local preference state.- If worktree creation is fully rolled back, reconciliation is restored too. If a worktree survives a partial failure, Arashi retains the ignore state needed for that final filesystem state and reports it.
- Interactive
createtreats the parent/meta repository as the required anchor for the coordinated worktree; the selection prompt only controls child repositories. --grouptargets configured semantic sets such ascore,docs,extensions,agents, orinfra.- When combined with
--only,--groupnarrows the explicit repository list by intersection. Empty intersections fail before creating worktrees. - A partial coordinated worktree is valid. Add omitted child repositories later with
arashi clonefrom inside that worktree. - Configure defaults in
.arashi/config.jsonunderdefaults.create(switch,launch,launchMode). - When post-create launch runs inside a cmux-managed terminal, Arashi creates and focuses a cmux workspace rooted at the new primary worktree. This requires cmux v0.64.18 or newer and local socket access.
- If cmux launch fails after worktree creation, the created worktrees remain available and Arashi reports the launch failure without falling back to standalone Ghostty.
- An active tmux session nested inside cmux keeps the existing tmux/sesh launch behavior.
- Precedence for launch/switch behavior is: explicit flag > opt-out flag > config default > built-in default.
- JSON mode is intended for non-interactive automation. Launch modes that would open another app or session return a structured unsupported-mode error instead of mixing launch output with JSON.
- JSON results include structured managed ignore details and final changed/restored state without mixing human reconciliation output into stdout.
- When the source workspace has uncommitted changes, create output includes guidance for moving compatible changes with
arashi move. In JSON mode, that guidance is returned as structured data instead of human text.
Agent Notes
Section titled “Agent Notes”- Check
arashi statusandarashi listbefore creating a branch so you do not duplicate an existing coordinated worktree. - Use
--no-launch --no-switchfor unattended agent runs unless the user explicitly wants an editor or shell session opened. - Prefer
--jsonwith explicit non-interactive flags when automation needs to verify created worktree paths. - Use
--interactivewhen a task only needs some child repositories; the parent worktree is still present, so shared metadata and coordination remain available. - Prefer
--group <group>over a long--onlylist when a known semantic group matches the task scope. - Treat managed ignore warnings as actionable workspace state; do not compensate by writing global Git configuration.