Skip to content

fix(author,implement): adapt to Claude Code v2 system-prompt changes#10

Open
pksorensen wants to merge 2 commits into
Hafeok:mainfrom
pksorensen:claude-code-v2-systemprompt-fix
Open

fix(author,implement): adapt to Claude Code v2 system-prompt changes#10
pksorensen wants to merge 2 commits into
Hafeok:mainfrom
pksorensen:claude-code-v2-systemprompt-fix

Conversation

@pksorensen

Copy link
Copy Markdown

Claude Code v2 dropped --system-prompt-file outside --bare mode, but --bare disables OAuth/keychain auth, so author and implement pipelines were silently broken. Authoring prompts are small enough to inline via --system-prompt, but implement's depth-2 context bundle can exceed Linux's 128 KB MAX_ARG_STRLEN per argv entry — so implement now spawns claude with a short positional kickoff that tells the agent to Read the bundle from disk as its first turn, keeping the interactive TUI intact for tmux-driven orchestration.

Also fix author's prompt lookup: SessionType renders "feature" / "adr" / "review" but the default_content map keys them with the "author-" prefix, so the curated methodology prompt was being dropped to the empty-string fallback.

Claude Code v2 dropped `--system-prompt-file` outside `--bare` mode,
but `--bare` disables OAuth/keychain auth, so author and implement
pipelines were silently broken. Authoring prompts are small enough
to inline via `--system-prompt`, but implement's depth-2 context
bundle can exceed Linux's 128 KB MAX_ARG_STRLEN per argv entry — so
implement now spawns claude with a short positional kickoff that
tells the agent to Read the bundle from disk as its first turn,
keeping the interactive TUI intact for tmux-driven orchestration.

Also fix author's prompt lookup: SessionType renders "feature" /
"adr" / "review" but the default_content map keys them with the
"author-" prefix, so the curated methodology prompt was being
dropped to the empty-string fallback.
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.

1 participant