{"version":"2.1.324","anchor":"new-hook-mod-startup-phase-and-placehooktranscript-op","canonical_anchor":"new-hook-mod-startup-phase-and-placehooktranscript-op","heading":"Hooks gain a way to write conversation transcripts to a per-session file","tier":"use","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/new-hook-mod-startup-phase-and-placehooktranscript-op","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Hooks gain a way to write conversation transcripts to a per-session file\n\nA new hook operation writes transcript lines to a file for each session, up to 3 MiB per call\n\n**Unclear.** How a hook reaches this operation and whether it is switched on is not stated.\n\n**What**\n\nA hook is a command or function that runs at a set point while Claude Code works. A new operation available to hooks, `PlaceHookTranscript`, writes lines of the conversation transcript to a file kept for each session. The transcript is the record of what was said and done in a session.\n\n- Each call can write at most 3 MiB.\n\n- The target must be an ordinary file with a single link, not a shortcut or a shared file.\n\nAt startup, Claude Code also now waits for a plugin step to finish before a later stage of loading.\n\n**Why**\n\nHooks can now get access to the session transcript. The file checks stop a write from landing somewhere other than the intended file.\n\n- Area: Hooks\n- Names: `PlaceHookTranscript`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}