|
1 | 1 | github: |
2 | 2 | base_url: "https://api.github.com" |
3 | 3 | check_name: "Amp Code Review" |
4 | | - development_mode: true |
5 | | - bot_username: "amp-code-review-agent" |
6 | 4 |
|
7 | 5 | queue: |
8 | 6 | max_workers: 20 |
9 | 7 | max_queue_size: 100 |
10 | 8 | retry_after_seconds: 60 |
11 | 9 |
|
12 | | -# Diff splitting configuration |
13 | | -diff_splitting: |
14 | | - max_chunk_size: 500000 # 500k characters per chunk |
15 | | - max_concurrent: 3 |
| 10 | + |
16 | 11 |
|
17 | 12 | server: |
18 | 13 | port: "${PORT:-5053}" |
19 | 14 | debug: "${DEBUG:-false}" |
20 | 15 |
|
21 | 16 | amp: |
22 | | - timeout: "${AMP_TIMEOUT}" |
23 | 17 | command: "npx --yes @sourcegraph/amp@latest" |
24 | 18 | server_url: "${AMP_SERVER_URL}" |
25 | 19 | settings: |
|
56 | 50 |
|
57 | 51 | Review the diff content to identify issues. If you find any issues, leave specific inline comments for each issue found. |
58 | 52 |
|
59 | | - Always leave actionable, specific comments with suggested fixes. |
60 | | -
|
61 | | - Suggestions are optional snippets of code that can directly replace the full line the indicated issue is on. If provided, the suggestion should be just code-- no thought process included. |
62 | | - If there is no simple code suggestion you can provide to fix the issue succinctly, provide null as the suggestion value instead. |
63 | | - Suggestions can only be left on "new" line_type issues, not on "old" issues. For "old" issues, the suggestion should be null. |
| 53 | + Suggested fixes are optional snippets of code that can directly replace the full line the indicated issue is on for an inline comment. |
| 54 | + If there is no simple code suggestion you can provide to fix the issue succinctly, do not provide a suggested fix. |
64 | 55 |
|
65 | 56 | Tools available to complete the code review process: |
66 | 57 | __TOOL_CONTENT__ |
67 | 58 |
|
68 | | - After you have completed the code review process: |
| 59 | + After you have completed the code review process, leave a single general comment. |
| 60 | + This comment should NOT reiterate the issues already identified in inline comments. Instead, include: |
| 61 | + * A brief summary of the diff's changes; include the goal of the changes and what they affect |
| 62 | + * A tour of the changes-- recommend the best tour order for reviewing the changes. Identify the best place to start the review-— the part that conveys the core and helps in understanding the rest. |
| 63 | + * (Optional) Any minor or vague considerations that were not obvious enough to be left as an inline comment-- don't repeat any inline comments. |
69 | 64 |
|
70 | | - Leave a general comment summarizing the review, including: |
71 | | - * A brief summary of the changes reviewed |
72 | | - * List out critical issues and blockers that need to be addressed |
73 | | - * Any high-level feedback or suggestions |
| 65 | + Keep your tone professional and concise when commenting. No emojis. |
74 | 66 |
|
75 | 67 | tools: |
76 | 68 | - name: leave_general_comment |
77 | | - description: Leave general comments on pull requests |
| 69 | + description: Leave general review comments on pull requests |
78 | 70 | instructions: |
79 | | - - "Use this tool to leave general comments on the pull request" |
80 | | - - "This will post your comment to the overall pull request discussion" |
81 | | - - "Use for summary comments, overall feedback, or general observations" |
| 71 | + - "Use this tool to leave a general review comment on the pull request" |
| 72 | + - "This will post your comment as the top level comment on a review" |
82 | 73 | - "Required: message, owner, repo, pr_number" |
83 | | - - "Example: 'Overall the code looks good, just a few minor suggestions'" |
| 74 | + - "Example: 'The changes look good, but there are a few issues that need to be addressed'" |
84 | 75 | - name: leave_inline_comment |
85 | 76 | description: Leave inline comments on specific lines in pull requests |
86 | 77 | instructions: |
87 | 78 | - "Use this tool to leave comments on specific lines of code" |
88 | 79 | - "This will post your comment directly on the line in the diff view via PR review" |
89 | 80 | - "Required: message, owner, repo, pr_number, path, line" |
90 | | - - "Optional: commit_sha (will be fetched from PR if not provided)" |
| 81 | + - "Optional: suggested_fix - provide exact replacement code for obvious/trivial fixes only" |
| 82 | + - "For suggested_fix: only include the raw code replacement, no markdown formatting or explanations" |
| 83 | + - "Use suggested_fix for simple fixes like typos, missing semicolons, variable name corrections, etc." |
| 84 | + - "Do NOT use suggested_fix for complex changes, architectural decisions, or anything requiring explanation" |
91 | 85 | - "Example: Comment on line 25 of src/auth.js about missing error handling" |
| 86 | + - "Example with fix: Comment on typo with suggested_fix: 'const userName = req.body.username;'" |
92 | 87 | - name: get_pr_comments |
93 | 88 | description: Get all comments on a pull request |
94 | 89 | instructions: |
|
0 commit comments