grepmax 0.7.22 → 0.7.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -100,12 +100,15 @@ In our public benchmarks, `grepmax` can save about 20% of your LLM tokens and de
100
100
 
101
101
  | Tool | Description |
102
102
  | --- | --- |
103
- | `semantic_search` | Code search by meaning. Returns pointers (symbol, file:line, role, calls, summary) by default. Use `root` for cross-directory search, `detail: "code"` for snippets. |
104
- | `search_all` | Search ALL indexed code across every directory. Same pointer format. |
105
- | `code_skeleton` | Collapsed file structure (~4x fewer tokens than reading the full file) |
106
- | `trace_calls` | Call graph who calls a symbol and what it calls (unscoped, crosses project boundaries) |
107
- | `list_symbols` | List indexed functions, classes, and types with definition locations |
108
- | `index_status` | Check index health: chunk counts, indexed directories, model info |
103
+ | `semantic_search` | Code search by meaning. 16 composable params: query, limit, root, path, detail (pointer/code/full), context_lines, min_score, max_per_file, file, exclude, language, role, mode (symbol), include_imports, name_pattern. |
104
+ | `search_all` | Search ALL indexed code. Same params + `projects`/`exclude_projects` to scope by project name. |
105
+ | `code_skeleton` | Collapsed file structure (~4x fewer tokens). Accepts files, directories, or comma-separated paths. `format: "json"` for structured output. |
106
+ | `trace_calls` | Call graph with importers, callers (multi-hop via `depth`), and callees with file:line locations. |
107
+ | `list_symbols` | List indexed symbols with role (ORCH/DEF/IMPL) and export status. |
108
+ | `summarize_project` | High-level project overview languages, directory structure, roles, key symbols, entry points. |
109
+ | `related_files` | Find dependencies and dependents of a file by shared symbol references. |
110
+ | `recent_changes` | Recently modified indexed files with relative timestamps. |
111
+ | `index_status` | Check index health: per-project chunk counts, model info, watcher status. |
109
112
  | `summarize_directory` | Generate LLM summaries for indexed chunks. Summaries appear in search results. |
110
113
 
111
114
  ## Commands
@@ -125,8 +128,17 @@ gmax "how is the database connection pooled?"
125
128
  | `-m <n>` | Max total results to return. | `5` |
126
129
  | `--per-file <n>` | Max matches to show per file. | `3` |
127
130
  | `-c`, `--content` | Show full chunk content instead of snippets. | `false` |
131
+ | `-C <n>`, `--context <n>` | Include N lines before/after each result. | `0` |
128
132
  | `--scores` | Show relevance scores (0-1) for each result. | `false` |
129
133
  | `--min-score <n>` | Filter out results below this score threshold. | `0` |
134
+ | `--root <dir>` | Search a different project directory. | cwd |
135
+ | `--file <name>` | Filter to files matching this name (e.g. `syncer.ts`). | — |
136
+ | `--exclude <prefix>` | Exclude files under this path prefix (e.g. `tests/`). | — |
137
+ | `--lang <ext>` | Filter by file extension (e.g. `ts`, `py`). | — |
138
+ | `--role <role>` | Filter by role: `ORCHESTRATION`, `DEFINITION`, `IMPLEMENTATION`. | — |
139
+ | `--symbol` | Append call graph (importers, callers, callees) after results. | `false` |
140
+ | `--imports` | Prepend file imports to each result. | `false` |
141
+ | `--name <regex>` | Filter results by symbol name regex. | — |
130
142
  | `--compact` | Compact hits view (paths + line ranges + role/preview). | `false` |
131
143
  | `--skeleton` | Show code skeleton for matching files instead of snippets. | `false` |
132
144
  | `--plain` | Disable ANSI colors and use simpler formatting. | `false` |
@@ -136,10 +148,11 @@ gmax "how is the database connection pooled?"
136
148
 
137
149
  ```bash
138
150
  gmax "API rate limiting logic"
139
- gmax "error handling" --per-file 5
140
- gmax "user validation" --compact
141
- gmax "authentication" --scores --min-score 0.5
142
- gmax "database connection" --skeleton
151
+ gmax "auth handler" --role ORCHESTRATION --lang ts --plain
152
+ gmax "database" --file syncer.ts --plain
153
+ gmax "VectorDB" --symbol --plain
154
+ gmax "error handling" -C 5 --imports
155
+ gmax "handler" --name "handle.*" --exclude tests/
143
156
  ```
144
157
 
145
158
  ### `gmax index`
@@ -182,18 +195,57 @@ gmax serve --background # Background mode
182
195
  gmax serve --cpu # Force CPU-only embeddings
183
196
  ```
184
197
 
198
+ ### `gmax trace`
199
+
200
+ Call graph — who imports a symbol, who calls it, and what it calls.
201
+
202
+ ```bash
203
+ gmax trace handleAuth # 1-hop trace
204
+ gmax trace handleAuth -d 2 # 2-hop: callers-of-callers
205
+ ```
206
+
185
207
  ### `gmax skeleton`
186
208
 
187
- Compressed view of a file — signatures with bodies collapsed.
209
+ Compressed view of a file — signatures with bodies collapsed. Supports files, directories, and batch.
188
210
 
189
211
  ```bash
190
- gmax skeleton src/lib/auth.ts
191
- gmax skeleton AuthService # Find symbol, skeletonize its file
192
- gmax skeleton "auth logic" # Search, skeletonize top matches
212
+ gmax skeleton src/lib/auth.ts # Single file
213
+ gmax skeleton src/lib/search/ # All files in directory
214
+ gmax skeleton src/a.ts,src/b.ts # Batch
215
+ gmax skeleton src/lib/auth.ts --json # Structured JSON output
216
+ gmax skeleton AuthService # Find symbol, skeletonize its file
193
217
  ```
194
218
 
195
219
  **Supported Languages:** TypeScript, JavaScript, Python, Go, Rust, Java, C#, C++, C, Ruby, PHP, Swift, Kotlin.
196
220
 
221
+ ### `gmax project`
222
+
223
+ High-level project overview — languages, directory structure, role distribution, key symbols, entry points.
224
+
225
+ ```bash
226
+ gmax project # Current project
227
+ gmax project --root ~/workspace # Different project
228
+ ```
229
+
230
+ ### `gmax related`
231
+
232
+ Find files related by shared symbol references — dependencies and dependents.
233
+
234
+ ```bash
235
+ gmax related src/lib/index/syncer.ts
236
+ gmax related src/commands/mcp.ts -l 5
237
+ ```
238
+
239
+ ### `gmax recent`
240
+
241
+ Show recently modified indexed files with relative timestamps.
242
+
243
+ ```bash
244
+ gmax recent # Last 20 modified files
245
+ gmax recent -l 10 # Last 10
246
+ gmax recent --root ~/workspace # Different project
247
+ ```
248
+
197
249
  ### `gmax config`
198
250
 
199
251
  View or update configuration without the full interactive setup.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.7.22",
3
+ "version": "0.7.23",
4
4
  "author": "Robert Owens <robowens@me.com>",
5
5
  "homepage": "https://github.com/reowens/grepmax",
6
6
  "bugs": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.7.22",
3
+ "version": "0.7.23",
4
4
  "description": "Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.",
5
5
  "author": {
6
6
  "name": "Robert Owens",