OpenHands
OpenHands copied to clipboard
[Feature]: Teach OpenDevin agents their name and email address
What problem or use case are you trying to solve?
We recently added the ability to push to github: #1415
However, when doing so, our agents don't know their name and email address, so we should probably prompt them with a name and email address to use for PRs.
Do you have thoughts on the technical implementation?
This could be achieved by adding name and email to the config and defaults
, with defaults like OpenDevin and some email address we create.
This could then be referenced in the prompts provided to the agents, starting with MonologueAgent.
Hey, I would like to work on this!
Great @ADTmux , please take a look!
Fixed by https://github.com/OpenDevin/OpenDevin/pull/1842
Hmm, it seems like this is still not fixed...
I tried to do #1904 with OpenDevin, and it still doesn't have the appropriate username and email.
@neubig weird... Did the agent actually sets the git config by itself though?
Yes, because the git config is not set, the agent does it by itself. But this results in unpredictable behavior, where the name is different every time.
@neubig I actually wonder what's the sandbox version you are using? I just tried with ghcr.io/opendevin/sandbox:main and it seems to work well for me: https://github.com/OpenDevin/OpenDevin/pull/1928
@neubig Any chance you can try this with main and report back?
Recently I haven't noticed any issues with this, so I think it might be fixed?