OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Micro-agent: Support task rejection

Open li-boxuan opened this issue 1 year ago β€’ 2 comments

Micro-agents, as a whole, don’t work well end-to-end yet. For example, I can barely make ManagerAgent, the one that does the task distribution, to complete the simple task used by the integration test:

poetry run python ./opendevin/main.py -i 10 -t "Write a shell script 'hello.sh' that prints 'hello'." -c "ManagerAgent"

To achieve that I think we need to do more prompt engineering, and potentially introduce more actions. I propose that we add an escalation action, because I find micro-agents often get stuck when they are assigned a task that they are not capable of.

For example, when the CoderAgent is assigned a task that is not concrete enough, it should escalate and the ManagerAgent should create a task for StudyRepoForTaskAgent first to study what files to modify, what the repo structure is, etc.

li-boxuan avatar May 01 '24 04:05 li-boxuan

This is a great idea! I'm changing it to rejection because I think letting a smaller agent call a bigger one would lead to weird loops πŸ˜„

rbren avatar May 02 '24 02:05 rbren

Yeah when I said "escalation", I was thinking of something more like "rejection" ;)

li-boxuan avatar May 02 '24 03:05 li-boxuan