ralph-abort
БесплатноБез исполняемых скриптовНе проверенAbort a running agent loop and optionally revert changes
от jmagly★ 233 звезды на GitHubОб этом скилле
Al Abort
Abort a running or paused agent loop.
HITL authorization checkpoints
Before any confirmation below, read and apply
agent-loop authorization checkpoints.
Call aiwg config authorization check --action-file "$ACTION_FILE" --target "$TARGET_REPO"
for host-classified effects. Only auto-authorized with a signed receipt skips
that workflow prompt; retain existing prompts/refusals otherwise. Platform
prompts are never bypassed. Limits, regression and threat overrides still require review.
Usage
/ralph-abort # Abort, keep changes
/ralph-abort --revert # Abort and revert all changes
/ralph-abort --force # Abort even if no active loop
Parameters
--keep-changes (default)
Stop the loop but keep all file changes made during iterations.
--revert
Revert all changes made during the agent loop using git:
- Identify commits made during loop (prefix:
ralph: iteration) - Reset to commit before loop started
- Warning: This discards work
--force
Abort even if state indicates no active loop (for cleanup).
Your Actions
Standard Abort
- Read
.aiwg/ralph/current-loop.json - Verify there's an active loop
- Mark loop as aborted
- Generate partial completion report
- Confirm to user
Output:
Agent Loop: ABORTED
Task: {task}
Iterations completed: {N}
Duration: {time}
Changes have been kept. To revert:
git reset --hard HEAD~{N}
Partial report: .aiwg/ralph/completion-{timestamp}.md
With --revert
- Read loop state
- Find all
ralph: iterationcommits from this loop - Confirm with user before reverting
- Reset git to pre-loop state
- Clean up state files
Confirmation prompt:
This will revert {N} commits:
- ralph: iteration 1 - initial attempt
- ralph: iteration 2 - fixed auth
- ralph: iteration 3 - in progress
Files to be reverted:
- src/auth.ts
- test/auth.test.ts
Type 'yes' to confirm revert:
After revert:
Agent Loop: ABORTED + REVERTED
Reverted {N} commits.
Working directory restored to pre-loop state.
State cleaned: .aiwg/ralph/current-loop.json archived
Error Handling
No active loop:
No active agent loop to abort.
Use --force to clean up stale state files if needed.
Git not available:
Git not available for --revert option.
Loop aborted, but changes cannot be reverted automatically.
Manual cleanup may be needed.
Dirty working directory (for --revert):
Cannot revert: uncommitted changes exist.
Options:
1. Commit or stash changes first
2. Use /ralph-abort without --revert to keep current state
State Changes
After abort:
current-loop.jsonmarked withstatus: "aborted"active: false- Completion report generated with partial results
- Loop can no longer be resumed
Related
/ralph-status- Check loop status before aborting/ralph-resume- Continue instead of abort
References
- @$AIWG_ROOT/agentic/code/addons/agent-loop/README.md — Ralph addon overview and loop executor documentation
- @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/human-authorization.md — Authorization rules for irreversible actions like revert
- @$AIWG_ROOT/docs/cli-reference.md — CLI reference for ralph-abort and related commands
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/README.md — SDLC framework context
Установить ralph-abort в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ralph-abort?
Abort a running agent loop and optionally revert changes
Как установить скилл ralph-abort?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ralph-abort запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic