claude drop-worktree-registrations still gives its own message: it cannot run from inside a Claude Code session because the VS Code extension runs it.
Why
The rule is now kept in one place for all three commands. Because the shared check decides on its own, the exact conditions for refusing may differ from the old single-variable test.
Read from
Names in the bundleclaude edit-skill-overridesclaude edit-chrome-settingsclaude drop-worktree-registrationsCLAUDE_CODE_CHILD_SESSION
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up CLAUDE_CODE_CHILD_SESSION, on Agent SDK reference - TypeScript.If your application runs prompts on its own schedule, declare each run so Claude Code frames the turn to the model as a scheduled task rather than as live input from the user. Start the session with `CLAUDE_CODE_HOST_SCHEDULED_RUN` set to …agent-sdk/typescriptsee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhether the shared check uses the same conditions as the old `CLAUDE_CODE_CHILD_SESSION` test is not established.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_CHILD_SESSION, on Agent SDK reference - TypeScript.