Files
cursor__plugins/ralph-loop/hooks/hooks.json
ericzakariasson e597b2ff69 Comply with Cursor hooks API
- Rewrite hooks.json to Cursor format (version 1, lowercase event
  names, flat structure, loop_limit: null)
- Replace Claude Code stop hook output (decision/block/reason) with
  Cursor's followup_message API
- Add afterAgentResponse hook to detect completion promise without
  depending on transcript format
- Use CURSOR_PROJECT_DIR env var for reliable state file paths
- Remove setup script; ralph-loop skill now instructs the agent to
  create the state file directly
- Update cancel-ralph skill to clean up done flag file

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-11 15:42:32 -08:00

17 lines
243 B
JSON

{
"version": 1,
"hooks": {
"afterAgentResponse": [
{
"command": "./hooks/capture-response.sh"
}
],
"stop": [
{
"command": "./hooks/stop-hook.sh",
"loop_limit": null
}
]
}
}