@imdeadpool/guardex 7.1.0 → 8.1.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 +122 -322
- package/package.json +25 -5
- package/scripts/prepublish-bump-version.js +191 -0
- package/skills/gitguardex/SKILL.md +83 -3
- package/src/agents/activity.js +279 -0
- package/src/agents/finish.js +15 -0
- package/src/ci-init/index.js +0 -1
- package/src/cli/args.js +203 -6
- package/src/cli/commands/agents.js +17 -0
- package/src/cli/commands/branch.js +267 -14
- package/src/cli/commands/claude.js +15 -0
- package/src/cli/commands/doctor.js +26 -0
- package/src/cli/commands/onboard.js +293 -0
- package/src/cli/commands/prompt.js +15 -3
- package/src/cli/commands/review.js +18 -0
- package/src/cli/commands/setup.js +8 -6
- package/src/cli/commands/status.js +12 -0
- package/src/cli/main.js +2 -0
- package/src/cli/shared-locks.js +304 -0
- package/src/context.js +21 -3
- package/src/core/runtime.js +33 -1
- package/src/doctor/index.js +58 -5
- package/src/finish/heartbeat.js +169 -0
- package/src/finish/index.js +106 -4
- package/src/finish/progress.js +262 -0
- package/src/finish/review-gate.js +453 -32
- package/src/github-api.js +59 -0
- package/src/mcp/collect.js +111 -12
- package/src/mcp/server.js +10 -4
- package/src/output/index.js +210 -0
- package/src/pr-checks.js +121 -0
- package/src/pr-review.js +581 -51
- package/src/pr.js +143 -21
- package/src/provider-binary.js +101 -0
- package/src/review-diff.js +116 -0
- package/src/review-fix.js +229 -0
- package/src/sandbox/index.js +11 -5
- package/src/scaffold/agent-worktree-prep.js +9 -2
- package/src/scaffold/index.js +4 -16
- package/src/scaffold/provision-config.js +314 -0
- package/src/shared-git-state.js +566 -0
- package/src/terminal/kitty.js +20 -0
- package/src/terminal/tmux.js +9 -0
- package/templates/AGENTS.multiagent-safety.md +73 -11
- package/templates/AGENTS.multiagent-safety.min.md +1 -0
- package/templates/codex/skills/gitguardex/SKILL.md +83 -3
- package/templates/githooks/post-checkout +4 -9
- package/templates/githooks/pre-commit +17 -1
- package/templates/github/workflows/README.md +30 -23
- package/templates/scripts/agent-autofinish-watch.sh +280 -0
- package/templates/scripts/agent-branch-finish.sh +363 -26
- package/templates/scripts/agent-branch-start.sh +76 -25
- package/templates/scripts/agent-claude-stop-finish.sh +194 -0
- package/templates/scripts/agent-file-locks.py +390 -52
- package/templates/scripts/agent-preflight.sh +14 -2
- package/templates/scripts/agent-stalled-report.sh +40 -0
- package/templates/scripts/codex-agent.sh +10 -63
- package/templates/github/workflows/cr.yml +0 -46
package/README.md
CHANGED
|
@@ -1,39 +1,33 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img alt="
|
|
2
|
+
<img alt="GitGuardex logo" src="./logo.png" width="240">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<h1 align="center">
|
|
5
|
+
<h1 align="center">GitGuardex</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
<strong>Safe parallel work for Codex, Claude, and humans.</strong><br>
|
|
9
|
+
One task → one worktree → one PR → one clean merge.
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
|
-
|
|
13
12
|
<p align="center">
|
|
14
13
|
<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>
|
|
15
|
-
<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>
|
|
16
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>
|
|
17
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>
|
|
18
|
-
<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>
|
|
19
|
-
<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>
|
|
16
|
+
<a href="https://github.com/recodeee/gitguardex/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/recodeee/gitguardex?label=stars&style=flat-square&color=d4ac0d"></a>
|
|
20
17
|
<a href="./LICENSE"><img alt="license" src="https://img.shields.io/npm/l/%40imdeadpool%2Fguardex?label=license&style=flat-square&color=97ca00"></a>
|
|
21
18
|
</p>
|
|
22
19
|
|
|
23
20
|
<p align="center">
|
|
24
|
-
<a href="#
|
|
25
|
-
<a href="#
|
|
26
|
-
<a href="#
|
|
27
|
-
<a href="#
|
|
28
|
-
<a href="#
|
|
29
|
-
<a href="#08--commands">Commands</a> ·
|
|
30
|
-
<a href="#09--v6--v7-migration">Migration</a> ·
|
|
31
|
-
<a href="#11--companion-tools">Companions</a>
|
|
21
|
+
<a href="#install">Install</a> ·
|
|
22
|
+
<a href="#the-problem">Why</a> ·
|
|
23
|
+
<a href="#daily-workflow">Workflow</a> ·
|
|
24
|
+
<a href="#code-assist-review-gate">Code assist</a> ·
|
|
25
|
+
<a href="#essential-commands">Commands</a>
|
|
32
26
|
</p>
|
|
33
27
|
|
|
34
28
|
---
|
|
35
29
|
|
|
36
|
-
##
|
|
30
|
+
## Install
|
|
37
31
|
|
|
38
32
|
<p align="center">
|
|
39
33
|
<img alt="Install GitGuardex" src="https://raw.githubusercontent.com/recodeee/gitguardex/main/docs/images/install-hero.svg" width="680">
|
|
@@ -42,26 +36,16 @@
|
|
|
42
36
|
```bash
|
|
43
37
|
npm i -g @imdeadpool/guardex
|
|
44
38
|
cd /path/to/your-repo
|
|
45
|
-
gx setup
|
|
39
|
+
gx setup
|
|
40
|
+
gx onboard # optional 2-minute tour
|
|
46
41
|
```
|
|
47
42
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</p>
|
|
43
|
+
Requires **Node.js 18+**, Git, and GitHub CLI (`gh`). Recommended on macOS or
|
|
44
|
+
Linux; use WSL on Windows.
|
|
51
45
|
|
|
52
46
|
> [!WARNING]
|
|
53
|
-
>
|
|
54
|
-
|
|
55
|
-
> [!IMPORTANT]
|
|
56
|
-
> GitGuardex is still being tested in real multi-agent repos. If something
|
|
57
|
-
> feels rough — especially around **cleanup**, **finish**, **merge**, or
|
|
58
|
-
> **recovery** flows — sorry. We're patching as we find things.
|
|
59
|
-
|
|
60
|
-
> [!CAUTION]
|
|
61
|
-
> **Recommended default: macOS or Linux with Codex CLI.** OMX is primarily
|
|
62
|
-
> designed and actively tuned for that path. Native Windows and Codex App are
|
|
63
|
-
> not the default experience, may break or behave inconsistently, and currently
|
|
64
|
-
> receive less support.
|
|
47
|
+
> GitGuardex is an independent project. It is not affiliated with OpenAI,
|
|
48
|
+
> Anthropic, or Codex.
|
|
65
49
|
|
|
66
50
|
---
|
|
67
51
|
|
|
@@ -69,358 +53,174 @@ gx setup # hooks, state, OMX / OpenSpec / caveman wiring — one shot
|
|
|
69
53
|
|
|
70
54
|

