All-Hands-AI / openhands-resolver

A system that tries to resolve all issues on a github repo with OpenHands.
MIT License
27 stars 9 forks source link

[Enhancement] Agent localization for review comments #189

Open malhotra5 opened 3 hours ago

malhotra5 commented 3 hours ago

Current

Openhands resolver updates a PR branch based on unresolved review comments. Inline review comments inherently localize to a specific code file. Openhands' agents don't utilize this context and spend time localizing to which file the comments apply to.

Enhancement

Perhaps the user can have an indicator that forces openhands to start making changes from a specific file? Possible solution may look like the following -

  1. Initialize the workspace
  2. Navigate to the directory which contains the code file
  3. Start a code agent with context indicating that it must start work within a specific file in the current directory

Possible benefits

Impact

Enables interactive/iterative coding for users. Not quite as fast as cursor but the advantage is that PR review comments are self documenting while retaining the ability to perform rapid iterations (especially if working within one specific file)

neubig commented 3 hours ago

I think we could also just pass in the file names through the prompt, which might be much easier.