{"version":"2.1.333","anchor":"mods-runtime-gains-flagvalue-call-classicsessionend-event","canonical_anchor":"mods-runtime-gains-flagvalue-call-classicsessionend-event","heading":"Mods can react to the session ending and read flag values","tier":"internal","area":"Mods","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/mods-runtime-gains-flagvalue-call-classicsessionend-event","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Mods can react to the session ending and read flag values\n\nMods can now listen for the session ending and read flag values, and a new Mods guide explains hot reloading\n\n**What**\n\nMods are add-ons that run inside Claude Code. What they can do has widened:\n\n- `classic.SessionEnd` is now an event mods can listen for, matching the `SessionEnd` hook that runs when a session ends\n\n- `flag.value` is now a call mods can make to read a flag's value\n\n- `registration.dispose` is a new call that Claude Code handles on the mod's behalf\n\nThere is also a new guide called \"Mods guide\", described as explaining hot reloading for mods, which means applying changes to a mod without restarting.\n\n**Why**\n\nMod authors can now run code when a session ends and read flag values from inside a mod.\n\n- Area: Mods\n- Tier: Under the hood\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}