OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Feature] User level microagents

Open bogzbonny opened this issue 11 months ago • 8 comments

In a similar way to microagents which are loaded on a repo level. I'd love for openhands to look for microagents files globally within my machine. These microagents would be loaded for any repo, but its different that the public microagents because they don't have to be merged into this repo! These could be stored under a new folder ~/.openhands-state/global-microagents

Should be pretty easy to implement I reckon openhands could do it!

If you find this feature request or enhancement useful, make sure to add a 👍 to the issue

bogzbonny avatar Jan 21 '25 23:01 bogzbonny

So there are repo microagents (to make sure code logic work), and public microagents (to make sure tools would work), is the idea of the user-level microagent to make sure the OS level would work? https://docs.all-hands.dev/modules/usage/prompting/microagents-overview#microagent-types

  • Presentation/UX Layer => Global Agent?
  • Application/Service Layer => Public Agent
  • Business/Domain Layer => Repository Agent
  • Data/Persistence Layer => TBD?

BradKML avatar Jan 23 '25 02:01 BradKML

The thinking was more to do with user authentication/credentials, a big one was for instance was to override the username that code is pushed with to github, but there are a plethora of other credential systems which could require other information besides a github token which could be specified on a system level microagent.

bogzbonny avatar Jan 23 '25 04:01 bogzbonny

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 23 '25 02:02 github-actions[bot]

So more like access control?

BradKML avatar Feb 23 '25 03:02 BradKML

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Mar 26 '25 02:03 github-actions[bot]

The thinking was more to do with user authentication/credentials, a big one was for instance was to override the username that code is pushed with to github, but there are a plethora of other credential systems which could require other information besides a github token which could be specified on a system level microagent.

One other way would be to use the extended config part of the configuration, but I don't know if I would recommend it. Another way will be to use the upcoming custom secrets feature, I think.

The linked PR should solve this issue.

enyst avatar Mar 26 '25 04:03 enyst

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar May 15 '25 02:05 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jun 15 '25 02:06 github-actions[bot]

@enyst I believe this is done now correct. You can put microagents in ~/.openhands/microagents?

mamoodi avatar Jul 01 '25 13:07 mamoodi

Yes, thank you for the reminder! This was fixed.

enyst avatar Jul 01 '25 16:07 enyst