Hooks reference changedhooks
Upstream edited this page at 28 Nov 2026 18:50 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 28 Nov 2026 19:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
1,375
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits177to this page, all time
The whole hunk
from line 1375, old and new numbered
/
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 1375
13751375
13761376To make skills that a SessionStart hook installs available in the same session, return `reloadSkills`. Skill discovery normally runs before SessionStart hooks finish, so without it, files a hook writes into `~/.claude/skills/` or `.claude/skills/` can be missing when the first prompt runs.
13771377
1378This example syncs a shared skills repository and requests the re-scan:
1378This example syncs a repository that has one `SKILL.md` at its root, then requests the re-scan:
13791379
13801380```bash theme={null}
13811381#!/bin/bash
from line 1386
13861386echo '{"hookSpecificOutput": {"hookEventName": "SessionStart", "reloadSkills": true}}'
13871387```
13881388
1389The repository URL is a placeholder. Replace it with your skills repository's HTTPS or SSH URL. With `protocol.file.allow=never` in the command, you can't clone from a folder path.
1389The repository URL is a placeholder. Replace it with your skill repository's HTTPS or SSH URL. With `protocol.file.allow=never` in the command, you can't clone from a folder path.
13901390
13911391#### Persist environment variables
13921392
from line 3640
36403640| `prompt_cache_warm` | boolean | Whether the current model's prompt cache is likely still warm, meaning the switch forfeits it |
36413641| `cache_ttl` | string | [Prompt cache lifetime](https://code.claude.com/docs/en/prompt-caching.md#cache-lifetime) of the main conversation at the time of this switch: `"5m"` or `"1h"` |
36423642| `estimated_cache_write_usd` | number | Estimated cost in US dollars of writing `context_tokens` to the prompt cache on `to_model` at the `cache_ttl` rate, excluding the next response. The server may not need to re-cache the whole context, so treat it as an estimate |
3643| `pricing` | string | How Claude Code priced `estimated_cache_write_usd`: `"configured"` at your organization's own ra
3643| `pricing` | string | How Claude Code priced `estimated_cache_write_usd`: `"configured"` at you
No line in this hunk matches that.