# assistant_tools: Add \`list-worktrees\` and \`read-file\` tools \(\#26147\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7c391531604d1f813b650da71e6c41a0445c09e5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7c391531604d1f813b650da71e6c41a0445c09e5

Requested commit: 7c391531604d1f813b650da71e6c41a0445c09e5

Commit: 7c391531604d1f813b650da71e6c41a0445c09e5

Tree: 6a970eae0bfc099a24551ef2c50b89dd0ebe212f

Author: Marshall Bowers

Committer: GitHub

## Message

```
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
```

## Parents

- [d0c2bef8c397d3e94ec5c09423adf19e02d9fb93](https://git.cafe/gitcafe/zed/commit/d0c2bef8c397d3e94ec5c09423adf19e02d9fb93?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7c391531604d1f813b650da71e6c41a0445c09e5?format=markdown)
