@imdeadpool/guardex 7.0.20 → 7.0.22
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 -30
- package/package.json +1 -1
- package/src/cli/args.js +804 -2
- package/src/cli/main.js +744 -5101
- package/src/context.js +197 -33
- package/src/doctor/index.js +1071 -0
- package/src/finish/index.js +456 -358
- package/src/git/index.js +645 -32
- package/src/output/index.js +8 -1
- package/src/sandbox/index.js +301 -52
- package/src/scaffold/index.js +681 -22
- package/src/toolchain/index.js +622 -178
- package/templates/scripts/agent-branch-finish.sh +56 -5
- package/templates/scripts/agent-worktree-prune.sh +15 -1
- package/templates/scripts/codex-agent.sh +14 -2
- package/templates/vscode/guardex-active-agents/README.md +3 -1
- package/templates/vscode/guardex-active-agents/extension.js +321 -12
- package/templates/vscode/guardex-active-agents/icon.png +0 -0
- package/templates/vscode/guardex-active-agents/package.json +5 -1
- package/templates/vscode/guardex-active-agents/session-schema.js +233 -29
package/README.md
CHANGED
|
@@ -1,20 +1,59 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img alt="gitguardex logo" src="./logo.png" width="390">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
[](https://www.npmjs.com/package/@imdeadpool/guardex)
|
|
5
|
-
[](https://github.com/recodeee/gitguardex/stargazers)
|
|
6
|
-
[](./LICENSE)
|
|
5
|
+
<h1 align="center"> guardian t-rex for multi-agent repos</h1>
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
<p align="center">
|
|
8
|
+
isolated worktrees, file locks, and PR-only merges for codex, claude, and human teammates
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://www.npmjs.com/package/@imdeadpool/guardex"><img alt="npm version" src="https://img.shields.io/npm/v/%40imdeadpool%2Fguardex?label=npm&style=flat-square&color=cb3837&logo=npm&logoColor=white"></a>
|
|
13
|
+
<a href="https://www.npmjs.com/package/@imdeadpool/guardex"><img alt="npm downloads per month" src="https://img.shields.io/npm/dm/%40imdeadpool%2Fguardex?label=downloads%2Fmonth&style=flat-square&color=0b76c5"></a>
|
|
14
|
+
<a href="https://github.com/recodeee/gitguardex/actions/workflows/ci.yml"><img alt="CI status" src="https://img.shields.io/github/actions/workflow/status/recodeee/gitguardex/ci.yml?branch=main&label=CI&style=flat-square"></a>
|
|
15
|
+
<a href="https://scorecard.dev/viewer/?uri=github.com/recodeee/gitguardex"><img alt="OpenSSF Scorecard" src="https://img.shields.io/ossf-scorecard/github.com/recodeee/gitguardex?label=OpenSSF%20Scorecard&style=flat-square"></a>
|
|
16
|
+
<a href="https://github.com/recodeee/gitguardex/stargazers"><img alt="stars" src="https://img.shields.io/github/stars/recodeee/gitguardex?label=stars&style=flat-square&color=d4ac0d"></a>
|
|
17
|
+
<a href="https://github.com/recodeee/gitguardex/commits/main"><img alt="last commit" src="https://img.shields.io/github/last-commit/recodeee/gitguardex?label=last%20commit&style=flat-square&color=7aa2f7"></a>
|
|
18
|
+
<a href="./LICENSE"><img alt="license" src="https://img.shields.io/npm/l/%40imdeadpool%2Fguardex?label=license&style=flat-square&color=97ca00"></a>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
<p align="center">
|
|
22
|
+
<a href="./about_description.txt">About</a> •
|
|
23
|
+
<a href="#install">Install</a> •
|
|
24
|
+
<a href="#what-it-does">What it does</a> •
|
|
25
|
+
<a href="#daily-workflow">Workflow</a> •
|
|
26
|
+
<a href="#how-it-works-in-vs-code">VS Code</a> •
|
|
27
|
+
<a href="#commands">Commands</a>
|
|
28
|
+
</p>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<h3 align="center">Install in one line</h3>
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm i -g @imdeadpool/guardex
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<sub>
|
|
39
|
+
Then <code>cd</code> into your repo and run <code>gx setup</code> — hook shims, repo state,
|
|
40
|
+
and OMX / OpenSpec / caveman wiring all scaffold in one go.
|
|
41
|
+
</sub>
|
|
42
|
+
</p>
|
|
43
|
+
|
|
44
|
+
<p align="center">
|
|
45
|
+
<strong>guard many agent. keep one repo clean.</strong>
|
|
46
|
+
</p>
|
|
12
47
|
|
|
13
48
|
[about_description.txt](./about_description.txt)
|
|
14
49
|
|
|
15
50
|
Guardian T-Rex for your multi-agent repo. Isolated worktrees, file locks, and PR-only merges stop parallel Codex & Claude agents from overwriting each other's work. Auto-wires Oh My Codex, Oh My Claude, OpenSpec, and Caveman.
|
|
16
51
|
|
|
17
|
-
|
|
52
|
+
<p align="center">
|
|
53
|
+
Guardian T-Rex for your multi-agent repo. Isolated worktrees, file locks, and PR-only merges stop parallel Codex & Claude agents from overwriting each other's work. Auto-wires Oh My Codex, Oh My Claude, OpenSpec, and Caveman.
|
|
54
|
+
</p>
|
|
55
|
+
|
|
56
|
+
---
|
|
18
57
|
|
|
19
58
|
> [!WARNING]
|
|
20
59
|
> Not affiliated with OpenAI, Anthropic, or Codex. Not an official tool.
|
|
@@ -36,30 +75,12 @@ I was running ~30 Codex agents in parallel and hit a wall: they kept working on
|
|
|
36
75
|
|
|
37
76
|
GitGuardex exists to stop that loop. Every agent gets its own worktree, claims the files it's touching, and can't clobber files another agent has claimed. Your local branch stays clean; agents stay in their lanes.
|
|
38
77
|
|
|
78
|
+
## Install
|
|
39
79
|
|
|
40
80
|
<p align="center">
|
|
41
81
|
<img alt="Install GitGuardex" src="https://raw.githubusercontent.com/recodeee/gitguardex/main/docs/images/install-hero.svg" width="680">
|
|
42
82
|
</p>
|
|
43
83
|
|
|
44
|
-
<h3 align="center">Install in one line</h3>
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
npm i -g @imdeadpool/guardex
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
<p align="center">
|
|
51
|
-
<sub>
|
|
52
|
-
Then <code>cd</code> into your repo and run <code>gx setup</code> — hook shims, repo state,
|
|
53
|
-
and OMX / OpenSpec / caveman wiring all scaffold in one go.
|
|
54
|
-
</sub>
|
|
55
|
-
</p>
|
|
56
|
-
|
|
57
|
-
<p align="center">
|
|
58
|
-
<a href="https://www.npmjs.com/package/@imdeadpool/guardex"><img alt="npm" src="https://img.shields.io/npm/v/%40imdeadpool%2Fguardex?label=latest&style=flat-square&color=cb3837&logo=npm&logoColor=white"></a>
|
|
59
|
-
<a href="https://www.npmjs.com/package/@imdeadpool/guardex"><img alt="downloads" src="https://img.shields.io/npm/dm/%40imdeadpool%2Fguardex?label=downloads&style=flat-square&color=0b76c5"></a>
|
|
60
|
-
<a href="https://github.com/recodeee/gitguardex/stargazers"><img alt="stars" src="https://img.shields.io/github/stars/recodeee/gitguardex?style=flat-square&color=d4ac0d"></a>
|
|
61
|
-
</p>
|
|
62
|
-
|
|
63
84
|
### Dashboard
|
|
64
85
|
|
|
65
86
|

|
|
@@ -245,7 +266,7 @@ To install the real companion into local VS Code from a GitGuardex-wired repo:
|
|
|
245
266
|
node scripts/install-vscode-active-agents-extension.js
|
|
246
267
|
```
|
|
247
268
|
|
|
248
|
-
It adds an `Active Agents` view to the Source Control container, groups each live repo into `ACTIVE AGENTS` and `CHANGES` sections, splits `ACTIVE AGENTS` into `BLOCKED`, `WORKING NOW`, `IDLE`, `STALLED`, and `DEAD` when those states are present, reads `.omx/state/active-sessions/*.json`, derives session state from git conflict markers, dirty worktree status, PID liveness, and recent file mtimes, and surfaces working/dead counts in the repo/header affordances. Reload the VS Code window after install.
|
|
269
|
+
It adds an `Active Agents` view to the Source Control container, groups each live repo into `ACTIVE AGENTS` and `CHANGES` sections, splits `ACTIVE AGENTS` into `BLOCKED`, `WORKING NOW`, `IDLE`, `STALLED`, and `DEAD` when those states are present, mirrors the selected session or active-agent count in the VS Code status bar, reads `.omx/state/active-sessions/*.json`, derives session state from git conflict markers, dirty worktree status, PID liveness, and recent file mtimes, and surfaces working/dead counts in the repo/header affordances. Reload the VS Code window after install.
|
|
249
270
|
|
|
250
271
|
---
|
|
251
272
|
|
|
@@ -279,6 +300,8 @@ Setup auto-installs into every nested git repo (e.g. `apps/*/.git`). Submodules
|
|
|
279
300
|
```sh
|
|
280
301
|
gx setup --target /mainfolder
|
|
281
302
|
gx setup --target /mainfolder --no-recursive
|
|
303
|
+
gx setup --target /mainfolder --current
|
|
304
|
+
gx doctor --target /mainfolder --current
|
|
282
305
|
```
|
|
283
306
|
|
|
284
307
|
### Fresh repos + Docker Compose
|
|
@@ -345,6 +368,9 @@ That GitHub release then triggers `.github/workflows/release.yml`, which perform
|
|
|
345
368
|
```sh
|
|
346
369
|
gx prompt # full checklist (paste into Codex/Claude)
|
|
347
370
|
gx prompt --exec # commands only
|
|
371
|
+
gx prompt --part task-loop
|
|
372
|
+
gx prompt --exec --part finish --part cleanup
|
|
373
|
+
gx prompt --list-parts
|
|
348
374
|
gx prompt --snippet # AGENTS.md managed-block template
|
|
349
375
|
```
|
|
350
376
|
|
|
@@ -645,6 +671,16 @@ npm pack --dry-run
|
|
|
645
671
|
<details>
|
|
646
672
|
<summary><strong>v7.x</strong></summary>
|
|
647
673
|
|
|
674
|
+
### v7.0.22
|
|
675
|
+
- Bumped `@imdeadpool/guardex` from `7.0.21` to `7.0.22` so npm can publish the next release from the current merged mainline.
|
|
676
|
+
- The shipped `main` payload already includes lower-token prompt slices, SCM-selected lane visibility, truthful merged-cleanup evidence, the Active Agents brand/icon refresh, and the remaining CLI extraction cleanups without changing Guardex behavior.
|
|
677
|
+
- Keep the release scoped to version and release metadata only; the package payload stays the same as the verified `main` branch contents.
|
|
678
|
+
|
|
679
|
+
### v7.0.21
|
|
680
|
+
- Bumped `@imdeadpool/guardex` from `7.0.20` to `7.0.21` so npm can publish the next release from the current merged mainline.
|
|
681
|
+
- Keep the release scoped to version and release metadata only; the package payload stays the same as the verified `main` branch contents.
|
|
682
|
+
- Published-release automation will pick up this new package version once the matching GitHub release is created.
|
|
683
|
+
|
|
648
684
|
### v7.0.20
|
|
649
685
|
- The VS Code Active Agents tree now exposes worktree-owned SCM changes and lock ownership directly, so operators can see which sandbox owns a dirty file before they act.
|
|
650
686
|
- Guardex now keeps merged cleanup evidence truthful by recording final cleanup proof only after the merge and cleanup state is actually available.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imdeadpool/guardex",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.22",
|
|
4
4
|
"description": "Guardian T-Rex for your multi-agent repo. Isolated worktrees, file locks, and PR-only merges stop parallel Codex & Claude agents from overwriting each other's work. Auto-wires Oh My Codex, Oh My Claude, OpenSpec, and Caveman.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"preferGlobal": true,
|