@imdeadpool/guardex 8.3.0 → 8.4.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 +40 -21
- package/package.json +1 -1
- package/src/agents/message.js +764 -0
- package/src/agents/sessions.js +23 -1
- package/src/cli/args.js +54 -7
- package/src/cli/commands/agents.js +17 -0
- package/src/cli/commands/branch.js +42 -1
- package/src/cli/commands/mcp.js +4 -3
- package/src/cli/shared/sandbox.js +5 -53
- package/src/mcp/collect.js +52 -3
- package/src/mcp/server.js +54 -2
- package/src/scaffold/index.js +3 -0
- package/templates/scripts/agent-file-locks.py +82 -0
- package/templates/scripts/agent-worktree-prune.sh +14 -4
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
<a href="#install">Install</a> ·
|
|
22
22
|
<a href="#the-problem">Why</a> ·
|
|
23
23
|
<a href="#what-gitguardex-can-do">Capabilities</a> ·
|
|
24
|
+
<a href="#see-every-lane-in-vs-code">VS Code view</a> ·
|
|
24
25
|
<a href="#daily-workflow">Workflow</a> ·
|
|
25
26
|
<a href="#code-assist-review-gate">Code assist</a> ·
|
|
26
27
|
<a href="#essential-commands">Commands</a>
|
|
@@ -59,29 +60,19 @@ Parallel agents can edit the same files, overwrite tests, or commit directly to
|
|
|
59
60
|
|
|
60
61
|
### What GitGuardex can do
|
|
61
62
|
|
|
62
|
-

