-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GitHub repository information to system prompt #6057
Conversation
…s-ai/openhands into add-github-repo-to-prompt
At the user's request, repository {{ repository_info.repo_name }} has been cloned to directory {{ repository_info.repo_directory }}. | ||
</REPOSITORY_INFO> | ||
{% endif %} | ||
{% if repository_instructions -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember we inject this info in frontend as well? maybe we should remove that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged it first and we can merge this one to clean these up from FE #6279
This PR adds GitHub repository information to the system prompt when a repository is selected. This helps the agent better understand the context of the code it is working with.
Changes:
The repository information is included in the system prompt in a
<REPOSITORY_INFO>
block.To run this PR locally, use the following command: