@graypark/ralph-codex 0.4.0 → 0.4.1
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.1",
|
|
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",
|
|
@@ -155,20 +155,82 @@ Agent tool parameters:
|
|
|
155
155
|
- subagent_type: "general-purpose" | "Explore" | "Plan" | "coder-fe" | "coder-be" | etc.
|
|
156
156
|
- isolation: "worktree" (optional — gives agent an isolated repo copy)
|
|
157
157
|
- run_in_background: true (for parallel execution)
|
|
158
|
+
- model: "sonnet" | "opus" | "haiku" (optional model override)
|
|
158
159
|
```
|
|
159
160
|
|
|
161
|
+
**Best practices:**
|
|
162
|
+
|
|
163
|
+
- Use `subagent_type: "Explore"` for read-only scanning — faster and safer
|
|
164
|
+
- Use `isolation: "worktree"` when agents write to files — prevents merge conflicts
|
|
165
|
+
- Launch parallel agents in a single message with multiple Agent tool calls
|
|
166
|
+
- Use `run_in_background: true` for truly independent work streams
|
|
167
|
+
|
|
160
168
|
### Codex CLI (experimental)
|
|
161
169
|
|
|
170
|
+
Codex spawns subagents via natural language prompts with keywords: "spawn", "parallel", "delegate", "one agent per".
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
# Enable in ~/.codex/config.toml
|
|
174
|
+
[agents]
|
|
175
|
+
max_threads = 6 # Max concurrent agent threads (default: 6)
|
|
176
|
+
max_depth = 1 # No grandchild agents (default: 1)
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**Custom agent definitions** in `.codex/agents/` (TOML):
|
|
180
|
+
|
|
181
|
+
```toml
|
|
182
|
+
# .codex/agents/scanner.toml
|
|
183
|
+
name = "scanner"
|
|
184
|
+
description = "Read-only codebase explorer for pattern extraction"
|
|
185
|
+
model = "gpt-5.4-mini" # Faster model for exploration
|
|
186
|
+
model_reasoning_effort = "low"
|
|
187
|
+
sandbox_mode = "read-only"
|
|
188
|
+
developer_instructions = """
|
|
189
|
+
Scan files for the requested pattern. Report findings with file paths and line numbers.
|
|
190
|
+
Do NOT modify any files.
|
|
191
|
+
"""
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Spawning in prompts:**
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
"Spawn one agent per service directory to scan for auth issues:
|
|
198
|
+
1. scanner on src/frontend/** → .ralph/reports/frontend.md
|
|
199
|
+
2. scanner on src/backend/** → .ralph/reports/backend.md
|
|
200
|
+
3. scanner on src/auth/** → .ralph/reports/auth.md
|
|
201
|
+
Wait for all, then summarize findings by severity."
|
|
162
202
|
```
|
|
163
|
-
# Enable multi-agent via config
|
|
164
|
-
[experimental]
|
|
165
|
-
multi_agent = true
|
|
166
203
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
204
|
+
**Batch processing** with `spawn_agents_on_csv`:
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
# For 100+ similar items, use CSV-driven batch spawning:
|
|
208
|
+
spawn_agents_on_csv:
|
|
209
|
+
csv_path: .ralph/items.csv
|
|
210
|
+
instruction: "Review {file_path} for {issue_type}. Return JSON via report_agent_job_result"
|
|
211
|
+
output_schema: { file: string, severity: string, fix: string }
|
|
212
|
+
output_csv_path: .ralph/reports/batch-results.csv
|
|
213
|
+
max_concurrency: 6
|
|
170
214
|
```
|
|
171
215
|
|
|
216
|
+
### Model Selection Guide (Codex)
|
|
217
|
+
|
|
218
|
+
| Role | Recommended Model | Reasoning Effort |
|
|
219
|
+
| ----------------------- | ------------------- | ---------------- |
|
|
220
|
+
| Coordinator / main loop | gpt-5.4 | medium |
|
|
221
|
+
| Explorer / scanner | gpt-5.4-mini | low |
|
|
222
|
+
| Reviewer / security | gpt-5.4 | high |
|
|
223
|
+
| Quick iteration / TDD | gpt-5.3-codex-spark | medium |
|
|
224
|
+
|
|
225
|
+
### Key Constraints
|
|
226
|
+
|
|
227
|
+
| Setting | Default | Note |
|
|
228
|
+
| -------------------- | ------- | ----------------------------------------------------------------------- |
|
|
229
|
+
| `agents.max_threads` | 6 | Hard cap on concurrent agents |
|
|
230
|
+
| `agents.max_depth` | 1 | No recursive agent spawning |
|
|
231
|
+
| File conflicts | N/A | Multiple agents writing same file = conflicts. Use ownership isolation. |
|
|
232
|
+
| Token usage | Higher | Each subagent does own inference. Use faster models for workers. |
|
|
233
|
+
|
|
172
234
|
## Report Directory Convention
|
|
173
235
|
|
|
174
236
|
All subagent outputs should follow this structure:
|