on-internet
← Community

[AI 코딩] 클로드 코드 테스트 게이트 exit 1 대 2, 통과한 쪽과 막은 쪽은 무엇이 달랐을까

GeekNews ·

Claude Code 훅 검사기가 "막음" 을 찍고 exit 1 로 끝나면 막힐까요? 아니었습니다, PreToolUse(Write) 훅이 exit 1 일 때 모델은 완료했다고 답했고 파일도 그대로 만들어졌습니다. $ claude -p --model haiku --setting-sources project --allowedTools "Write" "hello.txt 파일을 만들고 hi 한 줄을 써. 막히면 막힌 이유를 한 줄로 적고 다른 방법은 쓰지 마." == 훅이 exit 1 로 끝날 때 완료했습니다. hello.txt 파일이 생성되었고 "hi"가 한 줄 들어있습니다. hello.txt: 생김(hi) 같은 스크립트의 마지막 숫자만 2 로 바꾸자 …

Comments

Sign in or sign up to comment and upvote.

No comments yet.