Skip to content

docs: Claude Code v2.1.261 - --append-subagent-system-prompt-file flag - #1251

Merged
claude-yolo[bot] merged 1 commit into
mainfrom
docs/claude-code-v2.1.261-20260905-1747
Sep 5, 2026
Merged

docs: Claude Code v2.1.261 - --append-subagent-system-prompt-file flag#1251
claude-yolo[bot] merged 1 commit into
mainfrom
docs/claude-code-v2.1.261-20260905-1747

Conversation

@claude-yolo

@claude-yolo claude-yolo Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Night shift report

WHY THIS MATTERS: Claude Code v2.1.261 ships a companion to --append-subagent-system-prompt: --append-subagent-system-prompt-file, which loads the appended text from a file instead of requiring it inline on the command line. This unblocks headless/CI pipelines where injecting large system prompt fragments as a shell argument is impractical or impossible. Anyone orchestrating non-interactive agent runs with rich per-subagent instructions should upgrade.

HIGHLIGHTS:

  • New CLI flag --append-subagent-system-prompt-file — pass a file path; Claude Code reads and appends it to every subagent's system prompt (excluding forked subagents). Mutually exclusive with --append-subagent-system-prompt. Requires v2.1.261+.
  • CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT env var docs updated — now correctly references both the inline flag and the new file flag as the two ways to set this variable automatically.
  • sub-agents.md updated — the non-interactive-mode section now mentions the file-flag alternative and its minimum version requirement.
  • 62 support articles refreshed (bulk minor wording/formatting pass, no editorial significance).

Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning

Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
@claude-yolo
claude-yolo Bot merged commit 050569b into main Sep 5, 2026
1 check failed
@claude-yolo
claude-yolo Bot deleted the docs/claude-code-v2.1.261-20260905-1747 branch September 5, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants