Skip to content

feat(agents): install cora into Hermes Agent - #757

Merged
ajianaz merged 3 commits into
developfrom
feat/agent-hermes
Nov 16, 2026
Merged

ajianaz merged 3 commits into
developfrom
feat/agent-hermes

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

What

  • cora install now sets up Hermes Agent: one marked block in ~/.hermes/config.yaml with a pre_llm_call hook (cora hook context --agent hermes, appended to the current user message) and the MCP server, plus the cora-code skill.
  • The config is edited as text so your comments stay. A top-level hooks: or mcp_servers: you already have is never duplicated (cora prints the snippet instead), an unreadable config is reported and left untouched, and --remove restores the file exactly. The first run still asks you to approve the hook.

Why

Part of #753: the strongest "before the model works" mechanism Hermes offers is a pre_llm_call shell hook, which is deterministic and keeps the prompt cache intact. Refs #753.

Testing

  • cargo fmt --all -- --check, cargo clippy --all-targets --features tree-sitter -- -D warnings, cargo test --features tree-sitter pass locally.
  • Unit tests: block added once and removed byte for byte, an existing top-level key is never duplicated, a missing file is created and removed, commented-out keys do not count, an unreadable config is never overwritten.
  • Run for real with Hermes 0.19.0 in an isolated home: the request sent to the provider carried the [cora] block appended to the user message, and hermes mcp test cora connected and listed 22 tools (it needs Hermes' mcp Python extra).

Generated by Claude Code

A marked block in config.yaml adds the pre_llm_call hook and the MCP server
without re-serializing the user's file; the cora-code skill is installed.
Verified against Hermes 0.19.0.

Refs #753.
# Conflicts:
#	CHANGELOG.md
#	src/commands/agents/mod.rs
@ajianaz
ajianaz merged commit f104448 into develop Nov 16, 2026
13 checks passed
@ajianaz
ajianaz deleted the feat/agent-hermes branch November 17, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant