Skip to content

[Feature]: Please enforce worktree creation inside ./.worktrees/ #2257

@dekoza

Description

@dekoza

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues and discussions to avoid duplicates
  • This feature request is specific to oh-my-opencode (not OpenCode core)
  • I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Problem Description

Currently the worktrees are created in parent directory and the subagents are utterly confused about them. They do the work but then the orchestrator can't find it and wastes tokens resubmitting the work several times before making the work by itself.

Proposed Solution

Take the approach from superpowers - create a gitignored .worktrees directory and do all the work there. It is far easier to instruct the agents to look for work in .worktrees than in the partent dir (which can hold many other projects!).

Alternatives Considered

Integrate superpowers

Doctor Output (Optional)

❯ bunx oh-my-opencode doctor

 oMoMoMoMo Doctor

 ⚠ 2 issues found:

1. Loaded plugin is outdated
   Loaded 3.8.5, latest 3.10.0.
   Fix: Update: cd ~/.config/opencode && bun update oh-my-opencode
   Affects: plugin features

2. Comment checker unavailable
   Comment checker binary is not installed.
   Fix: Install @code-yeongyu/comment-checker
   Affects: comment-checker hook


❯ bunx oh-my-opencode --version
3.10.0

Additional Context

No response

Feature Type

Other

Contribution

  • I'm willing to submit a PR for this feature
  • I can help with testing
  • I can help with documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions