vscode-pull-request-github
vscode-pull-request-github copied to clipboard
Enable all LLM tools in prompts (agent mode)
Enables canBeReferencedInPrompt for all LLM tools.
Set to
trueif 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
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
Related
- https://github.com/microsoft/vscode-pull-request-github/issues/6792
@microsoft-github-policy-service agree
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.
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:
And it seems reasonable to assume that list is the authoritative set of tools available to the agent.
/AzurePipelines run
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.