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 +66 -14
- package/package.json +1 -1
- package/plugins/grepmax/.claude-plugin/plugin.json +1 -1
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.
|
|
104
|
-
| `search_all` | Search ALL indexed code
|
|
105
|
-
| `code_skeleton` | Collapsed file structure (~4x fewer tokens
|
|
106
|
-
| `trace_calls` | Call graph
|
|
107
|
-
| `list_symbols` | List indexed
|
|
108
|
-
| `
|
|
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 "
|
|
140
|
-
gmax "
|
|
141
|
-
gmax "
|
|
142
|
-
gmax "
|
|
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
|
|
192
|
-
gmax skeleton
|
|
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