{"version":"2.1.331","anchor":"host-start-ahead-wait-new-claude-code-host-started-ahead-en","canonical_anchor":"host-start-ahead-wait-new-claude-code-host-started-ahead-en","heading":"New CLAUDE_CODE_HOST_STARTED_AHEAD makes Claude Code wait for its host","tier":"use","area":"Hosts","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/host-start-ahead-wait-new-claude-code-host-started-ahead-en","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### New `CLAUDE_CODE_HOST_STARTED_AHEAD` makes Claude Code wait for its host\n\nWith `CLAUDE_CODE_HOST_STARTED_AHEAD` set, Claude Code waits until its host sends a first message or request before going on\n\n**Unclear.** What the second check is, and so whether setting the variable alone turns on the wait, is not clear.\n\n**What**\n\nA program that runs Claude Code inside itself, such as an editor, is called a host. A new environment variable, `CLAUDE_CODE_HOST_STARTED_AHEAD`, lets a host start Claude Code before the host's own page is ready.\n\nWhen it is set and a second check passes, Claude Code holds the session in a waiting state. The wait ends when either of these arrives:\n\n- the first user message\n\n- a request from the host other than the startup handshake or an MCP message\n\nClaude Code also lists the variable among the environment variables it passes through or accepts.\n\n**Why**\n\nThis lets an editor or other host launch Claude Code early so it is ready sooner. It only matters to people building such integrations.\n\n- Area: Hosts\n- Names: `CLAUDE_CODE_HOST_STARTED_AHEAD`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}