Skip to content

Replace /review with self-review in agent prompts#638

Closed
kelos-bot[bot] wants to merge 1 commit intomainfrom
kelos-config-update-20260311-1800
Closed

Replace /review with self-review in agent prompts#638
kelos-bot[bot] wants to merge 1 commit intomainfrom
kelos-config-update-20260311-1800

Conversation

@kelos-bot
Copy link

@kelos-bot kelos-bot bot commented Mar 11, 2026

/kind cleanup

What this PR does / why we need it:

Replaces non-functional /review comment instructions with self-review via git diff in two TaskSpawner prompt templates:

  • kelos-workers.yaml: Steps 5a/6a (existing PR path) and step 5b (new PR path)
  • kelos-pr-responder.yaml: Steps 5/6

Also adds --force-with-lease guidance for push steps after rebase.

Which issue(s) this PR is related to:

N/A — driven by recurring maintainer feedback on agent-generated PRs.

Special notes for your reviewer:

Evidence from PR reviews:

  1. /review doesn't work — PR Handle label commands across issue, PR, and review surfaces #586: maintainer @gjkim42 commented: "commenting '/review' doesn't work at all. you have to review your code yourself." Agents were posting /review as PR comments expecting automated review, but this has no effect.

  2. --force-with-lease needed after rebase — PR Add pre-push verification, diff checks, and commit squashing conventions #619 review: cubic-dev-ai noted that regular git push is rejected after squashing/rebasing. Agents need explicit guidance to use --force-with-lease.

The self-review instructions tell agents to run git diff origin/main...HEAD (or upstream/main...HEAD when applicable) and carefully read the full diff, checking for correctness, style, missing tests, and alignment with requirements.

Does this PR introduce a user-facing change?

NONE

Summary by cubic

Replaced the non-functional "/review" step with explicit self-review using git diff origin/main...HEAD (or upstream/main...HEAD) in self-development/kelos-workers.yaml and self-development/kelos-pr-responder.yaml, and added guidance to use git push --force-with-lease after a rebase. This removes ineffective PR comments and avoids push failures, improving PR quality and reliability.

Written for commit f505b8c. Summary will update on new commits.

Maintainer feedback on PR #586 confirmed that commenting "/review"
on PRs does not work. Replace all /review references with self-review
instructions that use `git diff origin/main...HEAD` to read the full
diff. Also add `--force-with-lease` guidance for push after rebase.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@gjkim42 gjkim42 closed this Mar 12, 2026
@gjkim42
Copy link
Collaborator

gjkim42 commented Mar 12, 2026

I think we don't need to do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant