Hi, does anyone have recommendations on the best a...
# questions
c
Hi, does anyone have recommendations on the best approach to make a microagent follow a specific workflow in OpenHands?
Context: I’m building an AI agent setup for a large organization’s software development teams, and there are two main requirements: 1. Dev work should be split between specialized agents (e.g. Planner, Executor, Validator) that follow the company’s SDLC. For each agent’s execution, there should be an audit trail (e.g. logs or log file entries) clearly showing which agent performed which task or step. Would defining .openhands/microagents/planner.md, executor.md, etc. be the right way to achieve this? 2. OpenHands work must follow a predefined flow (e.g. Planner → Executor → Validator → back to Planner). Where/how should this flow be defined so the agent sticks to the process? We should be able to make sure that each task will go through this flow in this order (with some logs or audit trail) For context, I’ve done something similar in Firebase.studio and VSCode by loading a generic airules-files (for the agent’s flow definitions) at session start. Could the same work here with .openhands/microagents/org-microagent.md? I know some don’t recommend restricting an agent like this, but it’s needed to integrate into existing enterprise workflows and prove value in real software teams. Thanks in advance for any pointers! ps. I wrote a Dev Community article series about this setup (Firebase.studio / VSCode) if you’d like to check my idea in more detail level: https://dev.to/teppana88/master-autonomous-ai-agent-control-stack-for-production-code-27je
👀 1
b
This is a good question that I am seeking an answer to. When I asked Claude Opus 4.1 to research adding my own small workflows, I couldn’t really figure out how to set roles/identities/prompt, I was given a few different options, and it wasn’t clear to me after reading the docs what to try. Attached is the Opus 4.1 research, which shows that someone new like me, who is unsure what to ask, isn’t able to get a great answer just yet. That research output suggests that there are agents that delegate, so maybe I should customise the planning agent/task to be the flow…? It seems microagents are tied to a checkout/login in my host as the files go into the checkout folder else user `~/openhands`…? Yet I was trying to run everything locally in a single checkout as I was expecting a more explicit switch/cli discriminator to change agent profiles..? How to do handoffs is the delegating agent something to look at…? The microagent md concept don’t seem to support any templating or custom instructions which is really unexpected… Maybe I need to try researching Devin to understand what OH assumes I already know that I don’t know...? 😬 Yesterday, I raised two issues about finding the docs in this area confusing: https://github.com/All-Hands-AI/OpenHands/issues/10601 https://github.com/All-Hands-AI/OpenHands/issues/10604 Happy to team up on convos about how to provide a good primer to these topics about how to follow The OpenHands Way 🥷✨🚀
👀 1
@gentle-apple-32922 as she kindly pick up the the doc tickets
w
Hey folks! Thanks for the questions We don't support heavily structured workflows like this just yet. Microagents will push the agent towards certain behaviors, but they don't provide strong guardrails. Generally we have found that these types of "multi-agent" workflows, where different agents have different personalities/responsibilities, are not very helpful. They tend to make execution worse, while increasing cost and slowing the whole process down It's something we're interested in supporting long-term though, for the reasons Teemu mentions--it can help shoehorn agents into existing development workflows I have a proposal here for an SDK that would enable python-coded workflows like this (see the sections on delegation and message passing): https://github.com/All-Hands-AI/OpenHands/issues/10577
👍 2
Would love any feedback!