一键导入
internal-ralph
Internal ralph mode executor. Processes PRD backlog using Task subagents. Called by start-ralph, not user-invoked directly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Internal ralph mode executor. Processes PRD backlog using Task subagents. Called by start-ralph, not user-invoked directly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Check deep loop progress and session state. Use when user asks 'what status', 'where are we', 'deep status'. Shows phase, tasks, and iteration count.
Cancel active deep loop session. Use when user asks to 'stop deep', 'cancel deep', 'abort loop'. Cleans up state files.
Stop ralph mode PRD processing. Use when user asks to 'cancel ralph', 'stop autonomous mode'. Halts background execution.
Add tasks to deep loop queue (.deep/tasks.md). Use when user asks to 'add task', 'queue this', 'deep add'. Interactively gathers task details.
Clean up stale deep loop files. Use when user asks to 'clean up', 'remove .deep directories'. Removes old session artifacts.
Process queued tasks from .deep/tasks.md. Use when user asks to 'execute queue', 'process tasks', 'run queued work'. Supports multi-session claim-based coordination with git conflict handling.
| name | internal-ralph |
| description | Internal ralph mode executor. Processes PRD backlog using Task subagents. Called by start-ralph, not user-invoked directly. |
| version | 11.0.0 |
| user-invocable | false |
Internal Ralph processes a PRD backlog using Claude Code's built-in Task tool to spawn subagents. Each task gets fresh context while using the SAME Max subscription - no API key required.
Main Session (You - Orchestrator)
│
├── Read .deep/prd.json
│
├── For each task where passes=false:
│ │
│ └── Spawn Task agent (subagent_type=general-purpose)
│ ├── Agent implements task
│ ├── Agent runs verification
│ └── Agent returns result
│
├── Update prd.json with result
│
└── Continue until all tasks pass or max iterations
| External Ralph (broken) | Internal Ralph (works) |
|---|---|
| Spawns new CLI process | Uses Task tool subagents |
-p flag = API mode | Subagents = same session |
| Requires API key | Uses Max subscription |
| External orchestration | Internal orchestration |
Create .deep/prd.json:
[
{
"id": "task-001",
"story": "Description of what to build",
"acceptance_criteria": [
"Criterion 1",
"Criterion 2"
],
"priority": "high",
"passes": false,
"attempts": 0,
"lastError": null
}
]
Read .deep/prd.json and identify next task where passes=false
Use Task tool with:
- subagent_type: "general-purpose"
- description: "[task-id]: [brief description]"
- prompt: |
You are executing a single task from a PRD backlog.
TASK: [task story]
ACCEPTANCE CRITERIA:
[list criteria]
INSTRUCTIONS:
1. Implement the task to meet ALL acceptance criteria
2. Run appropriate verification (tests, lint, types)
3. Make a git commit if successful
4. Report: TASK_PASSED or TASK_FAILED with details
Work autonomously. Do not ask questions - make reasonable decisions.
passes: trueattempts, log error, try next task or retrypasses: true: Output PROMISE_COMPLETEAppend to progress.txt after each task:
## [timestamp] - [task-id]
Status: PASSED/FAILED
Summary: [what was done]
---
From Claude Code, say:
/internal-ralph
Or manually:
Run internal ralph mode on .deep/prd.json with max 10 iterations
run_in_background: trueFor independent tasks, spawn multiple agents simultaneously:
Launch Task agents for task-001, task-002, task-003 in parallel
This maximizes throughput while staying within Max subscription.