fix(agent): load gateway AGENTS.md from HERMES_HOME fallback#65800
Open
henrynguyeninfo1 wants to merge 1 commit into
Open
fix(agent): load gateway AGENTS.md from HERMES_HOME fallback#65800henrynguyeninfo1 wants to merge 1 commit into
henrynguyeninfo1 wants to merge 1 commit into
Conversation
tonydwb
reviewed
Jul 16, 2026
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Approved (read-only token — formal approval requires write access)
Fixes the gateway to load AGENTS.md from HERMES_HOME fallback path. When the running source checkout's AGENTS.md isn't available (e.g., after a git operation), the gateway now falls back to HERMES_HOME.
- Good fallback handling for a real edge case
- Clean fix with clear documentation
- No security concerns
Reviewed by Hermes Agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENTS.md/agents.mdfromHERMES_HOMEwhen the resolved gateway cwd has no project contextFixes #11763
Tests
scripts/run_tests.sh tests/agent/test_prompt_builder.py tests/agent/test_system_prompt.py -qpython3 scripts/check-windows-footguns.py agent/prompt_builder.py agent/system_prompt.py tests/agent/test_prompt_builder.py tests/agent/test_system_prompt.py.venv/bin/ruff check agent/prompt_builder.py agent/system_prompt.py tests/agent/test_prompt_builder.py tests/agent/test_system_prompt.pyPlatform tested