Skip to content

fix: consistent HERMES_HOME and .env path resolution across all entry points - #51

Merged
teknium1 merged 4 commits into
NousResearch:mainfrom
deankerr:fix/cli-env-path-resolution
Feb 26, 2026
Merged

fix: consistent HERMES_HOME and .env path resolution across all entry points#51
teknium1 merged 4 commits into
NousResearch:mainfrom
deankerr:fix/cli-env-path-resolution

Conversation

@deankerr

Copy link
Copy Markdown
Contributor

Summary

  • cli.py: Load ~/.hermes/.env first (respecting HERMES_HOME), project .env as fallback. Removed redundant second load_dotenv call inside load_cli_config(). Added MSWEA_GLOBAL_CONFIG_DIR setup.
  • gateway/run.py: Replace all hardcoded Path.home() / ".hermes" with _hermes_home (.env, config.yaml, logs, prefill messages, personality/reasoning config).
  • cron/scheduler.py: Replace hardcoded ~/.hermes paths with _hermes_home for .env reload, config.yaml, and lock directory.
  • rl_cli.py: Respect HERMES_HOME, add UTF-8 → latin-1 encoding fallback on load_dotenv.
  • hermes_cli/doctor.py: Use existing HERMES_HOME constant instead of hardcoded Path.home() in directory check.

Test plan

  • All modified files pass py_compile syntax check
  • Path resolution logic verified: default ~/.hermes, custom HERMES_HOME override, derived paths
  • Manual test: run hermes status / hermes doctor with default config
  • Manual test: run with HERMES_HOME=/tmp/test-hermes to verify override

🤖 Generated with Claude Code

deankerr and others added 4 commits February 26, 2026 18:37
…py pattern

Load ~/.hermes/.env first with project root as dev fallback, and remove
redundant second load_dotenv call inside load_cli_config(). Also sets
MSWEA_GLOBAL_CONFIG_DIR so mini-swe-agent shares the same config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Both entry points hardcoded Path.home() / ".hermes" for .env, config.yaml,
logs, and lock files. Now uses _hermes_home which reads HERMES_HOME env var
with ~/.hermes as default, matching cli.py and run_agent.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Consistent with other entry points: use _hermes_home from HERMES_HOME
env var, and add UTF-8 → latin-1 encoding fallback on load_dotenv.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Line 184 hardcoded Path.home() / ".hermes" instead of using the
existing HERMES_HOME variable which already respects the env var.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
craig2812
craig2812 approved these changes Apr 18, 2026
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…olution

fix: consistent HERMES_HOME and .env path resolution across all entry points
Benriez pushed a commit to Benriez/hermes-agent that referenced this pull request Jun 4, 2026
Records issue NousResearch#51 workflow lessons in reusable Kanban skills and Agent Garden adapter policy.

Encodes:
- parent orchestration cards are dependencies and must be completed after decomposition
- review work must transition to review status, not ready
- minimax-implementer must use the formal review path
- sdlc-review availability gap is a known failure mode
- direct SQLite writes are rescue-only and forbidden for normal workflow

Adds issue NousResearch#51 learning examples with run 86/87/88/89 outcomes and REVIEW_PASS evidence.
dizhaky referenced this pull request in dizhaky/hermes-agent Jun 23, 2026
…AN-1385) (#26)

baileys 7.0.0-rc.9->rc13 (clears #43 critical) + protobufjs 7.6.4 (#59,#58) in whatsapp-bridge; esbuild+tsx (#46,#61) in ui-tui; @babel/core (#84) in web; joi+http-proxy-middleware (#51,#89) in website. js-yaml #86 accepted (no in-range fix via gray-matter). Bridge startup verified. #93/#94 (code fixes) separate.

Co-Authored-By: Claude <noreply@anthropic.com>
eriksilver added a commit to eriksilver/hermes-agent that referenced this pull request Jun 29, 2026
Original scraper-suite PR NousResearch#9 (added both jeffco entries 2026-06-09) was
parked the same week and never merged. Resurrection PR NousResearch#51 (2026-06-29)
ships sheriff-only — tax-sale was dropped per Erik (low signal density:
345 leads/yr of mostly-rural 3+yr tax-delinquent parcels, mostly LLC
owners, not worth the SMS reach-out).

Drops the jefferson_tax_sale entry from the watch list + remediation
hints; keeps jefferson_foreclosure (still expected daily, 36h tolerance).
Atlas count back to 7. Also tightens the jefferson_foreclosure hint to
note the lumpy-cadence reality (empty for weeks between 5-20 sale waves
— not a bug).
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…olution

fix: consistent HERMES_HOME and .env path resolution across all entry points
Meraniya pushed a commit to Meraniya/hermes-agent that referenced this pull request Aug 6, 2026
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.

3 participants