Skip to content

Feature Request: Configurable Worktree Base Path #176

@LukeSal88

Description

@LukeSal88

Summary

The worktree base path is currently hardcoded to ~/.21st/worktrees/ in src/main/lib/git/worktree.ts:

const worktreesDir = join(homedir(), ".21st", "worktrees");

It would be useful to make this configurable via a setting in the UI or a config file (e.g. ~/.21st/config.json), so users can store worktrees alongside their projects, on a different volume, or co-located with other project-specific tooling.

Proposed Behavior

  • Default remains ~/.21st/worktrees — fully backward compatible
  • User can optionally override the base path via settings or config file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions