forge-cc 0.1.22 → 0.1.24
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 +5 -6
- package/package.json +1 -1
- package/skills/forge-go.md +19 -16
- package/skills/forge-setup.md +1 -11
package/README.md
CHANGED
|
@@ -52,7 +52,6 @@ Four commands take you from raw idea to production-ready, merged code.
|
|
|
52
52
|
│ ┌────────────────┐ │
|
|
53
53
|
│ │ VERIFY + PR │ │
|
|
54
54
|
│ │ + CODE REVIEW │ │
|
|
55
|
-
│ │ + AUTO-MERGE │ │
|
|
56
55
|
│ └────────────────┘ │
|
|
57
56
|
│ │
|
|
58
57
|
└──────────────────────────────────────────────────────────────────────────────────┘
|
|
@@ -96,7 +95,7 @@ This is the engine. Each milestone is executed by an autonomous agent team:
|
|
|
96
95
|
└─ Parallel builder agents execute independent tasks
|
|
97
96
|
```
|
|
98
97
|
|
|
99
|
-
After the final wave passes all gates + review, forge creates the PR, waits for Codex review comments, spawns fix agents for any findings
|
|
98
|
+
After the final wave passes all gates + review, forge creates the PR, waits for Codex review comments, and spawns fix agents for any findings. The PR is left for the user to merge.
|
|
100
99
|
|
|
101
100
|
### `npx forge run` -- Auto-Chain Everything
|
|
102
101
|
|
|
@@ -145,9 +144,9 @@ Forge manages your Linear project lifecycle end-to-end. Every state transition h
|
|
|
145
144
|
```
|
|
146
145
|
Linear State: Backlog ──► Planned ──► In Progress ──► In Review ──► Done
|
|
147
146
|
│ │ │ │ │
|
|
148
|
-
Forge Action: triage /forge:spec /forge:go PR created
|
|
149
|
-
creates generates PRD, executes after final
|
|
150
|
-
projects syncs milestones milestone verification
|
|
147
|
+
Forge Action: triage /forge:spec /forge:go PR created user merges
|
|
148
|
+
creates generates PRD, executes after final when ready
|
|
149
|
+
projects syncs milestones milestone verification
|
|
151
150
|
```
|
|
152
151
|
|
|
153
152
|
Set `FORGE_LINEAR_API_KEY` in your environment to enable. Forge creates projects, milestones, and issues during spec, transitions them through states during execution, and marks them done when the PR merges.
|
|
@@ -260,7 +259,7 @@ Expose gates as MCP tools for programmatic access:
|
|
|
260
259
|
| Without forge | With forge |
|
|
261
260
|
|--------------|-----------|
|
|
262
261
|
| Agent writes code, you review everything | Agent teams build, verify, review, and fix their own code |
|
|
263
|
-
| Manual git branching, PRs, merges | Automatic branches, worktrees,
|
|
262
|
+
| Manual git branching, PRs, merges | Automatic branches, worktrees, and PRs |
|
|
264
263
|
| "Tests pass" = done | 8 gates including visual regression, PRD compliance, and AI code review |
|
|
265
264
|
| One agent, one task, serial | Parallel agent teams with wave-based execution |
|
|
266
265
|
| Context rot across long sessions | Fresh session per milestone, no degradation |
|
package/package.json
CHANGED
package/skills/forge-go.md
CHANGED
|
@@ -95,7 +95,9 @@ If `.forge.json` includes `visual` in gates or specifies a `devServerUrl`, captu
|
|
|
95
95
|
3. Screenshots save to `.forge/screenshots/before/`
|
|
96
96
|
4. Stop the dev server
|
|
97
97
|
|
|
98
|
-
This establishes the visual baseline for regression detection.
|
|
98
|
+
This establishes the visual baseline for regression detection.
|
|
99
|
+
|
|
100
|
+
**The visual gate MUST run if configured — do not skip based on your assessment of whether changes affect the UI.** Parser changes, data fixes, and test-only changes can surface unexpected visual regressions. The only valid reason to skip is: `.forge.json` does NOT include `visual` in gates AND does NOT specify a `devServerUrl`.
|
|
99
101
|
|
|
100
102
|
### Step 2.5 — Session Isolation (Automatic)
|
|
101
103
|
|
|
@@ -214,7 +216,18 @@ npx forge verify
|
|
|
214
216
|
|
|
215
217
|
If verification **fails**: proceed to Step 4 (self-healing loop).
|
|
216
218
|
|
|
217
|
-
If verification **passes**: proceed to reviewer.
|
|
219
|
+
If verification **passes**: capture after screenshots (if visual gate configured), then proceed to reviewer.
|
|
220
|
+
|
|
221
|
+
#### 3e-vis. Capture After Screenshots (If Visual Gate Configured)
|
|
222
|
+
|
|
223
|
+
If `.forge.json` includes `visual` in gates or specifies a `devServerUrl`, capture after screenshots:
|
|
224
|
+
|
|
225
|
+
1. Start the dev server (from `.forge.json` devServerUrl or `npm run dev`)
|
|
226
|
+
2. Run `npx forge verify --gate visual --after-only` (or manually call the screenshot capture)
|
|
227
|
+
3. Screenshots save to `.forge/screenshots/after/`
|
|
228
|
+
4. Stop the dev server
|
|
229
|
+
|
|
230
|
+
**This step is mandatory when the visual gate is configured — same rule as Step 2.** The reviewer needs both before and after screenshots to detect visual regressions.
|
|
218
231
|
|
|
219
232
|
#### 3f. Reviewer Consensus Protocol
|
|
220
233
|
|
|
@@ -265,7 +278,7 @@ If no findings (or all findings resolved): print wave completion summary and pro
|
|
|
265
278
|
- agent-1: OK (created file1.ts, file2.ts)
|
|
266
279
|
- agent-2: OK (modified file3.ts)
|
|
267
280
|
- Mechanical verification: PASSED
|
|
268
|
-
- Visual gate: PASSED (3 viewports captured) | SKIPPED (not
|
|
281
|
+
- Visual gate: PASSED (3 viewports captured) | SKIPPED (not in .forge.json gates)
|
|
269
282
|
- Reviewer: {N} findings, {M} resolved, 0 outstanding
|
|
270
283
|
|
|
271
284
|
Proceeding to Wave {N+1}...
|
|
@@ -429,24 +442,12 @@ After `gh pr create` succeeds, poll for Codex review comments:
|
|
|
429
442
|
|
|
430
443
|
5. **Timeout:** If no Codex comments appear after 8 minutes, proceed — Codex may not be configured for this repository.
|
|
431
444
|
|
|
432
|
-
**Merge and cleanup:**
|
|
433
|
-
|
|
434
|
-
After Codex review completes (or times out with no comments), merge the PR and clean up:
|
|
435
|
-
|
|
436
|
-
```bash
|
|
437
|
-
gh pr merge --squash --delete-branch
|
|
438
|
-
git checkout main
|
|
439
|
-
git pull origin main
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
This merges the PR, deletes the remote branch, switches back to main, and pulls the merged result.
|
|
443
|
-
|
|
444
445
|
Then shut down the agent team and print:
|
|
445
446
|
|
|
446
447
|
```
|
|
447
448
|
## All Milestones Complete!
|
|
448
449
|
|
|
449
|
-
**PR
|
|
450
|
+
**PR:** {PR URL}
|
|
450
451
|
|
|
451
452
|
- {N} milestones completed
|
|
452
453
|
- {total files} files created/modified
|
|
@@ -456,6 +457,8 @@ Then shut down the agent team and print:
|
|
|
456
457
|
The PR is ready for review.
|
|
457
458
|
```
|
|
458
459
|
|
|
460
|
+
**IMPORTANT:** Do NOT merge the PR automatically. Merging is a hard-to-reverse action that requires explicit user confirmation. Always stop here and let the user decide when to merge.
|
|
461
|
+
|
|
459
462
|
```
|
|
460
463
|
Send shutdown_request to all team members via SendMessage.
|
|
461
464
|
Wait for shutdown confirmations.
|
package/skills/forge-setup.md
CHANGED
|
@@ -314,17 +314,7 @@ After `gh pr create` succeeds, poll for Codex review comments:
|
|
|
314
314
|
|
|
315
315
|
4. **Timeout:** If no comments appear after 8 minutes, proceed — Codex may not be configured for this repository.
|
|
316
316
|
|
|
317
|
-
**
|
|
318
|
-
|
|
319
|
-
After Codex review completes (or times out with no comments), merge the PR and clean up:
|
|
320
|
-
|
|
321
|
-
```bash
|
|
322
|
-
gh pr merge --squash --delete-branch
|
|
323
|
-
git checkout main
|
|
324
|
-
git pull origin main
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
This merges the PR, deletes the remote branch, switches back to main, and pulls the merged result. The `--delete-branch` flag handles remote cleanup; git will also remove the local tracking branch on pull.
|
|
317
|
+
**IMPORTANT:** Do NOT merge the PR automatically. Merging is a hard-to-reverse action that requires explicit user confirmation. Always stop here and let the user decide when to merge.
|
|
328
318
|
|
|
329
319
|
### Step 11 — Summary
|
|
330
320
|
|