Skip to content
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

Start from template and project level instructions #6127

Open
AndrewMead10 opened this issue Jan 7, 2025 · 1 comment
Open

Start from template and project level instructions #6127

AndrewMead10 opened this issue Jan 7, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@AndrewMead10
Copy link

What problem or use case are you trying to solve?

I want to be able to start a project from a template that i have created (it has a frontend and backend structure like auth and components already installed). I also want to be able to give instructions for the AI to follow on a project level, like you can with the .cursorrules file. That way the AI will be structuring the code the way I expect and allow for easier code review and better more maintainable code for me.

Describe the UX of the solution you'd like
When choosing to open a project, start a new one, or load one from github, allow a load as template flag which will then clone/ copy the folder to the new project path and then open as normal.

For the .currsorrules analog, you could just make a .openhands file that would be used as the base rules for the project.

Do you have thoughts on the technical implementation?
For project creation from a template, I would expect its fairly similar to the existing new project workflow.

For the .openhands file, I am not super familiar with the agents and what info they specifically need, but the naive solution I would think is just appending the .openhands file to the system prompt for the LLM calls.

Describe alternatives you've considered
For starting from a template, existing load folder or github modifies the content of the original folder or repo, which we dont want to do if we are using a template.

You could prompt the AI with the project specific project context every time, but that seems a bit cumbersome.

@AndrewMead10 AndrewMead10 added the enhancement New feature or request label Jan 7, 2025
@mamoodi
Copy link
Collaborator

mamoodi commented Jan 8, 2025

The project level instructions is available: https://docs.all-hands.dev/modules/usage/prompting/microagents-repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants