Loading...
Loading...
Self-referential completion loop for AI CLI tools. Re-runs the agent on the same task across turns with fresh context each iteration, until the completion promise is detected or max iterations is reached.
npx skill4agent add supercent-io/skills-template ralphAfterAgent/ralph "Your task description" --completion-promise "DONE"AfterAgent/ralph "<task description>" [--completion-promise=TEXT] [--max-iterations=N]DONE100AfterAgent<promise>DONE</promise>/ralph:cancel/ralph "Build a Python CLI task manager with full test coverage"/ralph "Build a REST API for todos. When all CRUD endpoints work and tests pass with >80% coverage, output TASK_COMPLETE" --completion-promise="TASK_COMPLETE"/ralph "Attempt to refactor the authentication module" --max-iterations=20/ralph "Implement feature X by following TDD:
1. Write failing tests for the feature.
2. Implement the code to make the tests pass.
3. Run the test suite.
4. If any tests fail, analyze the errors and debug.
5. Refactor for clarity and efficiency.
6. Repeat until all tests are green.
7. When complete, output <promise>TESTS_PASSED</promise>" --completion-promise="TESTS_PASSED"/ralph:cancel/ralph:help--completion-promise/ralph "Build a REST API for todos. When all CRUD endpoints are working and all tests pass with >80% coverage, you're complete." --completion-promise="TASK_COMPLETE"--max-iterations/ralph "Attempt to refactor the authentication module" --max-iterations=20-ygemini -s -ygemini extensions install https://github.com/gemini-cli-extensions/ralph --auto-update~/.gemini/settings.json{
"hooksConfig": { "enabled": true },
"context": {
"includeDirectories": ["~/.gemini/extensions/ralph"]
}
}ralphralphbash <your-agent-skills>/ralph/scripts/setup-codex-hook.sh~/.codex/config.tomldeveloper_instructionsralph~/.codex/prompts/ralph.md/prompts:ralph--dry-runUsage:
bash <your-agent-skills>/ralph/scripts/setup-codex-hook.sh
bash <your-agent-skills>/ralph/scripts/setup-codex-hook.sh --dry-runralph/prompts:ralph| 플랫폼 | 현재 지원 방식 | 핵심 조건 |
|---|---|---|
| Gemini-CLI | 네이티브 | |
| Claude Code | 네이티브(권장) | 스킬/오케스트레이션 적재 후 |
| OpenCode | 네이티브(동일 경로) | |
| Codex | 보정 모드 | |
현재 스킬만setup-codex-hook.sh| Action | Command |
|---|---|
| Start loop | |
| Custom promise | |
| Iteration cap | |
| Cancel | |
| Help | |