zerosloney/dsh-ralph-loop ↗★ 0
dsh-ralph-loop
RALPH cognitive-loop plugin for DeepSeek Harness: Reflect → Assess → Learn → Plan → Handle autonomous code-generation and error-repair state machine with a hard cycle cap and event-sourced observability.
AI 분석
核心用途是实现全自动的代码编写与 Debug 闭环。适合需要 AI 独立在沙箱中进行代码迭代与测试验证的高级开发任务。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zerosloney/dsh-ralph-loop配置(cordis.patch.yml 的 config)
- insert:
- id: ralph-loop
name: 'dsh-ralph-loop'
config:
maxCycles: 5 # 硬循环上限(工具调用可覆盖,钳制在 1-20)
autoReflectOnFailure: true # false = 确定性 stderr 反思
verboseLogging: false # 逐阶段日志
provider: '' # LLM provider(执行时必填,工具调用可覆盖)
model: '' # LLM model(执行时必填,工具调用可覆盖)
codegenMaxTokens: 0 # Handle 代码生成的 maxTokens 硬上限;0 = 不设
testTimeoutMs: 120000 # 单次测试命令超时
totalTimeoutMs: 1800000 # 整个闭环的总 wall-clock 预算(默认 30 分钟)