You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`gcode search-symbol "name" [PATH ...]` — exact-first symbol lookup with deterministic ranking; add `--with-graph` to include FalkorDB graph neighbors when available
18
18
-`gcode search-text "query" [PATH ...]` — pg_search BM25 search on symbol names, signatures, and docstrings
19
+
-`gcode grep "pattern" [PATH ...]` — exact indexed content grep over `code_content_chunks`; use `gcode grep "pattern" src -m 50` to cap matching lines
19
20
-`gcode search-content "query" [PATH ...]` — full-text search across repo text chunks: source, comments, docs/Markdown, skill files, configs, scripts, CSS, SQL, and extensionless text
20
21
21
-
Search filters compose: `search` and `search-symbol` accept `--kind <kind>`; use `gcode kinds` to discover values. All search commands accept positional path filters after the query (paths or globs, OR semantics), plus `--language <lang>`, `--limit N`, and `--offset N` for scoped or paginated results. Hybrid JSON results include final display `score`, raw `rrf_score`, and deterministic `sources`; path globs that require post-filter fallback surface a hint/warning.
22
+
Search filters compose: `search` and `search-symbol` accept `--kind <kind>`; use `gcode kinds` to discover values. Ranked search commands accept positional path filters after the query (paths or globs, OR semantics), plus `--language <lang>`, `--limit N`, and `--offset N` for scoped or paginated results. `gcode grep` accepts positional paths, `-g/--glob`, `-i`, `-F`, `-C/-A/-B`, and `-m/--max-count`; it rejects `--limit`. Hybrid JSON results include final display `score`, raw `rrf_score`, and deterministic `sources`; path globs that require post-filter fallback surface a hint/warning.
22
23
23
24
## Retrieval
24
25
@@ -32,7 +33,7 @@ Symbol IDs must be full stored UUIDs from `gcode search`, `gcode search-symbol`,
32
33
33
34
When navigating code for context or understanding:
34
35
35
-
1.**Locate with gcode**: `gcode search "concept"`, `gcode search-symbol "name"`, or `gcode search-content "text"`to find relevant hits.
36
+
1.**Locate with gcode**: `gcode grep "exact string"` for exact line matches, `gcode search "concept"`, `gcode search-symbol "name"`, or `gcode search-content "text"`for ranked/fuzzy hits.
36
37
2.**Survey file structure**: `gcode outline path/to/file` to see the symbol hierarchy without reading the whole file.
37
38
3.**Retrieve exact code**: `gcode symbol <full-uuid>` or `gcode symbols <full-uuid> <full-uuid> ...` using IDs from search or outline.
38
39
4.**Fetch tight neighboring context only when needed**: use `sed`/`awk` only for tight neighboring context (1-3 lines) after symbol retrieval.
@@ -64,6 +65,7 @@ Use `gcode` directly for the code-index graph projection via the Gobby daemon.
64
65
for the UI, but graph sync/read/lifecycle behavior lives in `gcode`.
65
66
66
67
-`gcode graph sync-file --file <file>` — sync one indexed file into the graph projection
0 commit comments