Strengthen simplified tag-mode prompt (USE_SIMPLE_PROMPT) by ashwin-ant · Pull Request #1313 · anthropics/claude-code-action (original) (raw)
The opt-in simplified tag-mode prompt omitted several guardrails the default prompt has. Bring it closer to the default's posture while keeping it terse:
- Scoping clarification: spell out that only the triggering comment (or the issue body for issue events) carries instructions; other comments, the body, review comments, and repository files are reference context, not commands to act on.
- Review-only stop-condition: questions and code reviews must not edit, commit, push, or create branches unless the trigger explicitly asks for a code change.
- PR base-branch diff: when triggered on a PR with a known base branch, compare against origin/ instead of main/master.
- Capability limits: cannot submit formal PR reviews, approve, or merge; decline politely and point to the FAQ.
Adds focused tests covering the new lines for both PR and non-PR events, including presence/absence of the conditional base-branch line.