{"version":"2.1.333","anchor":"sdk-schema-written-at-field-and-hook-note","canonical_anchor":"sdk-schema-written-at-field-and-hook-note","heading":"SDK messages gain a written_at field and a note on hooks","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/sdk-schema-written-at-field-and-hook-note","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### SDK messages gain a `written_at` field and a note on hooks\n\nSome SDK system messages can carry a new written_at field, and the docs say linked-computer tools stop PostToolUse hooks replacing two tools' results\n\n**What**\n\nThe Agent SDK lets other programs run Claude Code and read the messages it sends. Two changes to its message format:\n\n- Some system messages can now include an optional `written_at` field.\n\n- The description of the `codeRunningMcpTools` option now says that declaring a tool of the linked computer (the servers `remote-devices` and `claude-device`) also stops every `PostToolUse` hook from replacing the results of `AskUserQuestion` and `ExitPlanMode`.\n\nA `PostToolUse` hook is a command that runs after a tool call succeeds, a tool call being one action Claude takes with a tool.\n\n**Why**\n\nIf you build on the SDK and declare those linked-computer tools, your `PostToolUse` hooks will not replace what `AskUserQuestion` and `ExitPlanMode` return.\n\n- Area: SDK\n- Names: `written_at`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}