-
Notifications
You must be signed in to change notification settings - Fork 0
feat(review): allow search tools and upload execution log #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
65dd0ac
feat(review): allow search tools and upload execution log
zfarrell fe9936f
fix(review): make execution-log upload non-fatal and short-lived
zfarrell 8e9815c
fix(review): upload tool-usage projection, not the raw transcript
zfarrell cc29162
docs(review): merge duplicated execution-log comment blocks
zfarrell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| [ | ||
| { | ||
| "type": "system", | ||
| "subtype": "init", | ||
| "message": "Claude Code initialized", | ||
| "model": "claude-opus-5[1m]" | ||
| }, | ||
| { | ||
| "type": "assistant", | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": [ | ||
| { | ||
| "type": "tool_use", | ||
| "id": "tu_1", | ||
| "name": "Bash", | ||
| "input": { "command": "gh pr view 21" } | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "assistant", | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": [ | ||
| { | ||
| "type": "tool_use", | ||
| "id": "tu_2", | ||
| "name": "mcp__github_inline_comment__create_inline_comment", | ||
| "input": { "path": "README.md", "line": 15, "body": "nit: typo" } | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "result", | ||
| "subtype": "success", | ||
| "is_error": false, | ||
| "duration_ms": 41200, | ||
| "num_turns": 7, | ||
| "total_cost_usd": 0.21, | ||
| "permission_denials": [] | ||
| } | ||
| ] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,132 @@ | ||
| [ | ||
| { | ||
| "type": "system", | ||
| "subtype": "init", | ||
| "message": "Claude Code initialized", | ||
| "model": "claude-opus-5[1m]" | ||
| }, | ||
| { | ||
| "type": "assistant", | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": [ | ||
| { | ||
| "type": "tool_use", | ||
| "id": "tu_1", | ||
| "name": "Bash", | ||
| "input": { "command": "gh pr diff 21" } | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "user", | ||
| "message": { | ||
| "role": "user", | ||
| "content": [ | ||
| { | ||
| "type": "tool_result", | ||
| "tool_use_id": "tu_1", | ||
| "content": "diff --git a/.github/workflows/claude-pr-review.yml b/.github/workflows/claude-pr-review.yml" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "assistant", | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": [ | ||
| { "type": "text", "text": "Searching for the allowlist." }, | ||
| { | ||
| "type": "tool_use", | ||
| "id": "tu_2", | ||
| "name": "Grep", | ||
| "input": { "pattern": "allowedTools" } | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "user", | ||
| "message": { | ||
| "role": "user", | ||
| "content": [ | ||
| { | ||
| "type": "tool_result", | ||
| "tool_use_id": "tu_2", | ||
| "content": "Claude requested permissions to use Grep, but you have not granted it yet.", | ||
| "is_error": true | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "assistant", | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": [ | ||
| { | ||
| "type": "tool_use", | ||
| "id": "tu_3", | ||
| "name": "Grep", | ||
| "input": { "pattern": "retention-days" } | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "assistant", | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": [ | ||
| { | ||
| "type": "tool_use", | ||
| "id": "tu_4", | ||
| "name": "Read", | ||
| "input": { | ||
| "file_path": "/home/runner/work/_temp/git-credentials-82efe7dc.config" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "user", | ||
| "message": { | ||
| "role": "user", | ||
| "content": [ | ||
| { | ||
| "type": "tool_result", | ||
| "tool_use_id": "tu_4", | ||
| "content": "[http \"https://github.com/\"]\n\textraheader = AUTHORIZATION: basic eC1hY2Nlc3MtdG9rZW46Z2hzX0ZBS0VUT0tFTkZPUlRFU1RT" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "result", | ||
| "subtype": "success", | ||
| "is_error": false, | ||
| "duration_ms": 94238, | ||
| "num_turns": 19, | ||
| "total_cost_usd": 0.46520325, | ||
| "permission_denials": [ | ||
| { | ||
| "tool_name": "Grep", | ||
| "tool_use_id": "tu_2", | ||
| "tool_input": { "pattern": "allowedTools" } | ||
| }, | ||
| { | ||
| "tool_name": "Grep", | ||
| "tool_use_id": "tu_3", | ||
| "tool_input": { "pattern": "retention-days" } | ||
| }, | ||
| { | ||
| "tool_name": "Glob", | ||
| "tool_use_id": "tu_5", | ||
| "tool_input": { "pattern": "**/*.yml" } | ||
| } | ||
| ] | ||
| } | ||
| ] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| [ | ||
| { | ||
| "type": "system", | ||
| "subtype": "init", | ||
| "message": "Claude Code initialized", | ||
| "model": "claude-opus-5[1m]" | ||
| }, | ||
| { | ||
| "type": "assistant", | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": [ | ||
| { | ||
| "type": "tool_use", | ||
| "id": "tu_1", | ||
| "name": "Read", | ||
| "input": { "file_path": ".github/workflows/claude-pr-review.yml" } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit: worth a line in
README.md(not blocking).The README describes what this workflow does for every repo in the org, and after this change each PR gets an artifact attached. A sentence under "Claude PR Review" noting the execution log, its retention, and that it exists for diagnosing tool-permission denials saves the next person from reverse-engineering it from the workflow comments.