ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 0xGondarxyz

spiral-stop

같은 오류가 3번의 수정 시도 후 반복되면 사용자와 Claude에게 멈추고 잘못된 가정을 말하라고 알리는 수정 루프 감지 Claude Code 모드입니다.

0xGondarxyz@0xGondarxyz

0xGondarxyz/claude-code-mods/tree/main/spiral-stop

번역 완료

이 mod 소개

spiral-stop은 수정 루프를 멈추는 Claude Code 플러그인/모드입니다. 실패한 Bash 호출의 오류 서명을 추적하고 같은 서명으로 3번 수정한 뒤에도 반복되거나 “아직도 고장남” 프롬프트가 3번 연속 나오면 코드를 더 바꾸지 말고 잘못된 가정을 말하라고 Claude에 알리는 메모를 추가합니다. 프롬프트 위에 Dismiss 버튼이 있는 band와 toast도 표시합니다. /spiral 및 /spiral reset 명령을 제공하고 같은 명령이 나중에 성공하면 서명을 버리며 메모리 내 카운터와 휴리스틱 서명 같은 제한을 설명합니다. /plugin marketplace add 0xGondarxyz/claude-code-mods 및 /plugin install spiral-stop@claude-code-mods로 설치하거나 claude --plugin-dir claude-code-mods/spiral-stop로 실행합니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add 0xGondarxyz/claude-code-mods
claude plugin install spiral-stop
원문 / README

spiral-stop

A Claude Code mod that stops fix loops. Claude runs a test, edits code, runs it again, gets the same error, and repeats. This mod notices. After 3 fix attempts with the same error, it tells you and tells Claude to stop and name the assumption that might be wrong.

Install

/plugin marketplace add 0xGondarxyz/claude-code-mods
/plugin install spiral-stop@claude-code-mods

Or try it without installing:

git clone https://github.com/0xGondarxyz/claude-code-mods
claude --plugin-dir claude-code-mods/spiral-stop

Mods are not sandboxed. They run with the same access as Claude Code. Read the source before you install any mod, including this one.

What it does

  1. Every failed Bash call gets an error signature. The mod keeps the first 2 error-looking lines and removes numbers, hex ids, durations, timestamps, :line:col and path prefixes. If no line looks like an error, it uses the last output line.
  2. A fix attempt is a Write, Edit, MultiEdit or NotebookEdit call, or a new prompt from you. The same signature counts again only when a fix attempt came in between. Running the same failing command twice with no edit counts once.
  3. At count 3 the mod:
    • adds a note for Claude: stop changing code, name the wrong assumption in 1 or 2 sentences, ask you one diagnostic question.
    • shows a band above the prompt: Spiral: same error after 3 fixes: <signature> [Dismiss].
    • shows one toast.
  4. A second trigger: 3 prompts in a row from you that say it is still broken ("still not working", "same error", "didn't fix it"). Any other prompt resets this counter.
  5. When the same command later succeeds, its signature is dropped (and the band, if it was for that signature).

The note reaches Claude as context after the failing tool result (or after your prompt for the prompt trigger). It never adds a conversation row.

Commands

  • /spiral prints the top 5 tracked signatures with counts, and whether the band is up.
  • /spiral reset clears all signatures and the band.

The band has a Dismiss button.

Limits

  • The counters live in memory. A hot reload or a new session starts them at zero.
  • Failure means the Bash tool reported an error (non-zero exit). A command that prints errors and exits 0 is not tracked.
  • The signature is a heuristic. Two different errors with the same first lines look the same.
  • Fixed values: threshold 3, top 5, 200 characters. No options.

License

MIT

비슷한 프로젝트