loop
Track file edits and test results to detect and prevent death spirals in AI coding sessions. Check safety before editing.
Instructions
Loop detection to prevent death spirals. Operations:
record_edit: Log file edit (file_path, description)
record_test: Log test result (passed, error_message)
check: Check if safe to edit (file_path)
status: Get edit counts and warnings
reset: Clear all loop tracking for a fresh start
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Operation | |
| file_path | No | File being edited | |
| description | No | For record_edit: what changed | |
| passed | No | For record_test: did tests pass | |
| error_message | No | For record_test: error if failed |