start_ralph
Manage complex long-running tasks with incremental verification and bounded plans. Each round produces evidence and optional assistance, ensuring controlled convergence without auto-loops.
Instructions
用于需要多轮小步实现、每轮真实验证和正式收敛的长任务。返回有界 Delegated Plan、每轮 Heartbeat 证据契约和可选前台辅助脚本;不自动运行循环、不创建后台进程。安全停止不等于成功
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | 本次要完成的目标/需求描述。例如:'实现用户认证功能'、'修复登录 bug' | |
| mode | No | 运行模式:safe(安全模式,默认)、normal(普通模式)。安全模式包含多重保护机制 | |
| max_rounds | No | max_iterations 的兼容别名;建议新调用统一使用 max_iterations | |
| cli_command | No | Claude Code CLI 命令名。默认:'claude-code'(可能需要改为 'claude') | |
| max_minutes | No | 最大运行分钟数。safe 模式默认:25 | |
| project_root | No | 目标项目根目录绝对路径。省略时从当前已确认工作区解析 | |
| test_command | No | 每轮执行的测试命令。默认:'npm test'(会在首轮由 agent 识别正确命令) | |
| confirm_every | No | 每几轮要求人工确认。safe 模式默认:1(每轮都确认) | |
| max_diff_lines | No | git diff 变更行数超过此值停止(防失控)。safe 模式默认:300 | |
| max_iterations | No | 最大迭代轮数。safe 模式默认:8 | |
| confirm_timeout | No | 确认等待秒数,超时自动停止。safe 模式默认:20 | |
| max_same_output | No | 输出重复多少次停止(防卡死)。safe 模式默认:2 | |
| cooldown_seconds | No | 每轮后冷却秒数。safe 模式默认:8 | |
| completion_promise | No | 完成条件描述。默认:'tests passing + requirements met' |