{"version":"2.1.327","anchor":"hook-callbacks-receive-a-context-object","canonical_anchor":"hook-callbacks-receive-a-context-object","heading":"Hook callbacks get more information about the running session","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/hook-callbacks-receive-a-context-object","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Hook callbacks get more information about the running session\n\nCallback hooks now receive details about the session, including app state and the list of active agents\n\n**Unclear.** It is not clear whether hooks you write yourself or install from a plugin receive this information.\n\n**What**\n\nHooks are pieces of code that run at set points while Claude Code works. Callback hooks, which run as code inside Claude Code rather than as a separate command, now receive more information when they are called. It includes:\n\n- a way to read the app's current state\n\n- a way to record attribution changes, which track who made an edit\n\n- the current session\n\n- stored data\n\n- the agents that are running now\n\n**Why**\n\nHooks of this kind can now see the app's state and which agents are running, so they can act on more of what is happening.\n\n- Area: Hooks\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}