Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Conversation

@ryx2
Copy link
Contributor

@ryx2 ryx2 commented Nov 11, 2024

This way, users can pass in their own files for additional instructions in the .jinja:

{% if repo_instruction %}

Some basic information about this repository:
{{ repo_instruction }}{% endif %}

@neubig
Copy link
Contributor

neubig commented Nov 11, 2024

Hey @ryx2 , this is already supported through the .openhands_instruction file I think, or is this something different?

@ryx2
Copy link
Contributor Author

ryx2 commented Nov 11, 2024

@neubig I am running this openhands-resolver code on multiple of my repos, so I would appreciate the option to switch instructions and keep those instructions in the repo that's being edited itself, as opposed to needing to make a branch for each repo on my fork of this openhands-resolver repo that contains an edit of the .openhands_instructions file

@neubig
Copy link
Contributor

neubig commented Nov 11, 2024

Hey @ryx2 , yes, you can already do that. Add .openhands_instructions file to the top directory any repo that you're working on and it will automatically be pulled in by the resolver without any code changes.

@neubig
Copy link
Contributor

neubig commented Nov 11, 2024

@ryx2
Copy link
Contributor Author

ryx2 commented Nov 11, 2024

ok! is it possible to throw a line into the readme.md so people like me would be able to understand the .openhands_instructions goes into the prompt? I can also add that line in a separate PR if you let me know what section it would be best in

@neubig
Copy link
Contributor

neubig commented Nov 11, 2024

Hey @ryx2 , yes a PR for the readme would be awesome! I think a new section "providing custom instructions" would be good. We could maybe add a few examples like the one from this repo and the one from the openhands repo.

@malhotra5
Copy link
Collaborator

+1 on this; I think maybe the section should be called "advanced settings" or "custom settings"? This would include a guide for setting repo instructions as detailed above + a custom macro to invoke openhands-resolver (introduced in #323)?

@ryx2 ryx2 mentioned this pull request Nov 11, 2024
@ryx2
Copy link
Contributor Author

ryx2 commented Nov 11, 2024

@malhotra5 I don't know what the custom macro is, but i just made a PR for just the .openhands_instructions, maybe you could add on the macro to that same section after a merge?

@ryx2 ryx2 closed this Nov 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants