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
| Find a specific function |~40,000 tokens |~200 tokens|**99.5%**|
13
+
| Read one function body |~40,000 tokens |~500 tokens|**98.7%**|
14
+
| Understand module API |~15,000 tokens |~800 tokens|**94.7%**|
15
15
16
16
---
17
17
@@ -28,7 +28,7 @@
28
28
}
29
29
```
30
30
31
-
Fetches source via `git/trees?recursive=1` (single API call), filters through security pipeline, parses with tree-sitter, summarizes, saves index + raw files.
31
+
Fetches source via `git/trees?recursive=1` (single API call), filters through the security pipeline, parses with tree-sitter, summarizes, and saves the index plus raw files.
32
32
33
33
#### `index_folder` — Index a local folder
34
34
@@ -40,7 +40,7 @@ Fetches source via `git/trees?recursive=1` (single API call), filters through se
40
40
}
41
41
```
42
42
43
-
Walks local directory with full security controls: path traversal prevention, symlink escape protection, secret detection, binary filtering, .gitignore respect.
43
+
Walks the local directory with full security controls: path traversal prevention, symlink escape protection, secret detection, binary filtering, and `.gitignore` respect.
44
44
45
45
#### `invalidate_cache` — Delete index for a repository
46
46
@@ -52,11 +52,13 @@ Walks local directory with full security controls: path traversal prevention, sy
52
52
53
53
Deletes both the index JSON and raw content directory.
54
54
55
+
---
56
+
55
57
### Discovery Tools
56
58
57
59
#### `list_repos` — List indexed repositories
58
60
59
-
No input required. Returns all indexed repos with symbol counts, file counts, languages, and index version.
61
+
No input required. Returns all indexed repositories with symbol counts, file counts, languages, and index version.
60
62
61
63
#### `get_file_tree` — Get file structure
62
64
@@ -67,7 +69,7 @@ No input required. Returns all indexed repos with symbol counts, file counts, la
67
69
}
68
70
```
69
71
70
-
Returns nested directory tree with per-file language and symbol count annotations.
72
+
Returns a nested directory tree with per-file language and symbol count annotations.
71
73
72
74
#### `get_file_outline` — Get symbols in a file
73
75
@@ -78,9 +80,9 @@ Returns nested directory tree with per-file language and symbol count annotation
78
80
}
79
81
```
80
82
81
-
Returns hierarchical symbol tree (classes contain methods) with signatures and summaries. No source code — use `get_symbol` for that.
83
+
Returns a hierarchical symbol tree (classes contain methods) with signatures and summaries. Source code is not included; use `get_symbol` for that.
@@ -90,6 +92,8 @@ Returns hierarchical symbol tree (classes contain methods) with signatures and s
90
92
91
93
Returns directory file counts, language breakdown, and symbol kind distribution. Lighter than `get_file_tree`.
92
94
95
+
---
96
+
93
97
### Retrieval Tools
94
98
95
99
#### `get_symbol` — Get full source of a symbol
@@ -103,7 +107,7 @@ Returns directory file counts, language breakdown, and symbol kind distribution.
103
107
}
104
108
```
105
109
106
-
Retrieves source via byte-offset seeking (O(1)). Optional `verify` re-hashes source and compares to stored `content_hash`. Optional `context_lines` includes surrounding lines.
110
+
Retrieves source via byte-offset seeking (O(1)). Optional `verify` re-hashes the source and compares it to the stored `content_hash`. Optional `context_lines` includes surrounding lines.
@@ -114,7 +118,9 @@ Retrieves source via byte-offset seeking (O(1)). Optional `verify` re-hashes sou
114
118
}
115
119
```
116
120
117
-
Returns symbols list + errors list for any IDs not found.
121
+
Returns a list of symbols plus an error list for any IDs not found.
122
+
123
+
---
118
124
119
125
### Search Tools
120
126
@@ -144,7 +150,7 @@ Weighted scoring search across name, signature, summary, keywords, and docstring
144
150
}
145
151
```
146
152
147
-
Case-insensitive substring search across indexed file contents. Returns matching lines with file, line number, and context. Use when symbol search misses (string literals, comments, config values).
153
+
Case-insensitive substring search across indexed file contents. Returns matching lines with file, line number, and surrounding context. Use when symbol search misses (string literals, comments, config values).
148
154
149
155
---
150
156
@@ -188,30 +194,31 @@ class CodeIndex:
188
194
languages: dict[str, int] # language → file count
189
195
symbols: list[dict] # Serialized symbols (no source)
0 commit comments