codex-ralph 0.6.4 → 0.7.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 +7 -20
- package/agent/prompt.md +1 -1
- package/agent/ralph-loop.sh +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,6 +31,7 @@ Optional flags:
|
|
|
31
31
|
--max-iterations=10
|
|
32
32
|
--cursor-agent
|
|
33
33
|
--gemini-agent
|
|
34
|
+
--claude-agent
|
|
34
35
|
```
|
|
35
36
|
|
|
36
37
|
Message format (session emoji is chosen randomly from a small fixed set and stays constant for the session):
|
|
@@ -50,6 +51,12 @@ Each requirement is a level-2 heading with a checkbox. The loop picks the first
|
|
|
50
51
|
|
|
51
52
|
Description: Free-form task details.
|
|
52
53
|
|
|
54
|
+
Acceptance criteria: Free-form acceptance criteria.
|
|
55
|
+
|
|
56
|
+
## [ ] Requirement description
|
|
57
|
+
|
|
58
|
+
Description: Free-form task details.
|
|
59
|
+
|
|
53
60
|
Acceptance criteria: Free-form acceptance criteria.
|
|
54
61
|
```
|
|
55
62
|
|
|
@@ -64,23 +71,3 @@ Acceptance criteria: Free-form acceptance criteria.
|
|
|
64
71
|
- Marks items complete only when all steps are satisfied.
|
|
65
72
|
- Uses conventional commits for each completed requirement (no story ID requirement).
|
|
66
73
|
- If no local `AGENTS.md` exists up the tree, use `./.codex/AGENTS.md`. In monorepos, prefer package-level AGENTS.md for package-specific knowledge.
|
|
67
|
-
|
|
68
|
-
## Changelog
|
|
69
|
-
|
|
70
|
-
### 0.6.4
|
|
71
|
-
- Fix: Removed conflicting `--yolo` flag from Gemini agent command.
|
|
72
|
-
|
|
73
|
-
### 0.6.3
|
|
74
|
-
- Feat: Added custom flags (--yolo, --no-sandbox, --approval-mode yolo) for Gemini agent command.
|
|
75
|
-
|
|
76
|
-
### 0.6.2
|
|
77
|
-
- Fix: Further corrected Gemini agent command to use positional argument instead of stdin.
|
|
78
|
-
|
|
79
|
-
### 0.6.1
|
|
80
|
-
- Fix: Corrected the command for the Gemini agent.
|
|
81
|
-
|
|
82
|
-
### 0.6.0
|
|
83
|
-
- Add support for Gemini agent via `--gemini-agent` flag.
|
|
84
|
-
|
|
85
|
-
### 0.5.0
|
|
86
|
-
- Version bump.
|
package/agent/prompt.md
CHANGED
|
@@ -49,7 +49,7 @@ Only add patterns that are **general and reusable**, not story-specific details.
|
|
|
49
49
|
Before committing, check if any edited files have learnings worth preserving in nearby AGENTS.md files:
|
|
50
50
|
|
|
51
51
|
1. **Identify directories with edited files** - Look at which directories you modified
|
|
52
|
-
2. **Check for existing AGENTS.md** - Look for AGENTS.md in those directories or parent directories
|
|
52
|
+
2. **Check for existing AGENTS.md/CLAUDE.md** - Look for AGENTS.md/CLAUDE.md in those directories or parent directories
|
|
53
53
|
3. **Monorepos** - If working under `./packages/<name>` (or similar), prefer placing AGENTS.md in that package if the knowledge is package-specific.
|
|
54
54
|
4. **Add valuable learnings** - If you discovered something future developers/agents should know:
|
|
55
55
|
- API patterns or conventions specific to that module
|
package/agent/ralph-loop.sh
CHANGED
|
@@ -14,6 +14,7 @@ NOTES_FILE=""
|
|
|
14
14
|
SESSION_EMOJI=""
|
|
15
15
|
USE_CURSOR_AGENT=false
|
|
16
16
|
USE_GEMINI_AGENT=false
|
|
17
|
+
USE_CLAUDE_AGENT=false
|
|
17
18
|
|
|
18
19
|
session_emoji() {
|
|
19
20
|
if [[ -n "${SESSION_EMOJI}" ]]; then
|
|
@@ -45,13 +46,14 @@ send_telegram() {
|
|
|
45
46
|
|
|
46
47
|
usage() {
|
|
47
48
|
cat <<USAGE
|
|
48
|
-
Usage: ralph-loop SPRINT_PATH [--max-iterations=N] [--cursor-agent]
|
|
49
|
+
Usage: ralph-loop SPRINT_PATH [--max-iterations=N] [--cursor-agent] [--gemini-agent] [--claude-agent]
|
|
49
50
|
|
|
50
51
|
Options:
|
|
51
52
|
SPRINT_PATH Path to the sprint markdown file (required).
|
|
52
53
|
--max-iterations=N Stop after N iterations (0 = no limit, default 10).
|
|
53
54
|
--cursor-agent Use cursor-agent instead of codex (default: disabled).
|
|
54
55
|
--gemini-agent Use gemini-agent instead of codex (default: disabled).
|
|
56
|
+
--claude-agent Use claude instead of codex (default: disabled).
|
|
55
57
|
-h, --help Show this help.
|
|
56
58
|
USAGE
|
|
57
59
|
}
|
|
@@ -69,6 +71,9 @@ for arg in "$@"; do
|
|
|
69
71
|
--gemini-agent)
|
|
70
72
|
USE_GEMINI_AGENT=true
|
|
71
73
|
;;
|
|
74
|
+
--claude-agent)
|
|
75
|
+
USE_CLAUDE_AGENT=true
|
|
76
|
+
;;
|
|
72
77
|
-h|--help)
|
|
73
78
|
usage
|
|
74
79
|
exit 0
|
|
@@ -257,6 +262,8 @@ while true; do
|
|
|
257
262
|
cursor-agent -f -p < "$prompt_tmp"
|
|
258
263
|
elif [[ "$USE_GEMINI_AGENT" == "true" ]]; then
|
|
259
264
|
gemini --no-sandbox --approval-mode yolo "$(cat "$prompt_tmp")"
|
|
265
|
+
elif [[ "$USE_CLAUDE_AGENT" == "true" ]]; then
|
|
266
|
+
claude -p --dangerously-skip-permissions < "$prompt_tmp"
|
|
260
267
|
else
|
|
261
268
|
codex exec - < "$prompt_tmp"
|
|
262
269
|
fi
|