Skip to content

"could not start claude: No such file or directory" when the project directory doesn't exist on the base branch #43

Description

@ratiodylan

If a project's root is a subdirectory of a git repo, and that subdirectory only exists on a non-default branch, a new worktree thread can't start its agent. The chat shows:

could not start claude: No such file or directory

claude is installed and on the PATH, so the message points at the wrong thing. The worktree is created from the default branch (e.g. main), which doesn't contain the project's subdirectory. The thread's working directory (/) therefore doesn't exist. Starting the agent there fails with ENOENT, and Backplane reports that as the agent binary being missing.

Steps to reproduce:

  1. In a repo, add a new directory on a feature branch only (not on main), and check out that branch.
  2. Add that directory as a Backplane project.
  3. Start a new worktree thread in it and send a message.

Expected: The thread starts. If it can't, the error says the working directory doesn't exist.

Suggestions:

  • Check that the working directory exists before starting the agent, and name the missing path in the error.
  • Consider basing new worktrees on the branch currently checked out in the project's repo, or let the user choose the base branch.

Workaround: Use a Local thread, or merge the directory into the default branch first.

Activity

  1. added a commit that references this issue on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions