# Rename regex search tool to grep and accept an include glob pattern \(\#29100\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 107d8ca483276263362c23482612d1cadea81c71

Requested commit: 107d8ca483276263362c23482612d1cadea81c71

Commit: 107d8ca483276263362c23482612d1cadea81c71

Tree: 9377956cdabfd76f8a0cf6a0ddb3fc462c30fc05

Author: Nathan Sobo

Committer: GitHub

## Message

```
Rename regex search tool to grep and accept an include glob pattern (#29100)

This PR renames the `regex_search` tool to `grep` because I think it
conveys more meaning to the model, the idea of searching the filesystem
with a regular expression. It's also one word and the model seems to be
using it effectively after some additional prompt tuning.

It also takes an include pattern to filter on the specific files we try
to search. I'd like to encourage the model to scope its searches more
aggressively, as in my testing, I'm only seeing it filter on file
extension.

Release Notes:

- N/A
```

## Parents

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

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