|
|
63
|
-
|
|
64
|
-
GitGuardex gives every task an isolated lane:
|
|
65
|
-
|
|
66
63
|
<p align="center">
|
|
67
|
-
<
|
|
64
|
+
<img alt="GitGuardex capability map: isolated lanes, evidence-driven shipping, and safe cleanup" src="https://raw.githubusercontent.com/opencue/gitguardex/main/docs/images/capabilities-dark.svg" width="900">
|
|
68
65
|
</p>
|
|
69
66
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
-
|
|
75
|
-
before editing.
|
|
76
|
-
- **Protected base branches** — changes to `main`, `dev`, and `master` must go
|
|
77
|
-
through a PR.
|
|
67
|
+
| Isolate and coordinate | Ship with evidence | Recover without loss |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| One `agent/*` branch and worktree per task. | Preflight, CI, and optional AI review block risky merges. | Dirty, locked, blocked, and uncertain lanes are preserved. |
|
|
70
|
+
| Shared file claims prevent silent overwrites. | The recorded base keeps unattended finishes on the correct target. | Successful lanes are merged, then their temporary branch and worktree are removed. |
|
|
71
|
+
| Protected branches stay behind a PR boundary. | Billing-aware fallbacks waive only explicitly named checks. | Cleanup fails closed instead of deleting work it cannot prove safe. |
|
|
78
72
|
|
|
79
|
-
|
|
73
|
+
<details>
|
|
74
|
+
<summary><strong>Implementation evidence and shipped hardening</strong></summary>
|
|
80
75
|
|
|
81
|
-
- **Preflight, CI, and optional AI review** — broken or risky changes stop
|
|
82
|
-
before merge.
|
|
83
|
-
- **Safe finish** — merge the PR, then remove its temporary branch and
|
|
84
|
-
worktree.
|
|
85
76
|
- **Correct base targeting** — persist and validate each lane's base so an
|
|
86
77
|
unattended finish cannot use another checkout's target. ([#745](https://github.com/opencue/gitguardex/pull/745), [#750](https://github.com/opencue/gitguardex/pull/750), [#751](https://github.com/opencue/gitguardex/pull/751))
|
|
87
78
|
- **Billing-aware CI fallback** — waive only named checks that GitHub could not
|
|
@@ -92,9 +83,6 @@ GitGuardex gives every task an isolated lane:
|
|
|
92
83
|
- **Reusable successful preflight** — reuse proof only while the source HEAD,
|
|
93
84
|
base commit, command, and script stay unchanged; billing-waiver preflights
|
|
94
85
|
are never cached. ([#757](https://github.com/opencue/gitguardex/pull/757))
|
|
95
|
-
|
|
96
|
-
#### 🧹 Recover without losing work
|
|
97
|
-
|
|
98
86
|
- **Fail-closed cleanup** — preserve dirty, locked, open-PR, blocked, or
|
|
99
87
|
uncertain lanes; close idle clean worktrees without deleting their branches.
|
|
100
88
|
([#741](https://github.com/opencue/gitguardex/pull/741), [#744](https://github.com/opencue/gitguardex/pull/744), [#746](https://github.com/opencue/gitguardex/pull/746), [#752](https://github.com/opencue/gitguardex/pull/752))
|
|
@@ -102,6 +90,27 @@ GitGuardex gives every task an isolated lane:
|
|
|
102
90
|
VS Code worktree providers, and keep `gx branch finish --help` free of
|
|
103
91
|
repository side effects. ([#742](https://github.com/opencue/gitguardex/pull/742), [#747](https://github.com/opencue/gitguardex/pull/747), [#748](https://github.com/opencue/gitguardex/pull/748), [#754](https://github.com/opencue/gitguardex/pull/754))
|
|
104
92
|
|
|
93
|
+
</details>
|
|
94
|
+
|
|
95
|
+
### See every lane in VS Code
|
|
96
|
+
|
|
97
|
+
Create an explicit multi-root workspace when you want every managed worktree to
|
|
98
|
+
appear as its own Source Control repository:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
gx setup --vscode-worktree-view
|
|
102
|
+
code ../<repo>-branches.code-workspace
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
<p align="center">
|
|
106
|
+
<img alt="VS Code Explorer showing separate Codex and Claude worktree groups" src="https://raw.githubusercontent.com/opencue/gitguardex/main/docs/images/vscode-worktrees-overview.png" width="668">
|
|
107
|
+
</p>
|
|
108
|
+
|
|
109
|
+
The generated workspace enables Git subfolder discovery, worktree detection,
|
|
110
|
+
and an empty repository-scan exclusion list. This is opt-in: GitGuardex does not
|
|
111
|
+
rewrite your repository's `.gitignore` or loosen the default single-repository
|
|
112
|
+
workspace. Disable future generation with `--no-vscode-worktree-view`.
|
|
113
|
+
|
|
105
114
|
---
|
|
106
115
|
|
|
107
116
|
## Daily workflow
|
|
@@ -178,6 +187,8 @@ the PR as a readable severity, location, and finding table.
|
|
|
178
187
|
| `gx branch finish --via-pr --wait-for-merge --cleanup` | Ship safely through a PR. |
|
|
179
188
|
| `gx branch finish --fast` | Squash-merge a locally verified small change without local preflight or AI review. |
|
|
180
189
|
| `gx agents status` | Show active agent lanes. |
|
|
190
|
+
| `gx agents send --session <id> --message <text>` | Deliver safely to an idle agent or queue for its next turn. |
|
|
191
|
+
| `gx agents inbox [--ack <message-id>]` | Read or acknowledge the authenticated standalone message queue. |
|
|
181
192
|
| `gx cleanup` | Prune merged or stale worktrees. |
|
|
182
193
|
|
|
183
194
|
Need the terminal cockpit? Run `gx cockpit`; see the
|
|
@@ -222,6 +233,14 @@ finds the last published GitHub release, and writes one grouped GitHub release b
|
|
|
222
233
|
<details>
|
|
223
234
|
<summary><strong>v8.x</strong></summary>
|
|
224
235
|
|
|
236
|
+
### v8.4.0
|
|
237
|
+
- Added authenticated agent messaging that delivers live when safe and queues
|
|
238
|
+
durably when Nodeterm or tmux delivery is unavailable.
|
|
239
|
+
- Added worktree-shared CLI and MCP inbox operations for reading and
|
|
240
|
+
acknowledging queued agent messages.
|
|
241
|
+
- Improved stale Codex worktree recovery and VS Code visibility for managed
|
|
242
|
+
worktrees.
|
|
243
|
+
|
|
225
244
|
### v8.3.0
|
|
226
245
|
- Added adaptive direct-main agent work and branch-targeted `gx sync`.
|
|
227
246
|
- Made worktree cleanup safer by preserving active or locked lanes while pruning
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imdeadpool/guardex",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.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,
|