|
|
71
55
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
started overwriting or deleting each other's changes. More agents meant
|
|
75
|
-
**less** forward progress, not more.
|
|
76
|
-
|
|
77
|
-
| before · parallel collisions | after · isolated lanes + file locks |
|
|
78
|
-
| --- | --- |
|
|
79
|
-
| `codex-01` → `src/auth/login.ts` · ⚠ clash | `codex-01` → `agent/codex/login-refactor` · ● owned |
|
|
80
|
-
| `codex-02` → `src/auth/login.ts` · ⚠ clash | `codex-02` → `agent/codex/login-tests` · ● owned |
|
|
81
|
-
| `codex-03` → `test/auth.spec.ts` · ⚠ clash | `codex-03` → `agent/codex/session-guard` · ● owned |
|
|
82
|
-
| `claude-a` → `test/auth.spec.ts` · ⚠ clash | `claude-a` → `agent/claude/token-rotation` · ● owned |
|
|
83
|
-
| `codex-04` → `src/auth/session.ts` · ◌ stalled | `human` → `main` (protected) · ● clean |
|
|
56
|
+
Parallel agents can edit the same files, overwrite tests, or commit directly to
|
|
57
|
+
`main`. More agents can create more conflicts instead of more progress.
|
|
84
58
|
|
|
85
59
|
### Solution
|
|
86
60
|
|
|
87
61
|

