This project builds on Agent to review code in Github PRs. It has been adapted to work with the GitCode platform, adding the following features:
- Webhook Integration: The GitCode platform sends webhook data when a new Pull Request is created in a watched repository.
- Automated Review: The review generated by the LLM (Large Language Model) is posted directly as a comment on the Pull Request.
To get this project up and running, follow these steps:
- Deploy the project on Flows.network.
- After deployment, you will receive a Webhook URL.
Please note that the code to run is located in the gitcode_pr_review folder, put it in the Directory field in the table

- Configure the necessary credentials for the project.
- In your repository settings on GitCode, set up a webhook to trigger on Pull Request events.
- Use the Webhook URL you obtained from Flows.network.
- Once the Flows function reviews the Pull Request, the bot will automatically post the review as a comment on the Pull Request, similar to the example below:
- Ensure that the webhook is correctly configured to listen for Pull Request events.
- The bot will only post reviews for new Pull Requests after the webhook is set up.
By following these steps, you can automate the code review process for your GitCode repositories using the power of Flows.network and LLM-based reviews.



