{"version":"2.1.334","anchor":"goal-reporting-to-the-session-metadata-frame-gated-by-tengu","canonical_anchor":"goal-reporting-to-the-session-metadata-frame-gated-by-tengu","heading":"Programs driving Claude Code can receive the session's goal","tier":"soon","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/goal-reporting-to-the-session-metadata-frame-gated-by-tengu","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Programs driving Claude Code can receive the session's goal\n\nClaude Code can send a `session_metadata` message carrying the session's goal, when a server-controlled switch allows it\n\n**Unclear.** Whether goal reporting runs when the server sends nothing is unclear, because the code and the release note disagree on the default.\n\n**What**\n\nWhen another program drives Claude Code through the SDK (the kit for controlling Claude Code from code), Claude Code can send it a `session_metadata` message holding the session's goal. It sends this with the first reply after start-up and again whenever the goal is reported.\n\nIt does this only when the connection is local rather than remote. A server-controlled switch, `tengu_ticklish_pretzel`, is checked each time before sending.\n\n**Why**\n\nApps built on Claude Code can show or track what a session is working towards without asking separately.\n\n- Flag `tengu_ticklish_pretzel`: Not enough to say (read for one account on one subscription tier against v2.1.334; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: SDK\n- Names: `session_metadata`, `tengu_ticklish_pretzel`\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}