@graypark/ralph-codex 0.4.0 → 0.4.3
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.
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ralph-codex",
|
|
3
|
-
"description": "Cross-platform Ralph Loop with interactive interview, multi-agent orchestration, and smart command generation
|
|
3
|
+
"description": "Cross-platform Ralph Loop with interactive interview, multi-agent orchestration, and smart command generation for iterative AI development.",
|
|
4
|
+
"version": "0.4.1",
|
|
4
5
|
"author": {
|
|
5
6
|
"name": "graypark",
|
|
6
|
-
"email": "vcz.graypark@gmail.com"
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
"version": "0.4.0",
|
|
10
|
-
"repository": "https://github.com/vcz-Gray/ralph-codex",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"keywords": [
|
|
13
|
-
"ralph-loop",
|
|
14
|
-
"iterative-development",
|
|
15
|
-
"multi-agent",
|
|
16
|
-
"orchestration",
|
|
17
|
-
"stop-hook",
|
|
18
|
-
"cross-platform"
|
|
19
|
-
],
|
|
20
|
-
"engines": {
|
|
21
|
-
"claude-code": ">=1.0.0",
|
|
22
|
-
"codex-cli": ">=0.114.0"
|
|
23
|
-
},
|
|
24
|
-
"compatibility": ["claude-code", "codex-cli"]
|
|
7
|
+
"email": "vcz.graypark@gmail.com"
|
|
8
|
+
}
|
|
25
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graypark/ralph-codex",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ralph Loop for Codex CLI & Claude Code — iterative dev loops with multi-agent orchestration, interactive interview, and stop hooks",
|
|
6
6
|
"license": "MIT",
|
|
@@ -5,7 +5,7 @@ description: "Interactive interview that generates optimized /ralph-loop command
|
|
|
5
5
|
|
|
6
6
|
# Ralph Interview — Command Generator
|
|
7
7
|
|
|
8
|
-
You are an expert at crafting `/ralph-loop:ralph-loop` commands for
|
|
8
|
+
You are an expert at crafting `/ralph-loop:ralph-loop` commands for the Ralph Loop plugin.
|
|
9
9
|
When the user describes a task, conduct a brief interview to gather missing context, then generate a copy-paste-ready command.
|
|
10
10
|
|
|
11
11
|
## Core Principles
|
|
@@ -68,7 +68,7 @@ Evaluate the task against the ralph-orchestrator decision matrix:
|
|
|
68
68
|
- **Score 0–2** → Sequential loop, optional scout phase
|
|
69
69
|
- **Score < 0** → Single sequential Ralph Loop
|
|
70
70
|
|
|
71
|
-
When subagents are recommended, embed subagent spawn instructions directly in the generated ralph-loop prompt using
|
|
71
|
+
When subagents are recommended, embed subagent spawn instructions directly in the generated ralph-loop prompt using Codex's experimental multi-agent capabilities.
|
|
72
72
|
|
|
73
73
|
### Recommended max-iterations
|
|
74
74
|
|
|
@@ -131,7 +131,7 @@ When the orchestrator score is >= 3, embed subagent instructions in the prompt:
|
|
|
131
131
|
[Task summary]
|
|
132
132
|
|
|
133
133
|
## Phase 1 — Parallel Exploration
|
|
134
|
-
Spawn these subagents simultaneously
|
|
134
|
+
Spawn these subagents simultaneously:
|
|
135
135
|
|
|
136
136
|
1. Agent 'scan-frontend' (subagent_type: Explore, run_in_background: true):
|
|
137
137
|
Search src/frontend/** for [pattern]. Write findings to .ralph/reports/frontend.md
|
|
@@ -146,28 +146,71 @@ Execute Phase (Ralph Loop):
|
|
|
146
146
|
|
|
147
147
|
## Subagent Configuration Reference
|
|
148
148
|
|
|
149
|
-
###
|
|
149
|
+
### Codex CLI (experimental)
|
|
150
|
+
|
|
151
|
+
Codex spawns subagents via natural language prompts with keywords: "spawn", "parallel", "delegate", "one agent per".
|
|
150
152
|
|
|
151
153
|
```
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
- isolation: "worktree" (optional — gives agent an isolated repo copy)
|
|
157
|
-
- run_in_background: true (for parallel execution)
|
|
154
|
+
# Enable in ~/.codex/config.toml
|
|
155
|
+
[agents]
|
|
156
|
+
max_threads = 6 # Max concurrent agent threads (default: 6)
|
|
157
|
+
max_depth = 1 # No grandchild agents (default: 1)
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
**Custom agent definitions** in `.codex/agents/` (TOML):
|
|
161
161
|
|
|
162
|
+
```toml
|
|
163
|
+
# .codex/agents/scanner.toml
|
|
164
|
+
name = "scanner"
|
|
165
|
+
description = "Read-only codebase explorer for pattern extraction"
|
|
166
|
+
model = "gpt-5.4-mini" # Faster model for exploration
|
|
167
|
+
model_reasoning_effort = "low"
|
|
168
|
+
sandbox_mode = "read-only"
|
|
169
|
+
developer_instructions = """
|
|
170
|
+
Scan files for the requested pattern. Report findings with file paths and line numbers.
|
|
171
|
+
Do NOT modify any files.
|
|
172
|
+
"""
|
|
162
173
|
```
|
|
163
|
-
# Enable multi-agent via config
|
|
164
|
-
[experimental]
|
|
165
|
-
multi_agent = true
|
|
166
174
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Write results to .ralph/reports/api-scan.md"
|
|
175
|
+
**Spawning in prompts:**
|
|
176
|
+
|
|
170
177
|
```
|
|
178
|
+
"Spawn one agent per service directory to scan for auth issues:
|
|
179
|
+
1. scanner on src/frontend/** → .ralph/reports/frontend.md
|
|
180
|
+
2. scanner on src/backend/** → .ralph/reports/backend.md
|
|
181
|
+
3. scanner on src/auth/** → .ralph/reports/auth.md
|
|
182
|
+
Wait for all, then summarize findings by severity."
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Batch processing** with `spawn_agents_on_csv`:
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
# For 100+ similar items, use CSV-driven batch spawning:
|
|
189
|
+
spawn_agents_on_csv:
|
|
190
|
+
csv_path: .ralph/items.csv
|
|
191
|
+
instruction: "Review {file_path} for {issue_type}. Return JSON via report_agent_job_result"
|
|
192
|
+
output_schema: { file: string, severity: string, fix: string }
|
|
193
|
+
output_csv_path: .ralph/reports/batch-results.csv
|
|
194
|
+
max_concurrency: 6
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Model Selection Guide (Codex)
|
|
198
|
+
|
|
199
|
+
| Role | Recommended Model | Reasoning Effort |
|
|
200
|
+
| ----------------------- | ------------------- | ---------------- |
|
|
201
|
+
| Coordinator / main loop | gpt-5.4 | medium |
|
|
202
|
+
| Explorer / scanner | gpt-5.4-mini | low |
|
|
203
|
+
| Reviewer / security | gpt-5.4 | high |
|
|
204
|
+
| Quick iteration / TDD | gpt-5.3-codex-spark | medium |
|
|
205
|
+
|
|
206
|
+
### Key Constraints
|
|
207
|
+
|
|
208
|
+
| Setting | Default | Note |
|
|
209
|
+
| -------------------- | ------- | ----------------------------------------------------------------------- |
|
|
210
|
+
| `agents.max_threads` | 6 | Hard cap on concurrent agents |
|
|
211
|
+
| `agents.max_depth` | 1 | No recursive agent spawning |
|
|
212
|
+
| File conflicts | N/A | Multiple agents writing same file = conflicts. Use ownership isolation. |
|
|
213
|
+
| Token usage | Higher | Each subagent does own inference. Use faster models for workers. |
|
|
171
214
|
|
|
172
215
|
## Report Directory Convention
|
|
173
216
|
|