Skip to content

Commit 8ea82ed

Browse files
Test UserAlexMikhalev
authored andcommitted
docs(agents): use terraphim-grep, not opencode FFF, for search
Terraphim has its own search stack (fff_search crate / terraphim-grep CLI). opencode's bundled FFF grep/find/glob have a directory-path-filter bug (returns nothing for directory paths; anomalyco/opencode#32688) and are not under Terraphim's control. Document the policy: use terraphim-grep via Bash for content search, git ls-files/fd/find for file-name lookup. Refs terraphim/terraphim-ai#2728
1 parent 7a9086e commit 8ea82ed

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,31 @@ yarn e2e # End-to-end tests
9393
- Use `tmux` to spin off background tasks, read their output, and drive interaction
9494
- Use `tmux` instead of `sleep` to continue working on a project and then read log output
9595

96+
## Search Tooling (use Terraphim's own, not opencode FFF)
97+
98+
Terraphim ships its own file/content search stack (the `fff_search` crate,
99+
exposed via the `terraphim-grep` CLI). **Do not use opencode's bundled FFF
100+
`grep` / `find` / `glob` tools for Terraphim work.** That FFF has a
101+
directory-`path`-filter bug (it returns nothing when `path` is a directory,
102+
while repo-wide and exact-file paths work; tracked at
103+
`anomalyco/opencode#32688`) and is not under Terraphim's control.
104+
105+
Use `terraphim-grep` via Bash for content search -- it honours directory
106+
`--paths`, is KG-curated, and falls back to RLM synthesis when configured:
107+
108+
```bash
109+
# Directory-scoped content search (the exact case opencode FFF gets wrong)
110+
terraphim-grep "<query>" --paths <dir> --role rust-engineer -n 50
111+
112+
# Limit haystack; JSON output; context lines
113+
terraphim-grep "<query>" --haystack code|docs --json -C 3 --role rust-engineer
114+
```
115+
116+
- `--role` is required when multiple project roles are configured
117+
(`rust-engineer`, `ai-engineer`, `devops`).
118+
- For locating files by **name** (not content), use `git ls-files`, `fd`, or
119+
shell `find`/`grep -rn` -- not the opencode FFF `find`/`glob` tools.
120+
96121
## Documentation Management
97122

98123
### File Summaries

0 commit comments

Comments
 (0)