Hi, could someone recommend the best approach to make a microagent follow a specific workflow?
I’m building an AI agent setup for a large organization’s software development, and there are two main requirements:
A) The dev work needs to be split between specialized agents, each with defined tasks that align with the company’s SDLC process.
a. My current idea: create dedicated General microagents with specific rules per role, e.g.:
i. .openhands/microagents/planner.md
ii. .openhands/microagents/executor.md
iii. .openhands/microagents/validator.md
Question: Is this the right approach, or would you recommend something else?
B) The microagent must follow a predefined software development flow.
For example:
1. Start with planner.md
2. Once planning is done, trigger executor.md
3. After coding is complete, trigger validator.md for testing
4. Once testing is completed, trigger planner.md to take the next task
Question: Where/how should this microagent flow be defined so it follows the desired dev process?
For context, I implemented a similar setup in Firebase.studio and local VSCode + agent mode by defining a generic airules.md file loaded at the start of each session. Could the same approach work in OpenHands? For example, by creating .openhands/microagents/org-microagent.md as a generic set of rules for the entire OpenHands agent. Would this be loaded in each session so that OpenHands is guided to follow this process?
I know many people don’t recommend restricting an agent like this. But for now, it’s necessary to fit the AI agent into the company’s existing workflows and to demonstrate that it can be integrated into a larger team’s operations.
Thanks in advance for any pointers!