@christiandoxa/prodex 0.104.0 → 0.106.0
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 +213 -18
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -46,13 +46,17 @@ You need at least one logged-in Prodex profile.
|
|
|
46
46
|
|
|
47
47
|
## Installation
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
<details open>
|
|
50
|
+
<summary>Install from npm</summary>
|
|
50
51
|
|
|
51
52
|
```bash
|
|
52
53
|
npm install -g @christiandoxa/prodex
|
|
53
54
|
```
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
</details>
|
|
57
|
+
|
|
58
|
+
<details>
|
|
59
|
+
<summary>Install from source checkout</summary>
|
|
56
60
|
|
|
57
61
|
```bash
|
|
58
62
|
cargo install --path .
|
|
@@ -60,12 +64,17 @@ cargo install --path .
|
|
|
60
64
|
|
|
61
65
|
If you install from source, make sure the `codex` binary in your `PATH` is already installed and up to date.
|
|
62
66
|
|
|
67
|
+
</details>
|
|
68
|
+
|
|
63
69
|
## Optional tools
|
|
64
70
|
|
|
65
|
-
`prodex` can run without Claude-Mem, RTK, SQZ, token-savior, claw-compactor, or
|
|
71
|
+
`prodex` can run without Claude-Mem, RTK, SQZ, token-savior, claw-compactor, or Presidio.
|
|
66
72
|
|
|
67
73
|
Install them only if you want to use commands such as:
|
|
68
74
|
|
|
75
|
+
<details>
|
|
76
|
+
<summary>Optional tool commands</summary>
|
|
77
|
+
|
|
69
78
|
```bash
|
|
70
79
|
prodex caveman mem
|
|
71
80
|
prodex caveman mem rtk
|
|
@@ -73,13 +82,16 @@ prodex rtk
|
|
|
73
82
|
prodex sqz
|
|
74
83
|
prodex tokensavior
|
|
75
84
|
prodex clawcompactor
|
|
76
|
-
prodex
|
|
85
|
+
prodex presidio doctor
|
|
86
|
+
prodex presidio redact --text "My phone is 212-555-1234"
|
|
77
87
|
prodex s
|
|
78
88
|
prodex super
|
|
79
89
|
prodex claude mem
|
|
80
90
|
prodex claude caveman mem
|
|
81
91
|
```
|
|
82
92
|
|
|
93
|
+
</details>
|
|
94
|
+
|
|
83
95
|
<details>
|
|
84
96
|
<summary>Install Claude-Mem</summary>
|
|
85
97
|
|
|
@@ -114,13 +126,13 @@ RTK is used by the `rtk` variants and by my daily `prodex s` / `prodex super` wo
|
|
|
114
126
|
### Homebrew
|
|
115
127
|
|
|
116
128
|
```bash
|
|
117
|
-
brew install rtk
|
|
129
|
+
brew install rtk-ai/tap/rtk
|
|
118
130
|
```
|
|
119
131
|
|
|
120
132
|
### Linux/macOS quick install
|
|
121
133
|
|
|
122
134
|
```bash
|
|
123
|
-
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/
|
|
135
|
+
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/master/install.sh | sh
|
|
124
136
|
```
|
|
125
137
|
|
|
126
138
|
If it installs to `~/.local/bin`, make sure that directory is in your `PATH`:
|
|
@@ -138,7 +150,7 @@ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
|
|
|
138
150
|
### Cargo
|
|
139
151
|
|
|
140
152
|
```bash
|
|
141
|
-
cargo install --git https://github.com/rtk-ai/rtk
|
|
153
|
+
cargo install --git https://github.com/rtk-ai/rtk rtk
|
|
142
154
|
```
|
|
143
155
|
|
|
144
156
|
### Verify RTK
|
|
@@ -154,7 +166,7 @@ Remove it and reinstall from the Git URL:
|
|
|
154
166
|
|
|
155
167
|
```bash
|
|
156
168
|
cargo uninstall rtk
|
|
157
|
-
cargo install --git https://github.com/rtk-ai/rtk
|
|
169
|
+
cargo install --git https://github.com/rtk-ai/rtk rtk
|
|
158
170
|
```
|
|
159
171
|
|
|
160
172
|
### Initialize RTK
|
|
@@ -175,9 +187,165 @@ Then restart your coding tool.
|
|
|
175
187
|
|
|
176
188
|
</details>
|
|
177
189
|
|
|
190
|
+
<details>
|
|
191
|
+
<summary>Install SQZ</summary>
|
|
192
|
+
|
|
193
|
+
SQZ is used by `prodex sqz` and by Super mode when the `sqz-mcp` binary is available on `PATH` or under a managed optimizer checkout.
|
|
194
|
+
|
|
195
|
+
Recommended Linux/macOS install:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
curl -fsSL https://raw.githubusercontent.com/ojuschugh1/sqz/main/install.sh | sh
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Windows PowerShell:
|
|
202
|
+
|
|
203
|
+
```powershell
|
|
204
|
+
irm https://raw.githubusercontent.com/ojuschugh1/sqz/main/install.ps1 | iex
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Alternative npm install:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
npm install -g sqz-cli
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Optional source install:
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
cargo install sqz-cli
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Initialize hooks if you also want SQZ outside Prodex:
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
sqz init --global
|
|
223
|
+
# or only for the current project
|
|
224
|
+
sqz init
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Verify:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
sqz --version
|
|
231
|
+
sqz gain
|
|
232
|
+
which sqz-mcp
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Prodex auto-registers `prodex-sqz` for Super/Caveman overlay sessions when `sqz-mcp` is discoverable.
|
|
236
|
+
|
|
237
|
+
</details>
|
|
238
|
+
|
|
239
|
+
<details>
|
|
240
|
+
<summary>Install token-savior</summary>
|
|
241
|
+
|
|
242
|
+
token-savior is used by `prodex tokensavior` and by Super mode when the `token-savior` binary is available on `PATH` or under a managed optimizer checkout.
|
|
243
|
+
|
|
244
|
+
Recommended isolated install:
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
git clone https://github.com/Mibayy/token-savior ~/.local/share/token-savior
|
|
248
|
+
python3 -m venv ~/.local/token-savior-venv
|
|
249
|
+
~/.local/token-savior-venv/bin/pip install -e "$HOME/.local/share/token-savior[mcp]"
|
|
250
|
+
ln -sf ~/.local/token-savior-venv/bin/token-savior ~/.local/bin/token-savior
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Make sure `~/.local/bin` is on `PATH`:
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
If you use Zsh:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Verify:
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
token-savior --help
|
|
269
|
+
which token-savior
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
Prodex handles MCP registration for its own overlay session when it can find the binary, so you do not need to manually edit `.mcp.json` just for `prodex super`.
|
|
273
|
+
|
|
274
|
+
</details>
|
|
275
|
+
|
|
276
|
+
<details>
|
|
277
|
+
<summary>Install claw-compactor</summary>
|
|
278
|
+
|
|
279
|
+
claw-compactor is used by `prodex clawcompactor` and by Super mode as a deterministic/local context compaction aid.
|
|
280
|
+
|
|
281
|
+
Recommended source install:
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
git clone https://github.com/aeromomo/claw-compactor.git ~/.local/share/claw-compactor
|
|
285
|
+
python3 -m venv ~/.local/claw-compactor-venv
|
|
286
|
+
~/.local/claw-compactor-venv/bin/pip install -e "$HOME/.local/share/claw-compactor[accurate]"
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
If you only need exact token counting for the scripts:
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
~/.local/claw-compactor-venv/bin/pip install tiktoken
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
Expose the checkout to Prodex's managed optimizer discovery:
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
mkdir -p ~/.local/share/prodex-optimizers
|
|
299
|
+
ln -sfn ~/.local/share/claw-compactor ~/.local/share/prodex-optimizers/claw-compactor
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Quick non-destructive benchmark:
|
|
303
|
+
|
|
304
|
+
```bash
|
|
305
|
+
python3 ~/.local/share/claw-compactor/scripts/mem_compress.py /path/to/workspace benchmark
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
</details>
|
|
309
|
+
|
|
310
|
+
<details>
|
|
311
|
+
<summary>Install Presidio</summary>
|
|
312
|
+
|
|
313
|
+
Presidio is used by `prodex presidio` and by the optional Super-mode privacy prompt. It runs as local Analyzer and Anonymizer HTTP services.
|
|
314
|
+
|
|
315
|
+
Fast Docker install using Microsoft's published images:
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
docker pull mcr.microsoft.com/presidio-analyzer
|
|
319
|
+
docker pull mcr.microsoft.com/presidio-anonymizer
|
|
320
|
+
|
|
321
|
+
docker run -d --name presidio-analyzer -p 5002:3000 mcr.microsoft.com/presidio-analyzer:latest
|
|
322
|
+
docker run -d --name presidio-anonymizer -p 5001:3000 mcr.microsoft.com/presidio-anonymizer:latest
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
Source checkout with Compose:
|
|
326
|
+
|
|
327
|
+
```bash
|
|
328
|
+
git clone https://github.com/microsoft/presidio.git ~/.local/share/presidio
|
|
329
|
+
cd ~/.local/share/presidio
|
|
330
|
+
docker compose -f docker-compose-text.yml up -d --build
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
Verify with Prodex:
|
|
334
|
+
|
|
335
|
+
```bash
|
|
336
|
+
prodex presidio doctor
|
|
337
|
+
prodex presidio redact --text "My name is John Smith and my phone is 212-555-1234."
|
|
338
|
+
prodex presidio enable
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
`prodex super` / `prodex s` asks `Use Presidio for data safety? [y/N]` before starting an interactive session. The default is `n`. Answering `y` marks the session as Presidio-enabled and is equivalent to adding the `presidio` prefix to the Super stack.
|
|
342
|
+
|
|
343
|
+
</details>
|
|
344
|
+
|
|
178
345
|
## Quick start
|
|
179
346
|
|
|
180
|
-
|
|
347
|
+
<details open>
|
|
348
|
+
<summary>Import your current Codex login</summary>
|
|
181
349
|
|
|
182
350
|
If your current Codex home is already logged in:
|
|
183
351
|
|
|
@@ -185,7 +353,10 @@ If your current Codex home is already logged in:
|
|
|
185
353
|
prodex profile import-current main
|
|
186
354
|
```
|
|
187
355
|
|
|
188
|
-
|
|
356
|
+
</details>
|
|
357
|
+
|
|
358
|
+
<details>
|
|
359
|
+
<summary>Create profiles from scratch</summary>
|
|
189
360
|
|
|
190
361
|
```bash
|
|
191
362
|
prodex login
|
|
@@ -193,7 +364,10 @@ prodex profile add second
|
|
|
193
364
|
prodex login --profile second
|
|
194
365
|
```
|
|
195
366
|
|
|
196
|
-
|
|
367
|
+
</details>
|
|
368
|
+
|
|
369
|
+
<details>
|
|
370
|
+
<summary>Check profiles and quota</summary>
|
|
197
371
|
|
|
198
372
|
```bash
|
|
199
373
|
prodex profile list
|
|
@@ -201,7 +375,10 @@ prodex quota --all
|
|
|
201
375
|
prodex session list
|
|
202
376
|
```
|
|
203
377
|
|
|
204
|
-
|
|
378
|
+
</details>
|
|
379
|
+
|
|
380
|
+
<details>
|
|
381
|
+
<summary>Start Codex through Prodex</summary>
|
|
205
382
|
|
|
206
383
|
```bash
|
|
207
384
|
prodex
|
|
@@ -213,6 +390,8 @@ Or run a one-off prompt:
|
|
|
213
390
|
prodex exec "review this repo"
|
|
214
391
|
```
|
|
215
392
|
|
|
393
|
+
</details>
|
|
394
|
+
|
|
216
395
|
<details>
|
|
217
396
|
<summary>Import a Copilot CLI account</summary>
|
|
218
397
|
|
|
@@ -227,6 +406,9 @@ When you import a Copilot profile, Prodex does not move the Copilot token into P
|
|
|
227
406
|
|
|
228
407
|
## Daily command: `prodex s`
|
|
229
408
|
|
|
409
|
+
<details open>
|
|
410
|
+
<summary>Super mode overview</summary>
|
|
411
|
+
|
|
230
412
|
For daily work, I use:
|
|
231
413
|
|
|
232
414
|
```bash
|
|
@@ -248,7 +430,7 @@ It combines:
|
|
|
248
430
|
- RTK shell-command guidance
|
|
249
431
|
- full-access launch mode
|
|
250
432
|
- Smart Context Autopilot in the runtime proxy
|
|
251
|
-
- deterministic/local accommodation for `sqz`, `token-savior`, `claw-compactor
|
|
433
|
+
- deterministic/local accommodation for `sqz`, `token-savior`, and `claw-compactor` low-token workflows
|
|
252
434
|
|
|
253
435
|
```bash
|
|
254
436
|
prodex s
|
|
@@ -258,12 +440,24 @@ prodex s exec "review this repo"
|
|
|
258
440
|
`prodex super` expands to:
|
|
259
441
|
|
|
260
442
|
```bash
|
|
261
|
-
prodex caveman mem rtk sqz tokensavior clawcompactor
|
|
443
|
+
prodex caveman mem rtk sqz tokensavior clawcompactor --full-access
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
Before an interactive Super session starts, Prodex asks whether to enable Presidio:
|
|
447
|
+
|
|
448
|
+
```text
|
|
449
|
+
Use Presidio for data safety? [y/N]
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
The default is `n`. Answering `y` is equivalent to adding the `presidio` prefix:
|
|
453
|
+
|
|
454
|
+
```bash
|
|
455
|
+
prodex caveman mem rtk sqz tokensavior clawcompactor presidio --full-access
|
|
262
456
|
```
|
|
263
457
|
|
|
264
458
|
Full access maps to Codex's sandbox-bypass launch flag. Use it only when you intentionally want Codex to run without the normal approval and sandbox protections.
|
|
265
459
|
|
|
266
|
-
Super's built-in optimization stack is deliberately local and deterministic. It preloads the existing Caveman, Claude-Mem, and RTK pieces, auto-registers `sqz-mcp` and `token-savior` MCP servers when those binaries are already on `PATH` or in a managed `prodex-optimizers` checkout, then uses Smart Context Autopilot plus low-token workflow accommodations for targets such as `claw-compactor
|
|
460
|
+
Super's built-in optimization stack is deliberately local and deterministic. It preloads the existing Caveman, Claude-Mem, and RTK pieces, auto-registers `sqz-mcp` and `token-savior` MCP servers when those binaries are already on `PATH` or in a managed `prodex-optimizers` checkout, then uses Smart Context Autopilot plus low-token workflow accommodations for targets such as `claw-compactor`.
|
|
267
461
|
|
|
268
462
|
RTK and SQZ split the token work across different sides of the flow:
|
|
269
463
|
|
|
@@ -272,6 +466,8 @@ RTK and SQZ split the token work across different sides of the flow:
|
|
|
272
466
|
|
|
273
467
|
Managed optimizer checkouts are discovered from `PRODEX_OPTIMIZERS_HOME`, `$XDG_DATA_HOME/prodex-optimizers`, then `~/.local/share/prodex-optimizers`.
|
|
274
468
|
|
|
469
|
+
</details>
|
|
470
|
+
|
|
275
471
|
## Commands
|
|
276
472
|
|
|
277
473
|
<details open>
|
|
@@ -405,7 +601,6 @@ prodex rtk
|
|
|
405
601
|
prodex sqz
|
|
406
602
|
prodex tokensavior
|
|
407
603
|
prodex clawcompactor
|
|
408
|
-
prodex llmmin
|
|
409
604
|
prodex caveman --dry-run
|
|
410
605
|
prodex caveman --profile main
|
|
411
606
|
prodex caveman exec "review this repo in caveman mode"
|
|
@@ -416,7 +611,7 @@ prodex caveman 019c9e3d-45a0-7ad0-a6ee-b194ac2d44f9
|
|
|
416
611
|
|
|
417
612
|
If you use the `mem` variant, Prodex points an existing Claude-Mem Codex setup to the active Prodex session path instead of the default `~/.codex/sessions`.
|
|
418
613
|
|
|
419
|
-
Add optimizer prefixes before Codex args when you want Prodex to inject a specific launch overlay for that session: `mem`, `rtk`, `sqz`, `tokensavior`,
|
|
614
|
+
Add optimizer prefixes before Codex args when you want Prodex to inject a specific launch overlay for that session: `mem`, `rtk`, `sqz`, `tokensavior`, or `clawcompactor`. Top-level shortcuts such as `prodex rtk` and `prodex sqz` map to `prodex caveman <prefix>`.
|
|
420
615
|
|
|
421
616
|
RTK is still an external binary. Install it separately if `rtk gain` is unavailable.
|
|
422
617
|
|
|
@@ -456,7 +651,7 @@ Super also enables Smart Context Autopilot in the runtime proxy.
|
|
|
456
651
|
|
|
457
652
|
It keeps exact pass-through for continuation-sensitive requests. When safe, it uses adaptive token budgeting, artifact-backed large tool outputs, duplicate suppression, blob/noise detection, stable cache-friendly context framing, and critical-signal self-checks to reduce token load without dropping failure details.
|
|
458
653
|
|
|
459
|
-
The Super optimization stack is meant to stay deterministic and local by default. It auto-registers `sqz-mcp` and `token-savior` MCP servers when those binaries are already on `PATH` or in a managed `prodex-optimizers` checkout, and accommodates `claw-compactor`
|
|
654
|
+
The Super optimization stack is meant to stay deterministic and local by default. It auto-registers `sqz-mcp` and `token-savior` MCP servers when those binaries are already on `PATH` or in a managed `prodex-optimizers` checkout, and accommodates `claw-compactor` workflows with local compaction, stable references, and lower-token context shaping rather than hidden remote summarization.
|
|
460
655
|
|
|
461
656
|
RTK handles upstream/input command output before it enters the context window. SQZ handles downstream/context reuse after content is already in the session, using `prodex-sqz` when the MCP server is available.
|
|
462
657
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christiandoxa/prodex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.0",
|
|
4
4
|
"description": "Safe multi-account auto-rotate for Codex CLI with isolated CODEX_HOME profiles",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"@openai/codex": "latest"
|
|
17
17
|
},
|
|
18
18
|
"optionalDependencies": {
|
|
19
|
-
"@christiandoxa/prodex-linux-x64": "0.
|
|
20
|
-
"@christiandoxa/prodex-linux-arm64": "0.
|
|
21
|
-
"@christiandoxa/prodex-darwin-x64": "0.
|
|
22
|
-
"@christiandoxa/prodex-darwin-arm64": "0.
|
|
23
|
-
"@christiandoxa/prodex-win32-x64": "0.
|
|
24
|
-
"@christiandoxa/prodex-win32-arm64": "0.
|
|
19
|
+
"@christiandoxa/prodex-linux-x64": "0.106.0",
|
|
20
|
+
"@christiandoxa/prodex-linux-arm64": "0.106.0",
|
|
21
|
+
"@christiandoxa/prodex-darwin-x64": "0.106.0",
|
|
22
|
+
"@christiandoxa/prodex-darwin-arm64": "0.106.0",
|
|
23
|
+
"@christiandoxa/prodex-win32-x64": "0.106.0",
|
|
24
|
+
"@christiandoxa/prodex-win32-arm64": "0.106.0"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">=18"
|