Ishan Yash (@IshanYash17) — Harnesses and agentic coding

Original post: https://x.com/IshanYash17/status/2117527033182044527
Posted: 2026-11-03T07:59:21Z · Collected: 2026-11-03T15:30:00Z

Why it matters

Safety-relevant harness change: guard hooks can now fail closed.

Summary

@IshanYash17 flags two Claude Code 2.1.317 changelog items: Agent SDK hook callbacks that throw can now block the tool call via onFailure: "block", and claude -p exits non-zero if a full disk loses the transcript. They urge checking whether guard hooks fail open.

Pull quotes

Do your guards fail open?

Claude Code 2.1.317 (3 Nov): an Agent SDK hook callback that throws no longer has to let the tool call run. Add onFailure: “block” to your guard hooks. And claude -p now exits 1 if a full disk loses its transcript.

Topics

Keywords

claude code, hook, fail closed, agent sdk, changelog

Archive

Browse