Tutorials · Claude Agent SDK · examples / outputs / p1b_goal_loop_blocked.txtExample code

Example code · outputs

p1b_goal_loop_blocked.txt

Captured output of p1b_goal_loop_blocked

Raw fileDownload all examples (zip)See the script →

  tool: Bash find . -type f -name "*.py" | head -50 && echo --- && cat src/utils.py
  tool: Edit /tmp/demo/project/...
  tool: Bash python3 -m unittest -q tests.test_utils
  [Stop hook] iteration 1: tests PASS, CHANGELOG.md missing, stop_hook_active=False
  tool: Bash ls -la
  tool: Write /tmp/demo/project/...
  [Stop hook] iteration 2: tests PASS, CHANGELOG.md present, stop_hook_active=True

[result] success after 7 turns, $0.0575
[result] Added `CHANGELOG.md` documenting the fix. Tests still pass (5/5 OK).

Final verification outside the agent: tests pass = True; Stop-hook verdicts = [(True, False), (True, True)]

13 lines · Back to the folder