agentic-loop 3.2.0 → 3.2.2
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/.claude/commands/idea.md +2 -2
- package/.claude/commands/prd.md +1 -1
- package/README.md +3 -4
- package/package.json +1 -1
- package/ralph/setup.sh +10 -13
- package/templates/PROMPT.md +6 -7
package/.claude/commands/idea.md
CHANGED
|
@@ -306,7 +306,7 @@ For frontend stories, acceptance criteria MUST include:
|
|
|
306
306
|
- "Required elements render" (specify which: header, form, button, etc.)
|
|
307
307
|
- "Works on mobile viewport (375px)"
|
|
308
308
|
|
|
309
|
-
These get verified by Playwright
|
|
309
|
+
These get verified by Playwright tests and MCP browser tools.
|
|
310
310
|
|
|
311
311
|
### Test Steps - CRITICAL
|
|
312
312
|
**Test steps MUST be executable shell commands.** Ralph runs them with bash.
|
|
@@ -352,7 +352,7 @@ The Playwright test file can check:
|
|
|
352
352
|
]
|
|
353
353
|
```
|
|
354
354
|
|
|
355
|
-
**If a step can't be automated**, leave it out of testSteps and put it in acceptanceCriteria instead.
|
|
355
|
+
**If a step can't be automated**, leave it out of testSteps and put it in acceptanceCriteria instead. Claude will verify acceptanceCriteria visually using MCP browser tools.
|
|
356
356
|
|
|
357
357
|
### Architecture Guidelines
|
|
358
358
|
- **Domain-driven directories** - Group by feature (`src/contact/`) not type (`src/components/`)
|
package/.claude/commands/prd.md
CHANGED
|
@@ -283,4 +283,4 @@ The Playwright test file can check:
|
|
|
283
283
|
]
|
|
284
284
|
```
|
|
285
285
|
|
|
286
|
-
**If a step can't be automated**, leave it out of testSteps and put it in acceptanceCriteria instead.
|
|
286
|
+
**If a step can't be automated**, leave it out of testSteps and put it in acceptanceCriteria instead. Claude will verify acceptanceCriteria visually using MCP browser tools.
|
package/README.md
CHANGED
|
@@ -45,8 +45,7 @@ claude --dangerously-skip-permissions
|
|
|
45
45
|
|
|
46
46
|
**Terminal 2 - Ralph Loop:**
|
|
47
47
|
```bash
|
|
48
|
-
npx agentic-loop run
|
|
49
|
-
npx agentic-loop run --fast # Skip code review (~2x faster)
|
|
48
|
+
npx agentic-loop run # Execute PRDs autonomously
|
|
50
49
|
```
|
|
51
50
|
|
|
52
51
|
> **Tip:** Use two terminals. Plan with Claude in one, run Ralph in the other.
|
|
@@ -61,8 +60,8 @@ npx agentic-loop run --fast # Skip code review (~2x faster)
|
|
|
61
60
|
├─────────────────────────────────────────────────────────────┤
|
|
62
61
|
│ 1. Read prd.json → find next story where passes=false │
|
|
63
62
|
│ 2. Build prompt (story + context + failures + signs) │
|
|
64
|
-
│ 3. Spawn Claude with prompt
|
|
65
|
-
│ 4. Run verification (lint, tests,
|
|
63
|
+
│ 3. Spawn Claude with prompt + MCP browser tools │
|
|
64
|
+
│ 4. Run verification (lint, tests, testSteps) │
|
|
66
65
|
│ 5. Pass? → commit, next story │
|
|
67
66
|
│ Fail? → save error, retry with failure context │
|
|
68
67
|
│ 6. Repeat until all stories pass │
|
package/package.json
CHANGED
package/ralph/setup.sh
CHANGED
|
@@ -40,8 +40,7 @@ ralph_setup() {
|
|
|
40
40
|
echo " /idea 'your feature' # Generate a PRD"
|
|
41
41
|
echo ""
|
|
42
42
|
echo " --- Terminal 2: Ralph Loop ---"
|
|
43
|
-
echo " npx agentic-loop run
|
|
44
|
-
echo " npx agentic-loop run --fast # Skip code review (~2x faster)"
|
|
43
|
+
echo " npx agentic-loop run # Execute PRDs autonomously"
|
|
45
44
|
echo ""
|
|
46
45
|
}
|
|
47
46
|
|
|
@@ -359,7 +358,7 @@ setup_mcp() {
|
|
|
359
358
|
tmp=$(mktemp)
|
|
360
359
|
jq '.mcpServers["playwright"] = {
|
|
361
360
|
"command": "npx",
|
|
362
|
-
"args": ["-y", "@
|
|
361
|
+
"args": ["-y", "@playwright/mcp@latest"]
|
|
363
362
|
}' "$claude_json" > "$tmp" && mv "$tmp" "$claude_json"
|
|
364
363
|
echo " Added playwright MCP server (browser automation & testing)"
|
|
365
364
|
added_any=true
|
|
@@ -407,20 +406,18 @@ setup_test_credentials() {
|
|
|
407
406
|
read -r -s -p " Test user password: " test_password
|
|
408
407
|
echo ""
|
|
409
408
|
|
|
410
|
-
# Add to .env (
|
|
409
|
+
# Add to .env (remove old entries first, then append)
|
|
411
410
|
if grep -q "^RALPH_TEST_USER=" .env 2>/dev/null; then
|
|
412
|
-
#
|
|
411
|
+
# Remove old entries
|
|
413
412
|
local tmp
|
|
414
413
|
tmp=$(mktemp)
|
|
415
|
-
|
|
416
|
-
sed "s/^RALPH_TEST_PASSWORD=.*/RALPH_TEST_PASSWORD=$test_password/" .env > "$tmp" && mv "$tmp" .env
|
|
417
|
-
else
|
|
418
|
-
# Append new
|
|
419
|
-
echo "" >> .env
|
|
420
|
-
echo "# Test credentials for browser automation (auto-added by agentic-loop)" >> .env
|
|
421
|
-
echo "RALPH_TEST_USER=$test_email" >> .env
|
|
422
|
-
echo "RALPH_TEST_PASSWORD=$test_password" >> .env
|
|
414
|
+
grep -v "^RALPH_TEST_USER=\|^RALPH_TEST_PASSWORD=" .env > "$tmp" && mv "$tmp" .env
|
|
423
415
|
fi
|
|
416
|
+
# Append new (using printf to handle special characters safely)
|
|
417
|
+
echo "" >> .env
|
|
418
|
+
echo "# Test credentials for browser automation (auto-added by agentic-loop)" >> .env
|
|
419
|
+
printf 'RALPH_TEST_USER=%s\n' "$test_email" >> .env
|
|
420
|
+
printf 'RALPH_TEST_PASSWORD=%s\n' "$test_password" >> .env
|
|
424
421
|
|
|
425
422
|
echo " Saved credentials to .env"
|
|
426
423
|
echo ""
|
package/templates/PROMPT.md
CHANGED
|
@@ -31,15 +31,14 @@ For each story, you must:
|
|
|
31
31
|
**You have browser tools - USE THEM to verify your work:**
|
|
32
32
|
|
|
33
33
|
**Playwright MCP** (testing & automation):
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
- `browser_snapshot` - Get accessibility tree for a11y testing
|
|
34
|
+
- Navigate to URLs and verify page content
|
|
35
|
+
- Take screenshots to verify UI renders correctly
|
|
36
|
+
- Click elements and fill forms to test interactions
|
|
37
|
+
- Get accessibility snapshots for a11y testing
|
|
39
38
|
|
|
40
39
|
**Chrome DevTools MCP** (debugging & inspection):
|
|
41
|
-
- Inspect DOM
|
|
42
|
-
- Debug network requests
|
|
40
|
+
- Inspect DOM elements and check console for errors
|
|
41
|
+
- Debug network requests and responses
|
|
43
42
|
- Check element styles and computed properties
|
|
44
43
|
|
|
45
44
|
**Do NOT say you're done until:**
|