Implement code review feature#8
Merged
Merged
Conversation
added 4 commits
May 6, 2026 01:58
…for PullRequestCommitContext
Summary by CodeHawkyStatus
Summary
Risk
Review Path
Open Questions
|
There was a problem hiding this comment.
The implementation introduces an automated code review feature, restructures service naming and authentication workflows, and adds related tests and refactoring. There are no detectably blocking correctness, security, regression, or workflow issues based on the provided patches. The process-level GitHub token cache is properly scoped and includes expiry safety. Auth, handler connections, and service orchestration adapt to the new flow as expected. Tests reflect the changes, and references to removed/changed fields and files have been updated accordingly. No actionable inline concerns were identified from the evidence provided. The code is safe to merge.
Summary by CodeHawkyStatus
Summary
Risk
Review Path
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the initial PR code review agent workflow. It introduces a CodeHawky code review agent that can inspect pull request context, use GitHub-backed tools for additional file context, produce structured review output,
and submit a GitHub pull request review.
It also adds process-level caching for GitHub installation tokens and performs related cleanup around GitHub auth, service naming, and PR prompt payloads.
Type of Change
Changes Made
codehawk/agents/code_review_agent.pyfor PR code review generation.PR_CODE_REVIEW_SYSTEM_PROMPTto guide the code review agent with GPT-5.5-oriented instructions.codehawk/services/pull_request_review.pyto run the full PR code review workflow from webhook payloads.get_pr_infocodehawk/github/token_cache.py.get_installation_token.authored_atcommitted_atcomment_countpull_request_summary_service.pytopull_request_summary.py.How to Test
Run: