Skip to main content Module operations Copy item path Source ai_tools Operations module — business logic for all commands. busy Busy detection: determine whether a worktree is currently in use. busy_messages Render gw rm refusal messages for the 3-tier busy model.
Pure string formatting; no I/O. Kept separate from busy.rs so the
detection logic can be tested without locale/styling concerns. claude_process Live Claude Code process detection — confirms a worktree is actually
occupied by a running claude instance, not just a stale jsonl event log. claude_session Hard-tier in-use signal: detects active Claude Code sessions in a
worktree by inspecting ~/.claude/projects/<encoded>/*.jsonl event tails. claude_settings Inline --settings JSON for gw-spawned Claude sessions, and the entry
builders used by gw setup-claude to register .claude/settings.json hooks. claude_worktree Internal handlers for Claude Code’s WorktreeCreate and WorktreeRemove
hook events. complete Internal helper for shell tab completion: prints valid positional
target tokens (worktree names + branch names) one per line. config_ops gw config command implementation.diagnostics display exec gw exec <target> <cmd> — single-worktree command dispatch.guard gw guard — Claude Code PreToolUse(Bash) hook helper.helpers launchers lockfile Session lockfile — explicit “this worktree is in use” marker. path_cmd pr_cache Batched PR-status cache for gw list. rm_batch Batch removal orchestration for gw rm. run gw run <cmd> — fan a command out across all worktrees in scope.setup_claude gw setup-claude — project-local one-click installer for Claude Code
integration.spawn_spec Spawn-spec — safely launch AI tools without shell escape hazards. worktree