@imdeadpool/guardex 7.1.1 → 8.2.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 +123 -322
- package/package.json +23 -5
- package/skills/gitguardex/SKILL.md +83 -3
- package/src/agents/finish.js +15 -0
- package/src/ci-init/index.js +0 -1
- package/src/cli/args.js +142 -3
- package/src/cli/commands/branch.js +294 -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 -6
- package/src/finish/heartbeat.js +169 -0
- package/src/finish/index.js +165 -18
- package/src/finish/progress.js +316 -0
- package/src/finish/review-gate.js +453 -32
- package/src/github-api.js +59 -0
- package/src/mcp/collect.js +155 -19
- package/src/mcp/server.js +35 -19
- 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/index.js +4 -16
- package/src/shared-git-state.js +566 -0
- package/templates/AGENTS.multiagent-safety.md +63 -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 +354 -23
- package/templates/scripts/agent-branch-start.sh +49 -22
- package/templates/scripts/agent-claude-stop-finish.sh +194 -0
- package/templates/scripts/agent-file-locks.py +198 -29
- 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,243 +53,167 @@ 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.
|
|
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.
|
|
200
121
|
|
|
201
|
-
|
|
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>
|
|
202
127
|
|
|
203
|
-
|
|
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>
|
|
204
134
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
> `<!-- multiagent-safety:START --> … <!-- multiagent-safety:END -->`.
|
|
209
|
-
> Everything outside that block is preserved byte-for-byte.
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Essential commands
|
|
210
138
|
|
|
211
|
-
|
|
|
139
|
+
| Command | Purpose |
|
|
212
140
|
| --- | --- |
|
|
213
|
-
| `
|
|
214
|
-
| `
|
|
215
|
-
|
|
|
216
|
-
|
|
|
217
|
-
|
|
|
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.
|
|
218
153
|
|
|
219
154
|
---
|
|
220
155
|
|
|
221
|
-
|
|
156
|
+
<details>
|
|
157
|
+
<summary><strong>Advanced setup and maintainer notes</strong></summary>
|
|
222
158
|
|
|
223
|
-
###
|
|
224
|
-
|
|
225
|
-
| command | does |
|
|
226
|
-
| --- | --- |
|
|
227
|
-
| `gx status` | Health check (the default when you type `gx`). |
|
|
228
|
-
| `gx status --strict` | Exit non-zero on findings. |
|
|
229
|
-
| `gx setup` | Full bootstrap. |
|
|
230
|
-
| `gx setup --repair` | Repair only. |
|
|
231
|
-
| `gx setup --install-only` | Scaffold templates, skip global installs. |
|
|
232
|
-
| `gx doctor` | Repair + verify (auto-sandboxes on protected main). |
|
|
159
|
+
### AGENTS.md safety block
|
|
233
160
|
|
|
234
|
-
|
|
161
|
+
GitGuardex preserves your instructions. It only manages content between:
|
|
235
162
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
| `gx sync` | Sync current agent branch against base. |
|
|
241
|
-
| `gx release` | Update the GitHub release from README notes. |
|
|
242
|
-
|
|
243
|
-
### Multi-agent cockpit
|
|
163
|
+
```text
|
|
164
|
+
<!-- multiagent-safety:START -->
|
|
165
|
+
<!-- multiagent-safety:END -->
|
|
166
|
+
```
|
|
244
167
|
|
|
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. |
|
|
168
|
+
### Agent skills
|
|
254
169
|
|
|
255
170
|
```bash
|
|
256
|
-
|
|
171
|
+
npx skills add recodee/gitguardex
|
|
172
|
+
npx skills add recodee/ # browse the namespace
|
|
257
173
|
```
|
|
258
174
|
|
|
259
|
-
`gx
|
|
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.
|
|
260
176
|
|
|
261
|
-
###
|
|
177
|
+
### Package releases
|
|
262
178
|
|
|
263
179
|
```bash
|
|
264
|
-
gx
|
|
265
|
-
gx protect add release staging
|
|
266
|
-
gx protect remove release
|
|
267
|
-
gx protect set main release hotfix
|
|
268
|
-
gx protect reset # back to: dev · main · master
|
|
180
|
+
gx release # create/update the current GitHub release from README notes
|
|
269
181
|
```
|
|
270
182
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
## `09` v6 → v7 migration
|
|
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.
|
|
274
185
|
|
|
275
|
-
|
|
276
|
-
print a deprecation notice; they'll be removed in v8.
|
|
186
|
+
</details>
|
|
277
187
|
|
|
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` |
|
|
188
|
+
## Release notes
|
|
288
189
|
|
|
289
|
-
|
|
190
|
+
<details>
|
|
191
|
+
<summary><strong>v8.x</strong></summary>
|
|
290
192
|
|
|
291
|
-
|
|
193
|
+
### v8.2.0
|
|
194
|
+
- Reduced agent preflight and finish token overhead.
|
|
195
|
+
- Preserved dirty worktrees during stale-worktree cleanup and exposed
|
|
196
|
+
command-specific cleanup help.
|
|
197
|
+
- Added the owning tmux pane and worktree to file-lock conflict output.
|
|
292
198
|
|
|
293
|
-
|
|
199
|
+
### v8.1.1
|
|
200
|
+
- Prevented `gx doctor` from pruning dirty detached or managed worktrees during
|
|
201
|
+
stale-worktree repair.
|
|
294
202
|
|
|
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.
|
|
203
|
+
### v8.1.0
|
|
204
|
+
- Added shared Git lock state so independent clones coordinate file ownership.
|
|
205
|
+
- Aligned npm repository metadata with `opencue/gitguardex` for trusted OIDC
|
|
206
|
+
publishing.
|
|
303
207
|
|
|
304
|
-
|
|
208
|
+
### v8.0.0
|
|
209
|
+
- Added `gx branch finish --fast` for small tasks that should use the PR +
|
|
210
|
+
squash-merge path without repeating local preflight or opt-in AI review.
|
|
211
|
+
- Removed the legacy `cr.yml` AI-review workflow; repository policy and explicit
|
|
212
|
+
Guardex review gates now control merge readiness.
|
|
305
213
|
|
|
306
|
-
|
|
214
|
+
</details>
|
|
307
215
|
|
|
308
|
-
<details
|
|
216
|
+
<details>
|
|
309
217
|
<summary><strong>v7.x</strong></summary>
|
|
310
218
|
|
|
311
219
|
### v7.1.1
|
|
@@ -317,119 +225,12 @@ Being honest about where this still has issues:
|
|
|
317
225
|
committed version is already published. GitHub Actions release publishes keep
|
|
318
226
|
the committed metadata so packed and signed assets stay aligned.
|
|
319
227
|
|
|
320
|
-
### v7.0.43
|
|
321
|
-
- Budget-friendly CI defaults for gitguardex-managed projects: live
|
|
322
|
-
workflows drop `push: main`, gate per-PR jobs on `pull_request.draft
|
|
323
|
-
== false`, add `concurrency: cancel-in-progress`, and split per-runtime
|
|
324
|
-
matrix coverage into a weekly `ci-full.yml`. CodeQL and Scorecard run
|
|
325
|
-
on the weekly schedule + `workflow_dispatch` only. Templates under
|
|
326
|
-
`templates/github/workflows/` carry the same posture so downstream
|
|
327
|
-
projects inherit it via `gx setup`.
|
|
328
|
-
- New `gx ci-init` subcommand scaffolds `ci.yml`, `ci-full.yml`, `cr.yml`,
|
|
329
|
-
and a `README.md` budget-posture guide into a target repo's
|
|
330
|
-
`.github/workflows/` directory. Supports `--target`, `--dry-run`,
|
|
331
|
-
`--force`, `--no-stage`, and `--json`.
|
|
332
|
-
- New `gx budget` subcommand wraps the new GitHub
|
|
333
|
-
`/settings/billing/usage` endpoint (the legacy
|
|
334
|
-
`/settings/billing/actions` endpoint was retired in early 2026) and
|
|
335
|
-
reports monthly Actions minute spend with warn/critical USD thresholds
|
|
336
|
-
per `--org` or `--user`.
|
|
337
|
-
- Per-PR label opt-in for `agent/*` lanes: `needs-review` runs AI code
|
|
338
|
-
review on an otherwise-skipped agent PR; `needs-ci-full` triggers the
|
|
339
|
-
full cross-runtime matrix without waiting for the weekly schedule.
|
|
340
|
-
- `gx branch finish` runs `scripts/agent-preflight.sh` in the worktree
|
|
341
|
-
before pushing. Default script auto-detects pnpm/npm, Rust, and Python
|
|
342
|
-
stacks and refuses the push on verification failure. After pre-flight
|
|
343
|
-
passes, draft PRs are promoted to ready-for-review so the
|
|
344
|
-
budget-friendly CI defaults fire once on a known-passing commit.
|
|
345
|
-
|
|
346
|
-
### v7.0.42
|
|
347
|
-
- Bumped `@imdeadpool/guardex` from `7.0.41` to `7.0.42` so the current
|
|
348
|
-
`main` payload can publish under a fresh npm version after `7.0.41` reached
|
|
349
|
-
the registry.
|
|
350
|
-
- Improves the agent-session and cockpit workflow: `gx agents start/status`
|
|
351
|
-
now share canonical session storage, agent lanes can be previewed, claimed,
|
|
352
|
-
finished by session, and launched through safer supported-agent metadata,
|
|
353
|
-
and cockpit can render live session state through tmux-backed panes.
|
|
354
|
-
- Hardens setup and status hygiene by ignoring local `.codex/` state during
|
|
355
|
-
setup/doctor, avoiding generic OpenSpec dirty-worktree reuse, and pruning
|
|
356
|
-
stale agent sessions from user-facing status surfaces.
|
|
357
|
-
|
|
358
|
-
### v7.0.41
|
|
359
|
-
- Bumped `@imdeadpool/guardex` from `7.0.40` to `7.0.41` so the current
|
|
360
|
-
`main` payload can publish under a fresh npm version after the `v7.0.40`
|
|
361
|
-
GitHub release landed without a matching npm registry package.
|
|
362
|
-
- Ships the Colony companion setup as the default global companion surface:
|
|
363
|
-
`colony` maps to `@imdeadpool/colony-cli`, README setup documents
|
|
364
|
-
`colony install --ide ...`, and status tests/images expect Colony instead
|
|
365
|
-
of cavemem.
|
|
366
|
-
|
|
367
|
-
### v7.0.40
|
|
368
|
-
- Bumped `@imdeadpool/guardex` from `7.0.39` to `7.0.40` so the current
|
|
369
|
-
`main` payload can publish under a fresh npm version after `7.0.39` reached
|
|
370
|
-
the registry.
|
|
371
|
-
- No new CLI command behavior is introduced in this release lane.
|
|
372
|
-
|
|
373
|
-
### v7.0.39
|
|
374
|
-
- Bumped `@imdeadpool/guardex` from `7.0.38` to `7.0.39` so the current
|
|
375
|
-
`main` payload can publish under a fresh npm version after `7.0.38` reached
|
|
376
|
-
the registry.
|
|
377
|
-
- No new CLI command behavior is introduced in this release lane.
|
|
378
|
-
|
|
379
|
-
### v7.0.38
|
|
380
|
-
- Bumped `@imdeadpool/guardex` from `7.0.37` to `7.0.38` so the current
|
|
381
|
-
`main` payload can publish under a fresh npm version after `7.0.37` reached
|
|
382
|
-
the registry.
|
|
383
|
-
- No new CLI command behavior is introduced in this release lane.
|
|
384
|
-
|
|
385
|
-
### v7.0.37
|
|
386
|
-
- Bumped `@imdeadpool/guardex` from `7.0.36` to `7.0.37` so the current
|
|
387
|
-
package can publish under a fresh npm version after `7.0.36` reached the
|
|
388
|
-
registry.
|
|
389
|
-
- Synced the shipped Active Agents template with the canonical VS Code
|
|
390
|
-
extension source so Colony task counts and details install with the package.
|
|
391
|
-
- No new CLI command behavior is introduced in this release lane.
|
|
392
|
-
|
|
393
|
-
### v7.0.36
|
|
394
|
-
- Bumped `@imdeadpool/guardex` from `7.0.35` to `7.0.36` so the latest
|
|
395
|
-
branch-finish cwd-prune fix can ship under a fresh npm version after PR #424.
|
|
396
|
-
- No new CLI command surface is introduced in this release lane.
|
|
397
|
-
|
|
398
|
-
### v7.0.35
|
|
399
|
-
- Bumped `@imdeadpool/guardex` from `7.0.34` to `7.0.35` so the current
|
|
400
|
-
merged `main` payload can publish on a fresh npm version after PR #420.
|
|
401
|
-
- Refreshed README release/skills metadata and shipped Active Agents template
|
|
402
|
-
parity so the current `main` payload passes release verification.
|
|
403
|
-
- No new CLI command behavior is introduced in this release lane.
|
|
404
|
-
|
|
405
228
|
</details>
|
|
406
229
|
|
|
407
230
|
---
|
|
408
231
|
|
|
409
|
-
## `11` Companion tools
|
|
410
|
-
|
|
411
|
-
All optional — but if you're running many agents, you probably want them.
|
|
412
|
-
`gx status` auto-detects each one and reports it in the `Global services`
|
|
413
|
-
block.
|
|
414
|
-
|
|
415
|
-
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.
|
|
416
|
-
|
|
417
|
-
| Tool | What it does | Stars |
|
|
418
|
-
| --- | --- | --- |
|
|
419
|
-
| [**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) |
|
|
420
|
-
| [**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) |
|
|
421
|
-
| [**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) |
|
|
422
|
-
| [**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) |
|
|
423
|
-
| [**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) |
|
|
424
|
-
| [**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) |
|
|
425
|
-
| [**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) |
|
|
426
|
-
| [**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) |
|
|
427
|
-
|
|
428
|
-
---
|
|
429
|
-
|
|
430
232
|
<p align="center">
|
|
431
|
-
<
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
</sub>
|
|
233
|
+
<a href="https://github.com/recodeee/gitguardex/issues">Issues</a> ·
|
|
234
|
+
<a href="./CONTRIBUTING.md">Contributing</a> ·
|
|
235
|
+
<a href="./SECURITY.md">Security</a>
|
|
435
236
|
</p>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imdeadpool/guardex",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.2.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,13 @@
|
|
|
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",
|
|
15
22
|
"prepublishOnly": "node scripts/prepublish-bump-version.js",
|
|
16
23
|
"agent:codex": "bash ./scripts/codex-agent.sh",
|
|
17
24
|
"agent:branch:start": "bash ./scripts/agent-branch-start.sh",
|
|
@@ -56,22 +63,33 @@
|
|
|
56
63
|
"git-hooks",
|
|
57
64
|
"branch-guard",
|
|
58
65
|
"agent-safety",
|
|
59
|
-
"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"
|
|
60
77
|
],
|
|
61
78
|
"author": "recodeecom",
|
|
62
79
|
"repository": {
|
|
63
80
|
"type": "git",
|
|
64
|
-
"url": "git+https://github.com/
|
|
81
|
+
"url": "git+https://github.com/opencue/gitguardex.git"
|
|
65
82
|
},
|
|
66
83
|
"bugs": {
|
|
67
|
-
"url": "https://github.com/
|
|
84
|
+
"url": "https://github.com/opencue/gitguardex/issues"
|
|
68
85
|
},
|
|
69
|
-
"homepage": "https://
|
|
86
|
+
"homepage": "https://gitguardex.com/",
|
|
70
87
|
"funding": "https://github.com/sponsors/recodeecom",
|
|
71
88
|
"publishConfig": {
|
|
72
89
|
"access": "public"
|
|
73
90
|
},
|
|
74
91
|
"devDependencies": {
|
|
92
|
+
"@biomejs/biome": "1.9.4",
|
|
75
93
|
"fast-check": "3.23.2"
|
|
76
94
|
},
|
|
77
95
|
"dependencies": {
|