Is there any way to augment the PATH for openhands...
# questions
s
Is there any way to augment the PATH for openhands in the sandbox runtime? I've got a custom runtime image with some additional commands installed but can't figure out how to get them into the path for execute_bash.
l
Did you try the
setup.sh
script? https://docs.all-hands.dev/usage/prompting/repository#setup-script That should basically work
(it’s imported through “source” so env vars should carry over)
s
We have a multi-repo setup so we generally start with an empty slate and leave it to the agent to clone the appropriate repos. We could set up a repo just to contain
setup.sh
and start with that checked out and then go clone the other repos. In a similar vein, any way to dynamically add micro-agents? After cloning 3 repos, it'd be nice to register all their micro-agents
l
This would be nice functionality to have, so definitely feel free to open an issue!
Oh, actually, wait a second
Probably fixing this issue will fix the microagents issue: https://github.com/All-Hands-AI/OpenHands/issues/7752
And maybe setup.sh, although that’s a little bit trickier since the different setup scripts might conflict
s
Hmmm... Our flow is a little blurrier. We don't know which repos we need. That's the first thing the agent needs to figure out.
l
Ah, interesting! This is a workflow that we may need to support, possibly by adding a new tool to the github mcp “clone_repo” that clones the repo then loads the microagents or something.