docs: Claude Code v2.1.261 - --append-subagent-system-prompt-file flag - #1251
Merged
Merged
Conversation
Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
--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_PROMPTenv 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.mdupdated — the non-interactive-mode section now mentions the file-flag alternative and its minimum version requirement.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning