grepmax 0.7.35 → 0.7.36
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
|
@@ -125,6 +125,7 @@ gmax "how is the database connection pooled?"
|
|
|
125
125
|
|
|
126
126
|
| Flag | Description | Default |
|
|
127
127
|
| --- | --- | --- |
|
|
128
|
+
| `--agent` | Ultra-compact output for AI agents (one line per result). | `false` |
|
|
128
129
|
| `-m <n>` | Max total results to return. | `5` |
|
|
129
130
|
| `--per-file <n>` | Max matches to show per file. | `3` |
|
|
130
131
|
| `-c`, `--content` | Show full chunk content instead of snippets. | `false` |
|
|
@@ -148,13 +149,15 @@ gmax "how is the database connection pooled?"
|
|
|
148
149
|
|
|
149
150
|
```bash
|
|
150
151
|
gmax "API rate limiting logic"
|
|
151
|
-
gmax "auth handler" --role ORCHESTRATION --lang ts --
|
|
152
|
-
gmax "database" --file syncer.ts --
|
|
153
|
-
gmax "VectorDB" --symbol --
|
|
154
|
-
gmax "error handling" -C 5 --imports
|
|
155
|
-
gmax "handler" --name "handle.*" --exclude tests/
|
|
152
|
+
gmax "auth handler" --role ORCHESTRATION --lang ts --agent
|
|
153
|
+
gmax "database" --file syncer.ts --agent
|
|
154
|
+
gmax "VectorDB" --symbol --agent
|
|
155
|
+
gmax "error handling" -C 5 --imports --plain
|
|
156
|
+
gmax "handler" --name "handle.*" --exclude tests/ --agent
|
|
156
157
|
```
|
|
157
158
|
|
|
159
|
+
> **For AI agents:** Use `--agent` for the most token-efficient output (~90% fewer tokens than default). Output format: `file:line symbol [role] — summary`
|
|
160
|
+
|
|
158
161
|
### `gmax index`
|
|
159
162
|
|
|
160
163
|
Index a directory into the centralized store.
|
package/package.json
CHANGED
|
@@ -78,7 +78,7 @@ gmax doctor # health check
|
|
|
78
78
|
## Workflow
|
|
79
79
|
|
|
80
80
|
1. **Explore** — `Bash(gmax project)` for overview of a new codebase
|
|
81
|
-
2. **Search** — `Bash(gmax "query" --
|
|
81
|
+
2. **Search** — `Bash(gmax "query" --agent)` to find code. Add `--symbol` for function/class names.
|
|
82
82
|
3. **Read** — `Read file:line` for specific ranges
|
|
83
83
|
4. **Skeleton** — `Bash(gmax skeleton <path>)` before reading large files
|
|
84
84
|
5. **Trace** — `Bash(gmax trace <symbol> -d 2)` for call flow
|