Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Run Claude Code programmatically changedheadless

Upstream edited this page at 28 Nov 2026 19:04 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 28 Nov 2026 19:07 UTC.

Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line 54 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits61to this page, all time

The whole hunk

from line 54, old and new numbered
/
lines
from line 54
5454| [Custom agents](https://code.claude.com/docs/en/sub-agents.md#choose-the-subagent-scope) | `--agents <file-or-json>` |
5555| A plugin | `--plugin-dir <path>`, `--plugin-url <url>` |
5656 
57Hooks still don't run in bare mode when you pass them with `--settings`, or in the [`hooks/hooks.json`](https://code.claude.com/docs/en/plugins/components#hooks) or [`hooks` manifest key](https://code.claude.com/docs/en/plugins/manifest-reference#hooks) of a plugin you load with a flag. Don't use bare mode for a run that needs them.
57Hooks still don't run in bare mode when you pass them with `--settings`, or in the [`hooks/hooks.json`](https://code.claude.com/docs/en/plugins/components#hooks) or [`hooks` manifest key](https://code.claude.com/docs/en/plugins/manifest-reference#hooks) of a plugin you load with a flag. [Agent SDK hook callbacks](https://code.claude.com/docs/en/agent-sdk/hooks.md) don't run either. Don't use bare mode for a run that needs these hooks.
5858 
5959Bare mode also limits what happens while the session runs:
6060 
from line 66
6666 
6767> [!NOTE]
6868>
69> `--bare` is the recommended mode for scripted and SDK calls, and will become the default for `-p` in a future release.
69> `--bare` is the recommended mode for scripted and SDK calls that don't need hooks, and will become the default for `-p` in a future release.
7070 
7171### Background tasks at exit
7272 
Feedback