Skip to main content

An AI agent to automatically resolve simple code review suggestions (on GitHub/GitLab)

Created
Active
Viewed 32 times
3 replies
0

Scenario:

  1. I create a PR on GitHub or GitLab
  2. Someone suggests a minor improvement
  3. I check the suggestion using the ChatGPT app
  4. I apply the improvement to the code

I believe there’s great potential to automate this process. An AI agent could handle it—by checking GitHub comments and showing an “Apply” button if the suggestion is valid.

Could someone please suggest which technology I could use to make this happen? (I’m a mobile developer, so this is outside my area of expertise)

3 replies

Sorted by:
79612986
0

Do you imagine this "Apply" button shows up in the PR on GitHub.com? If so, wouldn't you need to work for GitHub to make that happen? Or are you building a mobile app as an alternative frontend for PRs on GitHub so you have more control?

79613004
0

I imagine something like an “Apply” button in the ChatGPT App (Mac). So I think it should be some kind of Mac App with МCP server, that will go to Github, check data, ask openAI or any other tool and provide a way to apply it to any of my projects?

79613014
1

I don't think there is one true best technology for this since you will be primarily interacting with REST APIs. Every major programming language has an HTTP client, so pick the language you know best. The target platform for an app provides further constraints. The key parts are:

  • You need a REST API for GitHub that allows you to apply changes to a pull request.
  • The AI provider needs an REST API for their LLM.
  • You need to program the coordination logic.