Skip to content

Exceptional agent failure: 9-hour tool loop without verified shortcut fix #46709

Open

Description

@projectpathfinder2026

Exceptional Hermes Agent Failure Report

Date: 2026-06-15
Reporter/user: Project Pathfinder operator, @GenuineRealMoe
Environment: Hermes Desktop GUI on Windows 10, Hermes Agent v0.16.0, provider OpenAI Codex, model gpt-5.5

Summary

The agent spent roughly 9 hours on a simple operational task: make the Microsoft Edge Favorites Bar shortcut for the local LP Manager launch everything required for the app to run. The user repeatedly expressed frustration and ultimately stopped the task. The requested user-visible outcome was not completed or verified.

This should be treated as an exceptional agent failure involving non-stop completion behavior, tool-loop discipline, and inability to collapse a simple Windows shortcut/startup problem into a deterministic minimal fix.

User request

"Find the LP Manager and make it so when I click on the shortcut it actually launches everything required for the app to run, this happens everyday and still has not been fixed. The shortcut is on the internet edge bookmarks bar."

Expected proof: from a cold state, click the Edge Favorites Bar shortcut, LP Manager starts, and http://127.0.0.1:3000/ returns the app.

What went wrong

  1. The agent correctly identified that the Edge bookmark pointed to http://127.0.0.1:3000/, which cannot start the local Node server by itself.
  2. Instead of immediately implementing one minimal deterministic launch path and verifying the exact bookmark flow, the agent bounced between multiple approaches:
    • rewriting existing .cmd launchers,
    • changing the Edge bookmark to a custom lpmanager:// protocol,
    • registering the custom protocol,
    • changing the bookmark back,
    • creating a local placeholder daemon for port 3000,
    • attempting scheduled task registration,
    • falling back to Startup-folder launcher registration,
    • patching Windows command scripts.
  3. The agent repeatedly performed partial verification that was not the actual user flow.
  4. The final required verification, cold Edge bookmark click -> local app starts -> app root HTTP 200, was not completed before the user stopped the task.
  5. The agent burned an unacceptable amount of inference/time on a narrowly scoped task and kept going without reducing the implementation to a simpler deterministic path.

Concrete state at stop

Partial changes had been made under:

C:/Users/proje/AppData/Local/hermes/project-pathfinder/builds/tightnecklp-full-build-exact-20260602-230109-PDT/extracted/tightnecklp-full-build-20260602-221434-PDT

Notable partial changes:

  • open-lp-manager-app.cmd was rewritten earlier to check/start/open the local app.
  • scripts/lp-manager-edge-bookmark-launcher.py was created as a placeholder launcher daemon.
  • start-lp-manager-bookmark-launcher.cmd was created.
  • C:/Users/proje/AppData/Local/hermes/lp-manager-bookmark-launcher.cmd was created.
  • Startup-folder launcher was created at:
    C:/Users/proje/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/Project Pathfinder LP Manager Bookmark Launcher.cmd
  • Edge bookmark was ultimately restored to http://127.0.0.1:3000/ after a failed custom-protocol direction.
  • start-lp-manager-app.cmd was patched immediately before the user stopped the task to use:
    C:/Users/proje/AppData/Local/hermes/node/node.exe

The user-visible fix was not proven.

Debug bundle uploaded by hermes debug share

Report: https://dpaste.com/5AYXQYM3U
agent.log: https://dpaste.com/BT8Z5PDKK
gateway.log: https://dpaste.com/HSJ7HG956
desktop.log: https://dpaste.com/8JAF59ZLB

These pastes auto-delete after 6 hours from upload.

Requested support review

Please review this as an exceptional agent behavior failure, not merely a local Windows shortcut bug. The concerning part is the agent behavior:

  • failure to preserve the exact user objective as the only success criterion,
  • excessive tool-loop thrashing,
  • overengineering under a simple operational task,
  • inability to stop and report a direct blocker before large cost/time burn,
  • repeated claims of progress while the actual shortcut flow remained unverified.

Suggested product areas to inspect:

  • non-stop completion instruction interactions with cost/time control,
  • guardrails for long-running tool loops on simple tasks,
  • support for user-visible timeout/escalation when an agent exceeds a task complexity/time budget,
  • better automatic incident reporting from Hermes Desktop for runaway sessions,
  • stronger distinction between partial local changes and verified completion.

Uploaded support artifacts

Note: dpaste links from hermes debug share auto-delete; the issue body preserves the incident summary.

Activity

  1. added
    type/bugSomething isn't working
    comp/agentCore agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint
    needs-reproBug needs reproduction steps
    P2Medium — degraded but workaround exists
    on Jun 15, 2026
  2. Devaretanmay commented on Jul 1, 2026

    @Devaretanmay

    The 9-hour loop is the exact nightmare scenario. The reason the agent can't self-correct is that its context window is now 90% filled with its own repeated failures, making it impossible for the LLM to 'realize' it's looping.
    We need to intercept this before it hits the LLM. The only reliable way to do this is to deterministically hash the trajectory state (the exact tool name + arguments) locally. If the hash matches a recent call, block it instantly in nanoseconds, forcing the agent to pivot without burning a single token.
    I actually built a zero-dependency Rust engine specifically to solve this exact physics problem. It's called Microloop (github.com/Devaretanmay/microloop). It intercepts tool calls and hashes the state in ~480ns. If it detects a redundant trajectory, it blocks it locally before the API call ever leaves the machine. I'd love to help integrate a basic version of this logic into Hermes to prevent these 9-hour burns."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/agentCore agent runtime: loop, agent_init, prompt builder, context-compression, responses endpointneeds-reproBug needs reproduction stepstype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions