{"version":"2.1.333","anchor":"stop-hooks-can-be-observe-only-for-sdk-hosts","canonical_anchor":"stop-hooks-can-be-observe-only-for-sdk-hosts","heading":"Apps embedding Claude Code can register Stop hooks that only observe","tier":"use","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/stop-hooks-can-be-observe-only-for-sdk-hosts","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Apps embedding Claude Code can register Stop hooks that only observe\n\nStop hooks registered by an SDK host can now be marked observesOnly, so they watch the end of a turn without affecting it\n\n**What**\n\nA hook is a piece of code that runs automatically at a set point; a Stop hook runs when Claude finishes responding. Apps that embed Claude Code through the SDK (the developer kit) can now mark the Stop hooks they register with `observesOnly: true`, when `hostOwnsStdinOrigin` is set.\n\n**Why**\n\nAn embedding app can watch when a turn ends without its hook changing what happens in that turn.\n\n- Area: SDK\n- Names: `observesOnly`, `hostOwnsStdinOrigin`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}