Skip to content

[codex] Standardize Hermes dotenv loading to shared env helper#13660

Closed
Bongulielmi wants to merge 1 commit into
NousResearch:mainfrom
Bongulielmi:codex/standardize-hermes-env-loader
Closed

[codex] Standardize Hermes dotenv loading to shared env helper#13660
Bongulielmi wants to merge 1 commit into
NousResearch:mainfrom
Bongulielmi:codex/standardize-hermes-env-loader

Conversation

@Bongulielmi
Copy link
Copy Markdown
Contributor

Summary

This change standardizes Hermes dotenv loading by replacing three remaining ad hoc dotenv.load_dotenv call sites with the shared hermes_cli.env_loader.load_hermes_dotenv helper.

The affected call sites are:

  • hermes_cli/doctor.py
  • hermes_cli/dump.py
  • scripts/discord-voice-doctor.py

This keeps dotenv precedence logic in one place and removes duplicated fallback handling from those entry points.

Why

Before this patch, these files each implemented their own local .env loading behavior while the repo already had a shared loader with the intended Hermes-home and project .env semantics. That duplication made the behavior harder to keep aligned.

Validation

  • python3 -m py_compile /Users/blucid/.hermes/hermes-agent/hermes_cli/doctor.py /Users/blucid/.hermes/hermes-agent/hermes_cli/dump.py /Users/blucid/.hermes/hermes-agent/scripts/discord-voice-doctor.py
  • git diff -- hermes_cli/doctor.py hermes_cli/dump.py scripts/discord-voice-doctor.py
  • rg -n "load_dotenv|load_hermes_dotenv" hermes_cli/doctor.py hermes_cli/dump.py scripts/discord-voice-doctor.py

Related Linear issue: RGGB-22

@alt-glitch alt-glitch added type/refactor Code restructuring, no behavior change comp/cli CLI entry point, hermes_cli/, setup wizard area/config Config system, migrations, profiles labels Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/cli CLI entry point, hermes_cli/, setup wizard type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants