Skip to content

[Feature] customizable task worktree prompt #9066

Description

@devlsh

Problem or use case

starting a new worktree from a task source will currently just inject the url to the issue in to the prompt - being able to customize the prompt would be incredibly beneficial, as well as potentially auto-submitting the prompt when the agent is ready/idle after creating the worktree from it

Proposed solution

a new project setting to override that default, with the ability to also specify it in orca.yaml
Custom GitHub Issue Command already exists, however it executes in a separate split pane as a shell comand when creating the workspace rather than injecting in to the prompt

Alternatives or additional context

No response

Activity

  1. added theissue type on Jul 16, 2026
  2. added
    enhancement
    on Jul 16, 2026
  3. AmethystLiang commented on Jul 16, 2026

    @AmethystLiang
    Contributor

    yep this is upcoming

  4. phoben commented on Jul 21, 2026

    @phoben

    I need this too

    yep this is upcoming

  5. octawizard commented on Jul 23, 2026

    @octawizard

    Hi! Opened #10159 for the Linear side of this. It adds an optional global setting to customize the first instruction Orca injects when you start a worktree from a Linear issue.

    Linear is currently the only provider that's hardcoded here — GitHub, GitLab and Jira already go through the issueCommand template. It defaults to the existing text, so it's a no-op unless you actually set a template.

    I saw this is assigned and marked as upcoming, so no worries if it overlaps with what you already have in progress. Happy to adjust scope or drop it if you're taking a broader approach across all task sources. Just wanted to put it out there in case it's useful.

  6. phoben commented on Jul 29, 2026

    @phoben

    I'm trying to use the issueCommand field in orca.yaml to customize the Agent prompt when creating a workspace from a GitHub Issue. However, I found that this feature has been non-functional since PR #1985 — enableIssueAutomation is hardcoded to false in NewWorkspaceComposerModal, which makes the entire issueCommand prompt template injection path dead code.

    The issueCommand value does work as a shell command executed in a split pane (via the "Start workspace from issue" button), but that's not what I need — I want the rendered template to appear directly in the Agent input box when a workspace is created.

    This is a critical workflow feature for teams that want to provide project-specific prompts (e.g., "Fix {{issue}} following our coding standards"). Would love to see this restored or re-implemented. Happy to help test if needed.

  7. lukassh-7 commented on Sep 8, 2026

    @lukassh-7

    Opened #19555 for the same thing on plain worktrees with no ticket. This issue and #16066 both cover the task-source prompt; #19555 is just an optional text field in the Create worktree dialog for the case where there is no issue to pull a prompt from.

  8. changemyminds commented on Oct 10, 2026

    @changemyminds

    Hi @AmethystLiang, is the team already working on this? I have a working implementation and would like to check the direction before I open a PR, so I don't duplicate your work.

    Use case: I start review workspaces from GitHub PRs and want the agent to begin with my own command, for example /code-review <pr-url>, instead of the bare URL. Today I type the command by hand on every launch.

    Proposed design:

    • One optional global setting in Settings → Tasks, linkedWorkItemPromptTemplate, with {{url}}, {{identifier}} and {{title}}. The {{…}} style matches issueCommand and feat(linear): customizable launch-prompt template for Linear worktrees #10159.
    • It replaces the default draft for GitHub, GitLab, Linear and Jira, in every launch path (composer, direct launch, folder workspaces). Nothing agent-specific.
    • An empty template keeps today's draft byte-for-byte.
    • An optional Send automatically switch, off by default, submits the prompt once the agent is ready. This covers the auto-submit part of this issue.
    • Item descriptions and comments are never available as placeholders, as [Feature]: Configurable start prompt template for ticket-linked workspaces #16066 asks. {{title}} is flattened to one line, stripped of control characters and capped.

    Not included: templates in orca.yaml or per repo, and per-agent templates. These could come later on top of the same setting.

    This would also cover #16066 and generalize #10159 to all providers.

    Would you accept a PR with this shape? I'm also happy to split it into two PRs (template first, auto-submit second), or to adjust it to fit what you are planning.

  9. Saicheg commented on Oct 16, 2026

    @Saicheg

    +1, and a request about scope: could the template be settable per repository, in orca.yaml (with the usual .orca/ local override), and not only as a global setting?

    Our use case: every task in our repo starts with a repo-defined slash command, /work <issue>. We set issueCommand: /work {{issue}} in orca.yaml, expecting it to become the agent's first prompt. Instead it runs as a shell command in a split pane (zsh: no such file or directory: /work), and the agent gets the bare issue URL as an unsent draft. Since enableIssueAutomation is off in the composer (#1985) and #6827 kept the quick-start prompt as the bare link, there is currently no way for a repo to choose what its agents start with.

    The command is a property of the repository, not of the person, so a global per-user setting (as proposed above) would mean every teammate configuring it by hand, and it would be wrong for their other repos. Something like:

    # orca.yaml
    agentPrompt: /work {{issue}}   # issues; {{artifact_url}} etc. as today

    The optional auto-submit once the agent is ready would complete it.

    For now we work around it by removing issueCommand and adding a rule to AGENTS.md that maps a bare issue URL to /work <N>, which works across agents but relies on the model following the rule. We'd switch to a native orca.yaml template as soon as it exists. Is per-repo support in scope for this issue?

  10. marianorodriguez commented on Oct 22, 2026

    @marianorodriguez

    +1. One request for the template design: please give a way to start the agent with no draft at all.

    In the proposal above, an empty template keeps today's draft (the bare URL). For my workflow I open review worktrees from GitHub PRs and I start each session with my own command, so the prefilled URL is something I delete every time. An explicit "No draft" option (or a distinct value such as a "Prefill the linked item" switch that is on by default) would cover this without a change to the default behavior.

  11. MoogyG commented on Oct 29, 2026

    @MoogyG

    +1 for a per-repository template in orca.yaml (with the .orca/ local override), as proposed above with agentPrompt, and a data point for GitLab.

    Our repo starts every task with a slash command, /implement <issue>. On Orca 1.4.244, with issueCommand: /implement {{issue}} in the primary checkout's orca.yaml, creating a workspace from a GitLab issue in the create dialog (prompt left empty) starts Claude Code with --prefill <issue URL>, and no issue-command split runs at all: per #6827 that split is GitHub-only, and submitLinkedIssueNumber stays null for a GitLab item picked in the composer.

    So for GitLab there is currently no repo-level way to choose the agent's first prompt from the UI. The only path we found is the CLI: orca worktree create --gitlab-issue <n> --agent claude --prompt "/implement <n>".

    Whatever shape lands, please make it cover GitLab issues too, and expose the issue number (not only the URL) as a variable, since slash commands usually take the number.

  12. mmarkert commented on Nov 16, 2026

    @mmarkert
    Contributor

    +1 for a per-repository prompt template in orca.yaml (the agentPrompt shape proposed above), with a data point for GitHub issues started from Tasks.

    On Orca 1.4.259 (macOS), our repos had this in orca.yaml:

    issueCommand: >-
      Work on {{artifact_url}}. Read the issue with its comments
      (gh issue view {{issue}} --comments) ...

    Clicking "Start workspace from issue" in Tasks runs this text as a shell command in a split pane (queueTabIssueCommandSplit), so bash fails on the parentheses:

    bash: syntax error near unexpected token `('
    

    The agent tab only gets the bare issue URL. The text becomes the agent's prompt only through the "New workspace" dialog, with an agent selected and the prompt left empty. So the same orca.yaml key behaves in two different ways depending on where the workspace is started, and the settings placeholder Complete {{artifact_url}} reads like a prompt, not like a shell command.

    Our workaround is the same one described above: we removed issueCommand from all repos and added a rule to CLAUDE.md saying that a first prompt consisting only of an issue URL means "work on this issue". We'd switch back to a native template as soon as there is one. Also +1 for {{issue}} (the number) as a variable next to {{artifact_url}}.

  13. fabiendeurrieu commented on Nov 17, 2026

    @fabiendeurrieu

    +1, with a data point for GitHub issues started from Tasks (Orca 1.4.259, macOS).

    Every task in our repo starts with a repo-defined slash command (/new-feature <issue>). Today, starting from Tasks opens the chat with the bare issue URL as an unsent draft, so we retype the command and press Enter on every launch.

    What would cover it for us:

    • a prompt template with {{issue}} (the number) next to {{artifact_url}};
    • the optional Send automatically switch once the agent is ready;
    • per-repository configuration in orca.yaml, since the command belongs to the repo, not to each person.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions