vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Enable all LLM tools in prompts (agent mode)

Open bendrucker opened this issue 6 months ago • 3 comments

Enables canBeReferencedInPrompt for all LLM tools.

Set to true if the tool can be used in agent mode or referenced in chat.

Previously, these tools could only be used via the @githubpr chat participant. Only the activePullRequest tool was available directly. Now, they can all be called with # syntax or invoked by agent mode.

Perhaps this was disabled intentionally and there is additional polish to do. But this works and https://github.com/microsoft/vscode-pull-request-github/issues/6792#issuecomment-2862104548 suggested that there was some confusion on whether this is live today (it's not).

Before

Screenshot 2025-05-14 at 11 48 59

Screenshot 2025-05-14 at 11 53 36

Using the web fetch tool works for public repositories, albeit with a lot of HTML noise as compared to feeding the model a JSON representation of the issue.

Agent mode is unable to fetch details about any issues in private repositories.

After

Screenshot 2025-05-14 at 11 44 13 Screenshot 2025-05-14 at 11 45 07

Related

  • https://github.com/microsoft/vscode-pull-request-github/issues/6792

bendrucker avatar May 14 '25 18:05 bendrucker

@microsoft-github-policy-service agree

bendrucker avatar May 14 '25 19:05 bendrucker

This was disabled intentionally. canBeReferencedInPrompt was just for referencing a tool in a prompt with # or using the attach context button. I'm confirming that canBeReferencedInPrompt also impacts tool use in agent mode.

alexr00 avatar May 15 '25 08:05 alexr00

Some other references:

https://code.visualstudio.com/updates/v1_99#_vs-code-extension-tools-in-agent-mode

Any tool contributed to this API which sets toolReferenceName and canBeReferencedInPrompt in its configuration is automatically available in agent mode.

https://github.com/microsoft/vscode/issues/245129 https://github.com/microsoft/vscode/issues/231927

While that language isn't 100% definitive, my testing has shown that to be required for an agent to call the tool.

The screenshot I included with the checklists is triggered by the Select Tools button:

Screenshot 2025-05-15 at 13 18 47

And it seems reasonable to assume that list is the authoritative set of tools available to the agent.

bendrucker avatar May 15 '25 20:05 bendrucker

/AzurePipelines run

alexr00 avatar Oct 06 '25 10:10 alexr00

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

azure-pipelines[bot] avatar Oct 06 '25 10:10 azure-pipelines[bot]