{"version":"2.1.333","anchor":"sdk-messages-get-a-written-at-timestamp-when-written-without","canonical_anchor":"sdk-messages-get-a-written-at-timestamp-when-written-without","heading":"Messages sent to SDK programs now carry a written_at timestamp","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/sdk-messages-get-a-written-at-timestamp-when-written-without","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Messages sent to SDK programs now carry a written_at timestamp\n\nMessages Claude Code writes out to SDK programs now get a `written_at` time when they have no `timestamp` of their own\n\n**What**\n\nThe SDK (software development kit) lets other programs run Claude Code and read the messages it produces, for example as stream-json output, which is one JSON message per line. When Claude Code writes out a message that has no `timestamp` text of its own, it now adds a `written_at` field holding the current time in ISO format (for example `2026-11-30T12:00:00.000Z`).\n\nSome message types are left without it, including the system messages that report thinking tokens.\n\nThe described shape of several messages now lists `written_at` as an optional field. These include the message about falling back to another model, the warning about instruction files, the message reporting a failure to save to the session store, and some result messages.\n\n**Why**\n\nPrograms that read Claude Code's SDK or stream-json output will start to see this new field on many messages. Code that checks for unexpected fields may need updating, and code that wants to know when a message was written can now use it.\n\n- Area: SDK\n- Names: `written_at`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}