feat(agents): inform agent of parent PR base in stacked dispatch #464
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#464
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As an agent author, I want the system prompt to tell the agent when its base is a parent PR (not main), and what to expect from rebase cascades, so that the agent doesn't make assumptions about
mainHEAD when implementing the issue.Acceptance criteria
Prompt template
system_prompt_template(Phase 2b) gains a conditional block: when${parent_pr}is set, append: "Your work is stacked on PR #${parent_pr}. Your base branch ispr/${parent_pr}, notmain. When the parent PR merges or its head SHA moves, your PR will be automatically rebased — do not panic if you see an unexpectedsynchronizedevent."Verification
Out of scope
References
system_prompt_template) —#451#462) forparent_prvar passed through#461🤖 Auto-assigned to boss (heuristic: area:agents → boss (architecture-touching)). Reply
/unassignto reroute.