SIGN IN SIGN UP

assistant_tools: Add `list-worktrees` and `read-file` tools (#26147)

This PR adds two new tools to Assistant 2:

- `list-worktrees` - Lists the worktrees in a project
- `read-file` - Reads a file at the given path in the project

I don't see `list-worktrees` sticking around long-term, as when we have
tools for listing files those will include the worktree IDs along with
the path, but making this tool available allows the model to utilize
`read-file` when it otherwise wouldn't be able to.

Release Notes:

- N/A
M
Marshall Bowers committed
7c391531604d1f813b650da71e6c41a0445c09e5
Parent: d0c2bef
Committed by GitHub <noreply@github.com> on 3/5/2025, 7:41:42 PM