Web code sessions should support disabling worktree creation for personal projects

Resolved 💬 2 comments Opened Apr 5, 2026 by phuryn Closed Apr 6, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Web code sessions always create worktrees (isolated branches in .claude/worktrees/). For personal projects, there's no benefit to
this isolation — it just accumulates stale directories that consume disk space and add unnecessary complexity to the git history.

## Problem

  • Every web code session creates a new worktree with an auto-generated branch name
  • For solo developers, worktrees serve no purpose (no collaboration, no parallel work)
  • Worktrees accumulate over time and must be manually cleaned up
  • No way to configure this behavior

## Current Workaround

None. Users must manually delete worktrees after each session.

Proposed Solution

Add support for disabling worktree creation in web code sessions. Options:

  1. Settings: Add webWorktree: false to .claude/settings.json to make web sessions work directly on main
  2. Or: Add a CLI/web interface option to opt out of worktrees per-session

Alternative Solutions

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

## Example Use Case

Solo developer working on personal projects wants to:

  • Work directly on main branch
  • No isolated branches needed
  • Cleaner git history without auto-generated worktree branches

Additional Context

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