Unclear It is not clear whether this behaviour is switched on for everyone yet.
Hooks are commands you configure to run automatically at certain moments. For cloud sessions (sessions running on Anthropic's servers, started with --cloud), Claude Code now says that hooks start in an empty folder rather than in your project. To have a hook run in the project, mark it "cloud": "device" in your user settings.
If your machine does not answer, or is not recognized as a trusted device, Claude Code says it is not running this machine's hooks for the cloud session and points you to claude --cloud. A shorter version of the empty-folder hint also appears next to a hook.
A hook that needs your project files will not find them in a cloud session unless you mark it to run on your own device.
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.
* Background commands in a local session you work in from a terminal, the desktop app, or the VS Code extension have no time limit. In a session that runs unattended, such as a `-p` run or a cloud session, Claude Code stops a background co…interactive-mode see the edit
* Added a built-in `gh api` to cloud sessions whose image has no GitHub CLI, and fixed the built-in sending control characters from file names, jq filters or GitHub errors to the terminalchangelog see the edit
It is not clear whether this behaviour is switched on for everyone yet.
Anthropic's documentation has since written up cloud, on Claude Code changelog.