[WIP] Add integration and support for Hermes agent - #530
Merged
Nicola Franco (franconicola) merged 2 commits intoJul 26, 2026
Conversation
6 tasks
Copilot stopped work on behalf of
Nicola Franco (franconicola) due to an error
July 26, 2026 19:50
| try: | ||
| import litellm | ||
|
|
||
| _litellm_module = litellm |
| None, lambda: self.completion(*args, **kwargs) | ||
| ) | ||
|
|
||
| _HERMES_CUSTOM_LLM_CLASS = _HermesCustomLLM |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Agent-Logs-Url: https://github.com/AISecurityLab/hackagent/sessions/ab8dee77-7964-41f6-a9cb-4dc474b0d3d0 Co-authored-by: franconicola <51865029+franconicola@users.noreply.github.com>
Add the hermes.mdx integration guide and its index.mdx tab, wire the generated hackagent.router.providers.hermes / hack_hermes API reference pages into sidebars.ts, and mention HERMES alongside the other CLI-driven adapters in the architecture overview.
Nicola Franco (franconicola)
force-pushed
the
claude/add-hermes-agent-support
branch
from
July 26, 2026 20:10
9b2b04a to
ab964bf
Compare
Nicola Franco (franconicola)
temporarily deployed
to
claude/add-hermes-agent-support - Docs PR #530
July 26, 2026 20:10 — with
Render
Destroyed
Nicola Franco (franconicola)
marked this pull request as ready for review
July 26, 2026 20:23
Copilot started reviewing on behalf of
Nicola Franco (franconicola)
July 26, 2026 20:23
View session
There was a problem hiding this comment.
Pull request overview
Adds a first-class Hermes Agent target to HackAgent’s router by introducing a new CLI-driven provider (patterned after the existing Claude Code adapter), plus unit tests, examples, and documentation updates to expose and explain the new agent type.
Changes:
- Introduce
AgentTypeEnum.HERMES(with aliases) and route it viaAGENT_TYPE_TO_ADAPTER_MAP. - Add
hackagent.router.providers.hermesimplementing a per-instance LiteLLMCustomLLMthat shells out tohermes -zwith isolation defaults. - Add unit tests and end-user docs/examples for configuring and running Hermes as a local target.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/router/test_hermes_agent.py | Adds unit tests for Hermes provider argv construction, stdin prompting, error handling, and router integration. |
| hackagent/router/types.py | Introduces HERMES agent type and adds shorthand aliases. |
| hackagent/router/router.py | Registers HermesAgent in AGENT_TYPE_TO_ADAPTER_MAP. |
| hackagent/router/providers/hermes.py | Implements Hermes CLI-backed provider and adapter via LiteLLM CustomLLM. |
| hackagent/examples/hermes/README.md | Adds a runnable example README and explains isolation defaults and config mapping. |
| hackagent/examples/hermes/hack_hermes.py | Adds an example script demonstrating FlipAttack against local Hermes. |
| hackagent/cli/utils.py | Adds Hermes mappings in CLI agent-type normalization helper. |
| docs/sidebars.ts | Adds Hermes pages to the Docusaurus sidebar and API reference listing. |
| docs/docs/hackagent/router/types.md | Updates router types documentation to include Hermes. |
| docs/docs/hackagent/router/providers/hermes.md | Adds API documentation page for the Hermes provider module. |
| docs/docs/hackagent/examples/hermes/hack_hermes.md | Adds docs page for the Hermes example script. |
| docs/docs/architecture/system-overview.mdx | Updates architecture diagram/text to include Hermes as a router target. |
| docs/docs/agents/index.mdx | Adds Hermes section to the Agents overview with quickstart examples. |
| docs/docs/agents/hermes.mdx | Adds dedicated Hermes agent documentation, including isolation and troubleshooting. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+185
to
+186
| argv.extend(self.extra_args) | ||
| return argv |
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.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.