/ralph-loop running non-stop

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

/ralph-loop running non-stop. No way to kill it even task finish.

Tried kill Cursor proress and restart, close chat session associate with the /ralph-loop and open new one. The new one now instead running the /ralph-loop forever now.

Costed me bunch of tokens. You guys should stop vibe coding, or at least do some trials yourself before shipping it to customer yeah? What a wonderful product.

Steps to Reproduce

Try it yourself

Operating System

MacOS

Version Information

N/A

Does this stop you from using Cursor

Yes - Cursor is unusable

This bug has blocked me from using Cursor. Everytime I restart it, the ralph loop continues and keep burning my tokens. I hope this is a BUG, not a feature.

/ralph-loop is not a built-in Cursor feature — it’s a community hooks plugin (“Ralph Wiggum”) that you installed at some point. It creates autonomous agent loops by re-submitting your prompt each time the agent finishes.

Cursor does enforce a hard limit of 5 automatic iterations per conversation, so it’s not truly infinite. But it can feel that way because typing anything in the conversation (even trying to stop it) resets the counter and restarts the loop for another 5 rounds. That’s likely what happened here.

To stop it immediately:

  1. Type /cancel-ralph in the active conversation

  2. Open a brand new conversation (not the same one) for your actual work

To remove the plugin permanently:

  1. Open your project’s .cursor/hooks.json file and remove the Ralph Wiggum hook entries

  2. Run rm /tmp/ralph-wiggum-*.json in your terminal to clean up temp state files

  3. Restart Cursor

After that, your new conversations should work normally without any looping behavior. Let me know if you’re still seeing issues after removing the hook.