hermes-agent/hermes_cli
Dean Kerr 5a569eb1b6 fix: resolve .env and config paths from HERMES_HOME, not PROJECT_ROOT
The `hermes` CLI entry point (hermes_cli/main.py) and the agent runner
(run_agent.py) only loaded .env from the project installation directory.
After the standard installer, code lives at ~/.hermes/hermes-agent/ but
config lives at ~/.hermes/ — so the .env was never found.

Aligns these entry points with the pattern already used by gateway/run.py
and rl_cli.py: load ~/.hermes/.env first, fall back to project root .env
for dev-mode compatibility.

Also fixes:
- status.py checking .env existence and API keys at PROJECT_ROOT
- doctor.py KeyError on tool availability (missing_vars vs env_vars)
- doctor.py checking logs/ and Skills Hub at PROJECT_ROOT instead of HERMES_HOME
- doctor.py redundant logs/ check (already covered by subdirectory loop)
- mini-swe-agent loading config from platformdirs default instead of ~/.hermes/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 16:49:14 +11:00
..
__init__.py Hermes Agent UX Improvements 2026-02-22 02:16:11 -08:00
auth.py refactor: enhance error handling in user prompts 2026-02-25 14:10:54 -08:00
banner.py Hermes Agent UX Improvements 2026-02-22 02:16:11 -08:00
callbacks.py refactor: reorganize agent and CLI structure for improved clarity 2026-02-21 23:17:18 -08:00
colors.py Cleanup time! 2026-02-20 23:23:32 -08:00
commands.py refactor: reorganize agent and CLI structure for improved clarity 2026-02-21 23:17:18 -08:00
config.py feat: add ephemeral prefill messages and system prompt loading 2026-02-23 23:55:42 -08:00
cron.py refactor: streamline cron job handling and update CLI commands 2026-02-21 16:21:19 -08:00
doctor.py fix: resolve .env and config paths from HERMES_HOME, not PROJECT_ROOT 2026-02-26 16:49:14 +11:00
gateway.py refactor: streamline cron job handling and update CLI commands 2026-02-21 16:21:19 -08:00
main.py fix: resolve .env and config paths from HERMES_HOME, not PROJECT_ROOT 2026-02-26 16:49:14 +11:00
models.py Update model version in hermes_cli to use openai/gpt-5.3-codex 2026-02-25 13:26:14 -08:00
pairing.py Cleanup time! 2026-02-20 23:23:32 -08:00
setup.py fix: strip emoji characters from menu labels in TerminalMenu 2026-02-25 21:13:35 -08:00
skills_hub.py Cleanup time! 2026-02-20 23:23:32 -08:00
status.py fix: resolve .env and config paths from HERMES_HOME, not PROJECT_ROOT 2026-02-26 16:49:14 +11:00
tools_config.py refactor: enhance error handling in user prompts 2026-02-25 14:10:54 -08:00
uninstall.py Cleanup time! 2026-02-20 23:23:32 -08:00