Hermes is a self-improving AI agent that creates skills from experience and
improves them during use. It runs as a CLI on a developer's machine and
supports a pluggable toolset system, multiple LLM backends (OpenAI, Anthropic,
Mistral, Bedrock, ...), web search and crawling integrations, voice / TTS /
messaging connectors, and an agent-control protocol (ACP) adapter.
This port installs the core CLI plus the optional [web] dashboard
backend (FastAPI + Uvicorn). The dashboard's static frontend assets
(hermes_cli/web_dist/) are produced by an upstream npm pipeline that is
not run in the ports build environment. Other upstream extras such as
Modal, Daytona, Vercel, faster-whisper, Telegram, Discord, Slack and
the [rl] training loop are not packaged.
Because Hermes ships top-level Python packages with generic names
(tools, agent, gateway, plugins, ...), the source tree is installed
under ${PREFIX}/lib/hermes-agent/ rather than site-packages, matching
upstream's own Docker / Nix / Homebrew packaging. The wrappers in
${PREFIX}/bin prepend that directory to sys.path before invoking each
entry point.
The skills/ and optional-skills/ template directories ship under
${DATADIR}/. Hermes reads its working set from ${HOME}/.hermes/.
===> The following configuration options are available for hermes-agent-0.23.2:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
misc/hermes-agent: run wrappers from a private virtualenv
hermes-agent's runtime self-protection guard protects the whole
sys.prefix of the interpreter it runs from, and the base
interpreter's prefix is ${PREFIX} itself, so the agent could not
write anywhere under ${PREFIX} (its ports tree, its own install
tree, ...).
Create a private virtualenv under HERMES_LIBDIR at build time and
point the wrapper shebangs at it, so the guard narrows to the venv
and the base interpreter's location.
Also:
- USES+= gettext-runtime (the copied interpreter links libintl)
- drop NO_ARCH (the package now ships architecture-specific binaries)
- strip the venv's activation scripts and the pyvenv.cfg 'command'
line (both hardcode the build-time location, which stage-qa
rejects in staged files)
PR: 300998
Approved by: olivier@ (maintainer)