feat: expose --worktree flag as a session option in the UI #152

Closed
opened 2026-02-24 11:00:32 -08:00 by hikari · 0 comments
Owner

Summary

Claude CLI 2.1.49 added a --worktree (-w) flag that starts Claude in an isolated git worktree. Subagents also gained support for isolation: "worktree" in agent definitions.

Current behaviour

There is no way to opt into worktree isolation from within Hikari Desktop — you would need to pass the flag manually via the CLI.

Desired behaviour

Add a toggle in the session configuration UI (e.g. in the sidebar or new-session dialog) to enable --worktree mode when launching a Claude session. This lets users run experimental or risky tasks in full isolation without leaving the app.

References

  • Claude CLI changelog 2.1.49

This issue was created with help from Hikari~ 🌸

## Summary Claude CLI 2.1.49 added a `--worktree` (`-w`) flag that starts Claude in an isolated git worktree. Subagents also gained support for `isolation: "worktree"` in agent definitions. ## Current behaviour There is no way to opt into worktree isolation from within Hikari Desktop — you would need to pass the flag manually via the CLI. ## Desired behaviour Add a toggle in the session configuration UI (e.g. in the sidebar or new-session dialog) to enable `--worktree` mode when launching a Claude session. This lets users run experimental or risky tasks in full isolation without leaving the app. ## References - Claude CLI changelog 2.1.49 ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-02-24 20:48:51 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#152