ralph-abort
SolidAbort a running agent loop and optionally revert changes
AI & Automation 142 stars
21 forks Updated yesterday MIT
Install
Quality Score: 93/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Al Abort
Abort a running or paused agent loop.
## 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
1. Read `.aiwg/ralph/current-loop.json`
2. Verify there's an active loop
3. Mark loop as aborted
4. Generate partial completion report
5. 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
1. Read loop state
2. Find all `ralph: iteration` commits from this loop
3. Confirm with user before reverting
4. Reset git to pre-loop state
5. 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**:
``...
Details
- Author
- jmagly
- Repository
- jmagly/aiwg
- Created
- 9 months ago
- Last Updated
- yesterday
- Language
- TypeScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
ralph-status
Check status of current or previous agent loop
142 Updated yesterday
jmagly AI & Automation Solid
ralph-resume
Resume an interrupted agent loop from last checkpoint
142 Updated yesterday
jmagly AI & Automation Solid
cancel-ralph
Codex-compatible cancel command for Ralph loop state, preserving the original command name.
2,210 Updated 1 weeks ago
foryourhealth111-pixel AI & Automation Listed
cancel-ralph
Cancel active Ralph (and linked ultrawork if auto-activated)
6 Updated today
mazenyassergithub AI & Automation Solid
ralph-analytics
Show analytics and metrics from agent loop execution history
142 Updated yesterday
jmagly