calm-artist-7206
07/24/2025, 8:03 PMAllow '.openhands/microagents/*.md' in any directory in the workspace. The microagents there should only apply to that folder and its subdirectories. So load the respective microagent only when openhands reads/writes to files in that directory.Source is our understanding of
.cursor/rules in this issue, and it concerns migrating other AI systems instructions files:
https://github.com/All-Hands-AI/OpenHands/issues/9878
I can see several options
1. implement it in code, as described
2. write a microagent to tell the agent to read those files itself, before working on a directory
3. write a microagent to tell the agent to read the README.md file in any directory it goes into (and maybe a script to migrate those to README.md)
4. do nothing about this, too weird.
Re: 1. Pretty sure Cursor and others are using RAG, they don’t load all context all the time.wooden-umbrella-84098
07/28/2025, 4:36 PMwooden-umbrella-84098
07/28/2025, 4:36 PM*.openhands.md files in every directorywooden-umbrella-84098
07/28/2025, 4:36 PMwooden-umbrella-84098
07/28/2025, 4:36 PMwooden-umbrella-84098
07/28/2025, 4:37 PMdir.openhands.mdwooden-umbrella-84098
07/28/2025, 4:38 PM.openhands directory into each directory toocalm-artist-7206
07/28/2025, 4:46 PM.openhands/microagents/stuff.md is a bit too verbose though... Maybe because I need to tell the agent sometimes about these, and might dumbly prefer to type rather than see it confused 🤔 😅
What if we start reading microagents from
• particular name patterns on top-level workspace (repo.md, AGENT.md, .cursorrules)
• .openhands directory at any level, without necessarily limited to sub-directory microagents/ (rule becomes all .md files in)wooden-umbrella-84098
07/28/2025, 4:48 PMwooden-umbrella-84098
07/28/2025, 4:50 PMwooden-umbrella-84098
07/28/2025, 4:50 PMcalm-artist-7206
07/28/2025, 4:51 PMcalm-artist-7206
07/28/2025, 4:51 PMcalm-artist-7206
07/28/2025, 4:52 PMwooden-umbrella-84098
07/28/2025, 4:56 PMwooden-umbrella-84098
07/28/2025, 4:56 PMwooden-umbrella-84098
07/28/2025, 4:56 PMcalm-artist-7206
07/28/2025, 5:05 PMcolossal-piano-39630
07/30/2025, 2:39 PMcalm-artist-7206
07/30/2025, 2:41 PMcolossal-piano-39630
07/30/2025, 2:44 PMnumerous-refrigerator-93306
08/07/2025, 4:56 AMnumerous-refrigerator-93306
08/07/2025, 4:56 AMnumerous-refrigerator-93306
08/07/2025, 4:58 AM