Skip to content

feat(prompts): add task-aware conflict resolution to rebase-executor#47

Merged
HonestMajority merged 1 commit intomainfrom
rebase-with-task
Feb 25, 2026
Merged

feat(prompts): add task-aware conflict resolution to rebase-executor#47
HonestMajority merged 1 commit intomainfrom
rebase-with-task

Conversation

@HonestMajority
Copy link
Copy Markdown
Owner

The rebase-executor agent already receives the task's TASK.md content in its prompt but wasn't instructed to use it during conflict resolution. This adds a new early step telling the agent to review the # Current Task section to understand the branch goal, central files, and changes being made — then references that understanding in the conflict resolution guidance.

  • New step 2: review # Current Task to identify the goal, central files, and branch changes
  • Enhanced conflict resolution (step 6b): task-central files get careful merging preserving task changes; unrelated files prefer the target branch; task goals take priority when both sides conflict
  • Post-rebase verification (step 8) kept as-is as a final safety check

Text-only prompt change — no Rust logic modified. Both the embedded REBASE_EXECUTOR_PROMPT constant in src/config.rs and the user prompt file at ~/.agman/prompts/rebase-executor.md were updated identically.

Insert a new step instructing the rebase-executor agent to review the
# Current Task section before resolving conflicts, and enhance the
conflict resolution guidance to prioritize task-central files. Both the
embedded constant and user prompt file are updated in sync.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@HonestMajority HonestMajority merged commit dbe7130 into main Feb 25, 2026
1 check passed
@HonestMajority HonestMajority deleted the rebase-with-task branch February 25, 2026 07:41
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