hermes - 💡(How to fix) Fix feat: support elevated execution for admin operations on Windows [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#29041Fetched 2026-05-20 04:00:26
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×5
RAW_BUFFERClick to expand / collapse

Problem

On Windows, when Hermes Agent is launched with administrator privileges, child processes (terminal/execute_code) still run under a normal user token. Operations requiring elevation (UAC) cannot be performed autonomously — the user must manually copy commands into an elevated cmd window.

This significantly degrades UX: users who have authorized Hermes for admin operations still end up manually executing commands.

Proposed Solution

Add an elevated: bool parameter to execute_code and terminal tools. When elevated=true, use ShellExecuteEx with the runas flag to trigger the standard UAC prompt. After user confirms, the command runs with admin privileges.

Alternatives Considered

  • CreateProcessWithLogonW — requires password, not practical
  • SCM service API — too complex for this use case
  • runas /user:admin subprocess — prompts for password interactively

Additional Context

Windows child processes do not inherit elevated tokens from parent. This is fundamental Windows security design. Hermes needs to intentionally re-elevate when needed via ShellExecuteEx + runas.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix feat: support elevated execution for admin operations on Windows [1 participants]