|
|
88
62
|
|
|
89
|
-
|
|
63
|
+
GitGuardex gives every task an isolated lane:
|
|
90
64
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- **Deletion guard.** Claimed files can't be removed by another agent —
|
|
99
|
-
no more ghost-deleted tests between runs.
|
|
100
|
-
- **Protected-base safety.** `main`, `dev`, `master` are blocked by
|
|
101
|
-
default. Agents must go through PRs.
|
|
102
|
-
- **Auto-merges agent configs.** `oh-my-codex`, `oh-my-claudecode`,
|
|
103
|
-
caveman mode, and OpenSpec all get applied automatically per worktree.
|
|
104
|
-
- **Repair / doctor flow.** When drift happens (and it will), `gx doctor`
|
|
105
|
-
gets you back to a clean, verified state.
|
|
106
|
-
- **Auto-finish on session exit.** Codex exits → Guardex commits sandbox
|
|
107
|
-
changes, syncs against base, retries once if base moved, and opens a PR.
|
|
108
|
-
- **Monorepo + nested repos.** Setup walks into every nested `.git`.
|
|
109
|
-
Submodules and sandboxes are skipped automatically.
|
|
65
|
+
| Guard | Result |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| Separate `agent/*` branch + worktree | Agents do not share a working directory. |
|
|
68
|
+
| Explicit file locks | Other lanes cannot overwrite claimed files. |
|
|
69
|
+
| Protected `main` / `dev` / `master` | Agent changes must go through a PR. |
|
|
70
|
+
| Preflight + CI + optional AI review | Broken or risky changes stop before merge. |
|
|
71
|
+
| Finish + cleanup | The PR merges and the temporary lane is removed. |
|
|
110
72
|
|
|
111
73
|
---
|
|
112
74
|
|
|
113
|
-
##
|
|
114
|
-
|
|
115
|
-
Per new agent task — four steps, every time:
|
|
116
|
-
|
|
117
|
-
| `01` start isolated lane | `02` claim files | `03` implement + verify | `04` finish |
|
|
118
|
-
| --- | --- | --- | --- |
|
|
119
|
-
| Spawns `agent/role/task` branch + its own worktree. | Declare what you're touching. Other agents are blocked from these paths. | Run tests inside the sandbox — not against the live base branch. | Commit, push, open PR, wait for merge, prune the sandbox. |
|
|
75
|
+
## Daily workflow
|
|
120
76
|
|
|
121
77
|
```bash
|
|
122
|
-
# 1
|
|
123
|
-
gx branch start "
|
|
78
|
+
# 1. Start an isolated lane
|
|
79
|
+
gx branch start "fix-auth" "codex"
|
|
124
80
|
|
|
125
|
-
# 2
|
|
126
|
-
gx locks claim --branch "$(git
|
|
81
|
+
# 2. Inside the printed worktree, claim what you will edit
|
|
82
|
+
gx locks claim --branch "$(git branch --show-current)" src/auth.ts test/auth.test.ts
|
|
127
83
|
|
|
128
|
-
# 3
|
|
84
|
+
# 3. Implement and verify
|
|
129
85
|
npm test
|
|
130
86
|
|
|
131
|
-
# 4
|
|
132
|
-
gx branch finish --
|
|
133
|
-
--base main --via-pr --wait-for-merge --cleanup
|
|
87
|
+
# 4. Commit, open a PR, merge, and clean up
|
|
88
|
+
gx branch finish --via-pr --wait-for-merge --cleanup
|
|
134
89
|
```
|
|
135
90
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
> session exits — auto-commits, retries once if the base moved mid-run,
|
|
139
|
-
> then pushes and opens the PR.
|
|
140
|
-
|
|
141
|
-

