All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
35.61k stars 4.05k forks source link

[Feature Request] Allow to provide a startup command (be able to run a command at the startup of OpenDevin for example to be able to install requirements for its shell context) #2843

Closed MarArMar closed 2 weeks ago

MarArMar commented 4 months ago

What problem or use case are you trying to solve?

Initially, OpenDevin generally has to install dependencies to run commands, in my case it was bun, but it could be python, poetry, node, rust...

Ideally, the user should be able to provide a command to setup the environment

A typical startup command could be "./setup_env.sh", basically running a bash command in the OpenDevin context. Here a script to setup a development environment and avoid paying / waiting for OpenDevin to try & find out all the things that are missing for him to setup

Additionally, OpenDevin tends to use outdated versions, in my case it installed Node v16 (current LTS is v20) even when explicitly instructed to use Bun v1.1 in my given task

Describe the UX of the solution you'd like

In the settings, allow to provide a "startup command"

If empty, do nothing

If provided, run it in the bash of OpenDevin

Do you have thoughts on the technical implementation?

Describe alternatives you've considered

I guess tell devin to run a command before it starts developing ?

Additional context

mamoodi commented 4 months ago

I'm not sure if you could circumvent the entire setting up if you use OpenDevin. In this very case, it seems the best case would be to create or use a custom docker as your sandbox which already has everything installed. That way OpenDevin can get straight to business :) https://docs.all-hands.dev/modules/usage/custom_sandbox_guide

MarArMar commented 4 months ago

Yes this is a workaround just not easy for the average user but it would work indeed

MarArMar commented 4 months ago

Right now I ask devin to run the command and it works.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been stalled for over 30 days with no activity.