Skip to content

[FEATURE]: Configure worktree startup scripts in opencode.jsonc #57850

Open

Description

@jenslys

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I'd like to define a worktree startup command in the repo's opencode.jsonc, so everyone gets the same setup when creating a worktree.

V2 currently stores this in project settings, so each developer has to register the command manually—even if the script itself is committed.

Could this be configurable in opencode.jsonc too?

Related: #44151 and #44455 added startup script support, but not a repo-level config option.

Activity

  1. opencode-agent commented on Oct 21, 2026

    @opencode-agent
    Contributor

    Thanks for the request! You'd like to define the worktree startup command in the repo's opencode.jsonc, so everyone working on the repo gets the same setup without registering the command in project settings themselves.

    Today, V2 stores the setup script only in each project's settings (added in #44455 for #44151). The worktree section of the config only supports directory for now. Maintainers will consider this.

    Related:

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions