{"version":"2.1.277","anchor":"session-start-announcements-can-be-forced-before-the-closing","canonical_anchor":"session-start-announcements-can-be-forced-before-the-closing","heading":"Session-start announcements can now be moved to just before the closing line","tier":"use","area":"Headless Mode","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277\/e\/session-start-announcements-can-be-forced-before-the-closing","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277","markdown":"### Session-start announcements can now be moved to just before the closing line\n\nA new env var lets session-start context blocks (sandbox info, model, skills, etc.) be repositioned right before the final prompt line\n\n**What**\n\nAt the start of a session, Claude Code attaches several 'announcement' blocks to the first message, things like sandbox instructions, environment details, the active model, proactivity notes, budget info, available tools, skill listings, output style instructions, language, and auto-mode status. A new mechanism can now move these announcements so they sit right before the closing line of the message instead of their normal position.\n\nThis behavior is controlled by a new environment variable, `CLAUDE_CODE_SESSION_START_ANNOUNCEMENTS_BEFORE_PROMPT`. When it's set, Claude Code checks whether the repositioning is possible (it isn't for models without system messages, when there's no user message, or when there's nothing to announce) and moves the announcements if so.\n\n**Why**\n\nRepositioning these blocks can change how the model weighs session-start context relative to the user's actual request. The feature records telemetry on whether and why the reposition happened or was skipped, which helps diagnose behavior differences tied to this setting.\n\n- Area: Headless Mode\n- Names: `CLAUDE_CODE_SESSION_START_ANNOUNCEMENTS_BEFORE_PROMPT`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5"}