Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix: nudge bot to respond on its own PRs/issues (#1205)

Maximilian Roosb46557237a5a
diff --git a/.github/CLAUDE.md b/.github/CLAUDE.md
index 833a73f19..f286e04c4 100644
--- a/.github/CLAUDE.md
+++ b/.github/CLAUDE.md
@@ -134,7 +134,7 @@ The mention workflow runs for any user who includes `@worktrunk-bot` — the mer
- Formal review submitted on a `worktrunk-bot`-authored PR, with body or non-approval → `claude-review` responds
- `@worktrunk-bot` mentioned in an issue body → `claude-mention` responds
- `@worktrunk-bot` mentioned in any comment (issue or PR) → `claude-mention` responds
-- Any comment on a PR or issue that `worktrunk-bot` has engaged with (authored, reviewed, or commented on) → `claude-mention` runs (verify step confirms engagement via API), but the prompt instructs Claude to only respond if the comment needs bot input — otherwise exit silently
+- Any comment on a PR or issue that `worktrunk-bot` has engaged with (authored, reviewed, or commented on) → `claude-mention` runs (verify step confirms engagement via API), but the prompt instructs Claude to only respond if the comment needs bot input — otherwise exit silently. When the bot authored the PR/issue, it leans toward responding since commenters expect the author to engage.
- Editing a comment or issue body re-triggers the same response
**Does not trigger:**
diff --git a/.github/workflows/claude-mention.yaml b/.github/workflows/claude-mention.yaml
index d55598aa8..932ef2470 100644
--- a/.github/workflows/claude-mention.yaml
+++ b/.github/workflows/claude-mention.yaml
@@ -203,7 +203,7 @@ jobs:
github.event.comment.html_url
)
|| format(
- 'A user commented on an issue/PR where you previously participated ({0}). Read the full context (description, recent comments, CI status). Only respond if the comment is directed at you, asks a question you can help with, or requests changes you can make. If the conversation is between humans and doesn''t need your input, exit silently without commenting.',
+ 'A user commented on an issue/PR where you previously participated ({0}). Read the full context (description, recent comments, CI status). Only respond if the comment is directed at you, asks a question you can help with, or requests changes you can make. If the conversation is between humans and doesn''t need your input, exit silently without commenting. Note: if you are the author of the PR or issue, commenters are probably expecting the author to engage — lean toward responding.',
github.event.comment.html_url
))
|| format(