Skip to content

Commit 29522a7

Browse files
author
Test User
committed
docs(agents): update terraphim-grep examples and note code-search default Refs #3025
1 parent e34bd95 commit 29522a7

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

AGENTS.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,19 @@ directory-`path`-filter bug (returns nothing for directory paths; tracked at
8787
Use `terraphim-grep` via Bash:
8888

8989
```bash
90-
# Search all Rust files for a symbol
91-
terraphim-grep "fn ensure_thesaurus_loaded" --type rust
90+
# Search code for a symbol (works without a thesaurus)
91+
terraphim-grep "fn ensure_thesaurus_loaded" --haystack code
9292

9393
# Search with context lines
94-
terraphim-grep "DeviceStorage::init" --type rust -C 3
94+
terraphim-grep "DeviceStorage::init" --haystack code -C 3
9595

9696
# Search a specific directory
97-
terraphim-grep "haystack" crates/terraphim_service/src/
97+
terraphim-grep "haystack" --haystack code --paths terraphim_server/src/
9898
```
9999

100-
`terraphim-grep` is the `fff_search` crate CLI and is always available at
101-
`~/.cargo/bin/terraphim-grep` or on `$PATH` after `cargo install`.
100+
`terraphim-grep` is installed with the `code-search` feature by default and is always
101+
available at `~/.cargo/bin/terraphim-grep` or on `$PATH` after `cargo install`. It works
102+
without a thesaurus in search-only mode.
102103

103104
### File-Name Lookup (find files by name/pattern)
104105

0 commit comments

Comments
 (0)