Switching to Worktree After Creating a Plan

I create a new agent and work on a plan… and often I don’t think to switch to worktree mode before I start on the plan.

I iterate and get a good plan… maybe I was working on two plans at the same time. Now I want to “Build” the plan… but I want the build to begin in a Worktree… so I can switch to plan #2 and also trigger that to begin in a Worktree.

Seems to be no way to do this… once you start an agent in “Local” mode, you can’t switch it to Worktree mode, even if you’ve only been Planning and are now ready to Build.

I tried saving the plan, then creating a new agent in worktree mode, adding the plan to that agent and asking it to execute the plan… but the agent said it couldn’t find the plan even though I dragged it in!

Am I missing something… or do I just need to get into the habit of starting agents in worktree mode?

Hey, good workflow question.

Yeah, right now you can’t switch an agent from Local mode to Worktree mode after you’ve started. The mode is fixed when the chat is created.

But the agent not seeing the plan file after drag-and-drop is weird. The file should be added as context. A couple quick checks:

  • Did the file definitely show up in the chat context after you dragged it in (visible in the @-mentions list)?
  • What exact error did the agent give, was it literally “couldn’t find the plan” or something else?

It might be how the agent is interpreting the file, not the context itself. Try a more explicit prompt like “Execute the plan described in the attached file step by step.” That sometimes helps.

Thanks for the response Dean.

See attached, I created a plan in local… saved it… it appeared in .cursor/plans… I created a new agent and switched it to worktree… I dragged the plan in and said implement… and the agent could not find the file.