|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## `05` dmux-style multi-agent cockpit
|
|
146
|
-
|
|
147
|
-
GitGuardex now has a dmux-style cockpit for starting, inspecting, and
|
|
148
|
-
finishing isolated agent lanes from one terminal workspace. It is not a
|
|
149
|
-
dmux clone: GitGuardex keeps safety as the core and adds orchestration
|
|
150
|
-
on top of isolated worktrees, file locks, protected base branches, and
|
|
151
|
-
PR-only finish.
|
|
91
|
+
For a small change that you already verified locally, use the explicit fast
|
|
92
|
+
profile:
|
|
152
93
|
|
|
153
94
|
```bash
|
|
154
|
-
gx
|
|
155
|
-
gx agents start "fix auth tests" --agent codex --base main --claim test/auth.test.js
|
|
156
|
-
gx agents start "fix auth tests" --panel --codex-accounts 3 --base main
|
|
157
|
-
gx agents start "update setup docs" --agent claude --base main --claim README.md
|
|
158
|
-
gx agents status
|
|
159
|
-
gx agents files --branch agent/codex/fix-auth-tests-2026-04-29-21-30
|
|
160
|
-
gx agents diff --branch agent/claude/update-setup-docs-2026-04-29-21-31
|
|
161
|
-
gx agents finish --branch agent/codex/fix-auth-tests-2026-04-29-21-30
|
|
95
|
+
gx branch finish --fast
|
|
162
96
|
```
|
|
163
97
|
|
|
164
|
-
|
|
98
|
+
`--fast` still opens a PR and uses squash merge, but skips the local preflight,
|
|
99
|
+
AI review, and review autofix. Repository branch protection and required CI
|
|
100
|
+
checks still control whether GitHub accepts the merge. Do not use fast mode for
|
|
101
|
+
security-sensitive, migration, dependency, or broad refactor changes.
|
|
102
|
+
|
|
103
|
+
<p align="center">
|
|
104
|
+
<img alt="Guarded VS Code Source Control example" src="https://raw.githubusercontent.com/recodeee/gitguardex/main/docs/images/workflow-source-control-grouped.png" width="760">
|
|
105
|
+
</p>
|
|
165
106
|
|
|
166
107
|
---
|
|
167
108
|
|
|
168
|
-
##
|
|
109
|
+
## Code-assist review gate
|
|
169
110
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
current repo path, and active branch.
|
|
111
|
+
Add `--gate-review` to review the PR before merge. Add `--gate-autofix` to let
|
|
112
|
+
the agent repair blocking findings and run the review again.
|
|
173
113
|
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
▮▮ gitguardex v7.0.31
|
|
178
|
-
─────────────────────────────────────────────────────────────
|
|
179
|
-
repo /Users/you/code/your-repo
|
|
180
|
-
branch agent/codex/login-refactor (sandbox of main)
|
|
181
|
-
hooks ● installed pre-commit · pre-push · post-merge
|
|
182
|
-
locks ● 4 files claimed by 3 agents
|
|
183
|
-
service ● running review-bot · cleanup
|
|
184
|
-
|
|
185
|
-
COMPANIONS
|
|
186
|
-
● oh-my-codex active
|
|
187
|
-
● oh-my-claude-sisyphus active
|
|
188
|
-
● @fission-ai/openspec active
|
|
189
|
-
● colony active
|
|
190
|
-
● cavekit optional · not installed
|
|
191
|
-
● gh authenticated
|
|
192
|
-
|
|
193
|
-
NEXT › gx branch start "task" "agent"
|
|
194
|
-
› gx doctor (if anything drifts)
|
|
114
|
+
```bash
|
|
115
|
+
gx branch finish --via-pr --wait-for-merge --cleanup \
|
|
116
|
+
--gate-review --gate-autofix
|
|
195
117
|
```
|
|
196
118
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
the compact layout everywhere.
|
|
200
|
-
|
|
201
|
-
---
|
|
202
|
-
|
|
203
|
-
## `07` How `AGENTS.md` is handled
|
|
119
|
+
High and critical findings block the merge. The review is posted directly on
|
|
120
|
+
the PR as a readable severity, location, and finding table.
|
|
204
121
|
|
|
205
|
-
>
|
|
206
|
-
>
|
|
207
|
-
|
|
208
|
-
>
|
|
209
|
-
>
|
|
122
|
+
<p align="center">
|
|
123
|
+
<a href="https://github.com/projects-kssk/Wireless_KFB_Project/pull/165">
|
|
124
|
+
<img alt="GitGuardex code-assist blocking a PR with review findings" src="https://raw.githubusercontent.com/recodeee/gitguardex/main/docs/images/code-assist-review-gate.png" width="920">
|
|
125
|
+
</a>
|
|
126
|
+
</p>
|
|
210
127
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
| A root `CLAUDE.md` | Leaves it alone. |
|
|
128
|
+
<p align="center">
|
|
129
|
+
<sub>
|
|
130
|
+
Real example: <a href="https://github.com/projects-kssk/Wireless_KFB_Project/pull/165">Wireless_KFB_Project PR #165</a>
|
|
131
|
+
· <a href="https://raw.githubusercontent.com/recodeee/gitguardex/main/docs/images/code-assist-review-gate.png">open the full-size screenshot</a>
|
|
132
|
+
</sub>
|
|
133
|
+
</p>
|
|
218
134
|
|
|
219
135
|
---
|
|
220
136
|
|
|
221
|
-
##
|
|
222
|
-
|
|
223
|
-
### Core
|
|
137
|
+
## Essential commands
|
|
224
138
|
|
|
225
|
-
|
|
|
139
|
+
| Command | Purpose |
|
|
226
140
|
| --- | --- |
|
|
227
|
-
| `gx status` |
|
|
228
|
-
| `gx
|
|
229
|
-
| `gx
|
|
230
|
-
| `gx
|
|
231
|
-
| `gx
|
|
232
|
-
| `gx
|
|
141
|
+
| `gx` / `gx status` | Show repo safety and the next action. |
|
|
142
|
+
| `gx setup` | Install or refresh Guardex in a repo. |
|
|
143
|
+
| `gx doctor` | Repair Guardex drift. |
|
|
144
|
+
| `gx branch start "task" "agent"` | Create an isolated task lane. |
|
|
145
|
+
| `gx locks claim --branch <branch> <files...>` | Claim files before editing. |
|
|
146
|
+
| `gx branch finish --via-pr --wait-for-merge --cleanup` | Ship safely through a PR. |
|
|
147
|
+
| `gx branch finish --fast` | Squash-merge a locally verified small change without local preflight or AI review. |
|
|
148
|
+
| `gx agents status` | Show active agent lanes. |
|
|
149
|
+
| `gx cleanup` | Prune merged or stale worktrees. |
|
|
150
|
+
|
|
151
|
+
Need the terminal cockpit? Run `gx cockpit`; see the
|
|
152
|
+
[cockpit guide](./docs/agents-cockpit.md). Run `gx --help` for every command.
|
|
233
153
|
|
|
234
|
-
|
|
154
|
+
---
|
|
235
155
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
| `gx finish --all` | Commit + PR + merge every ready `agent/*` branch. |
|
|
239
|
-
| `gx cleanup` | Prune merged / stale branches and worktrees. |
|
|
240
|
-
| `gx sync` | Sync current agent branch against base. |
|
|
241
|
-
| `gx release` | Update the GitHub release from README notes. |
|
|
156
|
+
<details>
|
|
157
|
+
<summary><strong>Advanced setup and maintainer notes</strong></summary>
|
|
242
158
|
|
|
243
|
-
###
|
|
159
|
+
### AGENTS.md safety block
|
|
244
160
|
|
|
245
|
-
|
|
246
|
-
| --- | --- |
|
|
247
|
-
| `gx cockpit` | Create or attach to a repo tmux cockpit session with a status pane. |
|
|
248
|
-
| `gx agents start "<task>" --agent codex` | Start an isolated Codex lane for a task. |
|
|
249
|
-
| `gx agents start "<task>" --agent claude` | Start an isolated Claude Code lane for a task. |
|
|
250
|
-
| `gx agents status` | Show repo agent service status. |
|
|
251
|
-
| `gx agents files --branch <agent/...>` | List files changed by one agent lane. |
|
|
252
|
-
| `gx agents diff --branch <agent/...>` | Show the diff for one agent lane. |
|
|
253
|
-
| `gx agents finish --branch <agent/...>` | Finish one agent session through the existing PR flow. |
|
|
161
|
+
GitGuardex preserves your instructions. It only manages content between:
|
|
254
162
|
|
|
255
|
-
```
|
|
256
|
-
|
|
163
|
+
```text
|
|
164
|
+
<!-- multiagent-safety:START -->
|
|
165
|
+
<!-- multiagent-safety:END -->
|
|
257
166
|
```
|
|
258
167
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
### Protected branches
|
|
168
|
+
### Agent skills
|
|
262
169
|
|
|
263
170
|
```bash
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
gx protect remove release
|
|
267
|
-
gx protect set main release hotfix
|
|
268
|
-
gx protect reset # back to: dev · main · master
|
|
171
|
+
npx skills add recodee/gitguardex
|
|
172
|
+
npx skills add recodee/ # browse the namespace
|
|
269
173
|
```
|
|
270
174
|
|
|
271
|
-
|
|
175
|
+
`gx setup` does not auto-run `npx skills add ...`. If the picker does not show a separate `guardex` skill, that is expected; use the `gitguardex` skill.
|
|
272
176
|
|
|
273
|
-
|
|
177
|
+
### Package releases
|
|
274
178
|
|
|
275
|
-
|
|
276
|
-
|
|
179
|
+
```bash
|
|
180
|
+
gx release # create/update the current GitHub release from README notes
|
|
181
|
+
```
|
|
277
182
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
| `gx init` | `gx setup` |
|
|
281
|
-
| `gx install` | `gx setup --install-only` |
|
|
282
|
-
| `gx fix` | `gx setup --repair` |
|
|
283
|
-
| `gx scan` | `gx status --strict` |
|
|
284
|
-
| `gx copy-prompt` | `gx prompt` |
|
|
285
|
-
| `gx copy-commands` | `gx prompt --exec` |
|
|
286
|
-
| `gx print-agents-snippet` | `gx prompt --snippet` |
|
|
287
|
-
| `gx review` | `gx agents start` |
|
|
183
|
+
`gx release` is the maintainer path for package releases. It reads `README.md`,
|
|
184
|
+
finds the last published GitHub release, and writes one grouped GitHub release body.
|
|
288
185
|
|
|
289
|
-
|
|
186
|
+
</details>
|
|
290
187
|
|
|
291
|
-
##
|
|
188
|
+
## Release notes
|
|
292
189
|
|
|
293
|
-
|
|
190
|
+
<details>
|
|
191
|
+
<summary><strong>v8.x</strong></summary>
|
|
294
192
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
leak `__source-probe-*` worktrees when the sync-guard rebase hit
|
|
300
|
-
conflicts.
|
|
301
|
-
- **Windows.** Most of the hook surface assumes a POSIX shell. Use WSL
|
|
302
|
-
or symlink-enabled git.
|
|
193
|
+
### v8.1.0
|
|
194
|
+
- Added shared Git lock state so independent clones coordinate file ownership.
|
|
195
|
+
- Aligned npm repository metadata with `opencue/gitguardex` for trusted OIDC
|
|
196
|
+
publishing.
|
|
303
197
|
|
|
304
|
-
|
|
198
|
+
### v8.0.0
|
|
199
|
+
- Added `gx branch finish --fast` for small tasks that should use the PR +
|
|
200
|
+
squash-merge path without repeating local preflight or opt-in AI review.
|
|
201
|
+
- Removed the legacy `cr.yml` AI-review workflow; repository policy and explicit
|
|
202
|
+
Guardex review gates now control merge readiness.
|
|
305
203
|
|
|
306
|
-
|
|
204
|
+
</details>
|
|
307
205
|
|
|
308
|
-
<details
|
|
206
|
+
<details>
|
|
309
207
|
<summary><strong>v7.x</strong></summary>
|
|
310
208
|
|
|
311
|
-
### v7.
|
|
312
|
-
-
|
|
313
|
-
|
|
314
|
-
== false`, add `concurrency: cancel-in-progress`, and split per-runtime
|
|
315
|
-
matrix coverage into a weekly `ci-full.yml`. CodeQL and Scorecard run
|
|
316
|
-
on the weekly schedule + `workflow_dispatch` only. Templates under
|
|
317
|
-
`templates/github/workflows/` carry the same posture so downstream
|
|
318
|
-
projects inherit it via `gx setup`.
|
|
319
|
-
- New `gx ci-init` subcommand scaffolds `ci.yml`, `ci-full.yml`, `cr.yml`,
|
|
320
|
-
and a `README.md` budget-posture guide into a target repo's
|
|
321
|
-
`.github/workflows/` directory. Supports `--target`, `--dry-run`,
|
|
322
|
-
`--force`, `--no-stage`, and `--json`.
|
|
323
|
-
- New `gx budget` subcommand wraps the new GitHub
|
|
324
|
-
`/settings/billing/usage` endpoint (the legacy
|
|
325
|
-
`/settings/billing/actions` endpoint was retired in early 2026) and
|
|
326
|
-
reports monthly Actions minute spend with warn/critical USD thresholds
|
|
327
|
-
per `--org` or `--user`.
|
|
328
|
-
- Per-PR label opt-in for `agent/*` lanes: `needs-review` runs AI code
|
|
329
|
-
review on an otherwise-skipped agent PR; `needs-ci-full` triggers the
|
|
330
|
-
full cross-runtime matrix without waiting for the weekly schedule.
|
|
331
|
-
- `gx branch finish` runs `scripts/agent-preflight.sh` in the worktree
|
|
332
|
-
before pushing. Default script auto-detects pnpm/npm, Rust, and Python
|
|
333
|
-
stacks and refuses the push on verification failure. After pre-flight
|
|
334
|
-
passes, draft PRs are promoted to ready-for-review so the
|
|
335
|
-
budget-friendly CI defaults fire once on a known-passing commit.
|
|
336
|
-
|
|
337
|
-
### v7.0.42
|
|
338
|
-
- Bumped `@imdeadpool/guardex` from `7.0.41` to `7.0.42` so the current
|
|
339
|
-
`main` payload can publish under a fresh npm version after `7.0.41` reached
|
|
340
|
-
the registry.
|
|
341
|
-
- Improves the agent-session and cockpit workflow: `gx agents start/status`
|
|
342
|
-
now share canonical session storage, agent lanes can be previewed, claimed,
|
|
343
|
-
finished by session, and launched through safer supported-agent metadata,
|
|
344
|
-
and cockpit can render live session state through tmux-backed panes.
|
|
345
|
-
- Hardens setup and status hygiene by ignoring local `.codex/` state during
|
|
346
|
-
setup/doctor, avoiding generic OpenSpec dirty-worktree reuse, and pruning
|
|
347
|
-
stale agent sessions from user-facing status surfaces.
|
|
348
|
-
|
|
349
|
-
### v7.0.41
|
|
350
|
-
- Bumped `@imdeadpool/guardex` from `7.0.40` to `7.0.41` so the current
|
|
351
|
-
`main` payload can publish under a fresh npm version after the `v7.0.40`
|
|
352
|
-
GitHub release landed without a matching npm registry package.
|
|
353
|
-
- Ships the Colony companion setup as the default global companion surface:
|
|
354
|
-
`colony` maps to `@imdeadpool/colony-cli`, README setup documents
|
|
355
|
-
`colony install --ide ...`, and status tests/images expect Colony instead
|
|
356
|
-
of cavemem.
|
|
357
|
-
|
|
358
|
-
### v7.0.40
|
|
359
|
-
- Bumped `@imdeadpool/guardex` from `7.0.39` to `7.0.40` so the current
|
|
360
|
-
`main` payload can publish under a fresh npm version after `7.0.39` reached
|
|
361
|
-
the registry.
|
|
362
|
-
- No new CLI command behavior is introduced in this release lane.
|
|
363
|
-
|
|
364
|
-
### v7.0.39
|
|
365
|
-
- Bumped `@imdeadpool/guardex` from `7.0.38` to `7.0.39` so the current
|
|
366
|
-
`main` payload can publish under a fresh npm version after `7.0.38` reached
|
|
367
|
-
the registry.
|
|
368
|
-
- No new CLI command behavior is introduced in this release lane.
|
|
369
|
-
|
|
370
|
-
### v7.0.38
|
|
371
|
-
- Bumped `@imdeadpool/guardex` from `7.0.37` to `7.0.38` so the current
|
|
372
|
-
`main` payload can publish under a fresh npm version after `7.0.37` reached
|
|
209
|
+
### v7.1.1
|
|
210
|
+
- Bumped `@imdeadpool/guardex` from `7.1.0` to `7.1.1` so the current
|
|
211
|
+
`main` payload can publish under a fresh npm version after `7.1.0` reached
|
|
373
212
|
the registry.
|
|
374
|
-
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
package can publish under a fresh npm version after `7.0.36` reached the
|
|
379
|
-
registry.
|
|
380
|
-
- Synced the shipped Active Agents template with the canonical VS Code
|
|
381
|
-
extension source so Colony task counts and details install with the package.
|
|
382
|
-
- No new CLI command behavior is introduced in this release lane.
|
|
383
|
-
|
|
384
|
-
### v7.0.36
|
|
385
|
-
- Bumped `@imdeadpool/guardex` from `7.0.35` to `7.0.36` so the latest
|
|
386
|
-
branch-finish cwd-prune fix can ship under a fresh npm version after PR #424.
|
|
387
|
-
- No new CLI command surface is introduced in this release lane.
|
|
388
|
-
|
|
389
|
-
### v7.0.35
|
|
390
|
-
- Bumped `@imdeadpool/guardex` from `7.0.34` to `7.0.35` so the current
|
|
391
|
-
merged `main` payload can publish on a fresh npm version after PR #420.
|
|
392
|
-
- Refreshed README release/skills metadata and shipped Active Agents template
|
|
393
|
-
parity so the current `main` payload passes release verification.
|
|
394
|
-
- No new CLI command behavior is introduced in this release lane.
|
|
213
|
+
- Direct maintainer `npm publish` now checks npm during `prepublishOnly` and
|
|
214
|
+
bumps package release metadata to the next unpublished patch version when the
|
|
215
|
+
committed version is already published. GitHub Actions release publishes keep
|
|
216
|
+
the committed metadata so packed and signed assets stay aligned.
|
|
395
217
|
|
|
396
218
|
</details>
|
|
397
219
|
|
|
398
220
|
---
|
|
399
221
|
|
|
400
|
-
## `11` Companion tools
|
|
401
|
-
|
|
402
|
-
All optional — but if you're running many agents, you probably want them.
|
|
403
|
-
`gx status` auto-detects each one and reports it in the `Global services`
|
|
404
|
-
block.
|
|
405
|
-
|
|
406
|
-
Install repo skills with `npx skills add recodee/gitguardex`; the npm package also ships the root `skills/` catalog so the npx installer can read the GitGuardex skill from the published tarball. `npx skills add recodee/` opens the recodee namespace. `gx setup` does not auto-run `npx skills add ...`. If the picker does not show a separate `guardex` skill, that is expected.
|
|
407
|
-
|
|
408
|
-
| Tool | What it does | Stars |
|
|
409
|
-
| --- | --- | --- |
|
|
410
|
-
| [**oh-my-codex**](https://github.com/Yeachan-Heo/oh-my-codex) — `npm i -g oh-my-codex` | Codex config + skills framework. Merged into every agent worktree so each spawned Codex starts with the same tuned config. | [](https://github.com/Yeachan-Heo/oh-my-codex) |
|
|
411
|
-
| [**oh-my-claudecode**](https://github.com/Yeachan-Heo/oh-my-claudecode) — `npm i -g oh-my-claude-sisyphus@latest` | Claude-side mirror of oh-my-codex. Skills, commands, and defaults for every Claude Code session. | [](https://github.com/Yeachan-Heo/oh-my-claudecode) |
|
|
412
|
-
| [**OpenSpec**](https://github.com/Fission-AI/OpenSpec) — `npm i -g @fission-ai/openspec` | Structured plan / change / apply / archive flow so long agent runs don't drift off-task. | [](https://github.com/Fission-AI/OpenSpec) |
|
|
413
|
-
| [**Colony**](https://github.com/recodeee/colony) — `npm i -g @imdeadpool/colony-cli` | Multi-agent task coordination and handoff routing. After install, register runtimes with `colony install --ide codex`, `colony install --ide claude-code`, `colony install --ide cursor`, `colony install --ide gemini-cli`, or `colony install --ide opencode`, then verify with `colony status`. | [](https://github.com/recodeee/colony) |
|
|
414
|
-
| [**cavekit**](https://github.com/JuliusBrussee/cavekit) — `npx skills add JuliusBrussee/cavekit` | Spec-driven build loop with `spec`, `build`, `check`, `caveman`, `backprop` skills bundled in. | [](https://github.com/JuliusBrussee/cavekit) |
|
|
415
|
-
| [**caveman**](https://github.com/JuliusBrussee/caveman) — `npx skills add JuliusBrussee/caveman` | Ultra-compressed response mode for Claude / Codex. Less output-token churn on long reviews and debug loops. | [](https://github.com/JuliusBrussee/caveman) |
|
|
416
|
-
| [**codex-account-switcher**](https://github.com/recodeecom/codex-account-switcher-cli) — `npm i -g @imdeadpool/codex-account-switcher` | Multi-identity Codex account switcher. Auto-registers accounts on `codex login`; switch with one command. | [](https://github.com/recodeecom/codex-account-switcher-cli) |
|
|
417
|
-
| [**GitHub CLI (`gh`)**](https://github.com/cli/cli) — see [cli.github.com](https://cli.github.com/) | Required for PR / merge automation. `gx branch finish --via-pr --wait-for-merge` depends on it. If `ghx` is on `PATH`, Guardex uses that GitHub CLI cache proxy automatically; set `GUARDEX_GH_BIN=gh` to force direct `gh`. | [](https://github.com/cli/cli) |
|
|
418
|
-
|
|
419
|
-
---
|
|
420
|
-
|
|
421
222
|
<p align="center">
|
|
422
|
-
<
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
</sub>
|
|
223
|
+
<a href="https://github.com/recodeee/gitguardex/issues">Issues</a> ·
|
|
224
|
+
<a href="./CONTRIBUTING.md">Contributing</a> ·
|
|
225
|
+
<a href="./SECURITY.md">Security</a>
|
|
426
226
|
</p>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imdeadpool/guardex",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.1.0",
|
|
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,
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"test": "node --test test/*.test.js",
|
|
15
|
+
"test:coverage": "node scripts/run-coverage-gate.js",
|
|
16
|
+
"lint": "biome lint bin src scripts test",
|
|
17
|
+
"format": "biome format --write bin src scripts test",
|
|
18
|
+
"format:check": "biome format bin src scripts test",
|
|
19
|
+
"format:check:changed": "node scripts/check-changed-format.js",
|
|
20
|
+
"package:check": "node --check bin/multiagent-safety.js && bash scripts/check-script-symlinks.sh && npm pack --dry-run",
|
|
21
|
+
"verify": "npm run format:check:changed && npm run lint && npm test && npm run package:check",
|
|
22
|
+
"prepublishOnly": "node scripts/prepublish-bump-version.js",
|
|
15
23
|
"agent:codex": "bash ./scripts/codex-agent.sh",
|
|
16
24
|
"agent:branch:start": "bash ./scripts/agent-branch-start.sh",
|
|
17
25
|
"agent:branch:finish": "bash ./scripts/agent-branch-finish.sh",
|
|
@@ -40,6 +48,7 @@
|
|
|
40
48
|
"files": [
|
|
41
49
|
"bin",
|
|
42
50
|
"src",
|
|
51
|
+
"scripts/prepublish-bump-version.js",
|
|
43
52
|
"skills",
|
|
44
53
|
"templates",
|
|
45
54
|
"README.md",
|
|
@@ -54,22 +63,33 @@
|
|
|
54
63
|
"git-hooks",
|
|
55
64
|
"branch-guard",
|
|
56
65
|
"agent-safety",
|
|
57
|
-
"codex"
|
|
66
|
+
"codex",
|
|
67
|
+
"claude",
|
|
68
|
+
"claude-code",
|
|
69
|
+
"ai-agents",
|
|
70
|
+
"git-worktree",
|
|
71
|
+
"file-locks",
|
|
72
|
+
"worktree",
|
|
73
|
+
"openspec",
|
|
74
|
+
"agent-orchestration",
|
|
75
|
+
"pull-request",
|
|
76
|
+
"cli"
|
|
58
77
|
],
|
|
59
78
|
"author": "recodeecom",
|
|
60
79
|
"repository": {
|
|
61
80
|
"type": "git",
|
|
62
|
-
"url": "git+https://github.com/
|
|
81
|
+
"url": "git+https://github.com/opencue/gitguardex.git"
|
|
63
82
|
},
|
|
64
83
|
"bugs": {
|
|
65
|
-
"url": "https://github.com/
|
|
84
|
+
"url": "https://github.com/opencue/gitguardex/issues"
|
|
66
85
|
},
|
|
67
|
-
"homepage": "https://
|
|
86
|
+
"homepage": "https://gitguardex.com/",
|
|
68
87
|
"funding": "https://github.com/sponsors/recodeecom",
|
|
69
88
|
"publishConfig": {
|
|
70
89
|
"access": "public"
|
|
71
90
|
},
|
|
72
91
|
"devDependencies": {
|
|
92
|
+
"@biomejs/biome": "1.9.4",
|
|
73
93
|
"fast-check": "3.23.2"
|
|
74
94
|
},
|
|
75
95
|
"dependencies": {
|