2024-12-25 09:34:41 +00:00
## Overview
2025-01-02 14:49:59 +00:00
The `implement` tool converts human code review discussions and feedback into ready-to-commit code changes.
It leverages LLM technology to transform PR comments and review suggestions into concrete implementation code, helping developers quickly turn feedback into working solutions.
2024-12-25 09:34:41 +00:00
2025-01-02 08:34:04 +00:00
## Usage Scenarios
2025-01-02 14:49:59 +00:00
### For Reviewers
2025-01-02 08:34:04 +00:00
Reviewers can request code changes by: < br >
1. Selecting the code block to be modified. < br >
2. Adding a comment with the syntax:
```
/implement < code-change-description >
```
2025-01-02 14:49:59 +00:00
{width=640}
2025-01-02 08:34:04 +00:00
2025-01-02 14:49:59 +00:00
### For PR Authors
2025-01-02 08:34:04 +00:00
PR authors can implement suggested changes by replying to a review comment using either: < br >
1. Add specific implementation details as described above
```
/implement < code-change-description >
```
2. Use the original review comment as instructions
2024-12-25 09:34:41 +00:00
```
/implement
```
2025-01-02 14:49:59 +00:00
{width=640}
2024-12-25 09:34:41 +00:00
2025-01-02 14:49:59 +00:00
### For Referencing Comments
2025-01-02 08:34:04 +00:00
You can reference and implement changes from any comment by:
```
/implement < link-to-review-comment >
```
2025-01-02 14:49:59 +00:00
{width=640}
2025-01-02 08:34:04 +00:00
Note that the implementation will occur within the review discussion thread.
2024-12-25 09:34:41 +00:00
2025-01-02 08:34:04 +00:00
**Configuration options** < br >
- Use `/implement` to implement code change within and based on the review discussion. < br >
- Use `/implement <code-change-description>` inside a review discussion to implement specific instructions. < br >
- Use `/implement <link-to-review-comment>` to indirectly call the tool from any comment. < br >