Three small but real cleanups against hermes-agent v0.12.0
(NousResearch/hermes-agent, 2026-04-30):
1. Rename HERMES_DEFAULT_MODEL -> HERMES_INFERENCE_MODEL (upstream's
actual env name). Reads BOTH for one release cycle so workspace-server
(which still writes the legacy name) doesn't break — drop the legacy
fallback after workspace-server is updated in a follow-up PR.
2. Drop HERMES_API_KEY from start.sh's .env heredoc. That var only feeds
hermes-agent's TUI gateway bridge, NOT any LLM provider. Provider
credentials go through OPENROUTER_API_KEY / OPENAI_API_KEY / etc.
3. Add 12 missing provider prefixes to derive-provider.sh so model slugs
like xai/grok-4, bedrock/anthropic.claude-sonnet-4, lmstudio/local,
copilot/gpt-4o, etc., route to the correct provider instead of
falling through to "auto".
New tests/test_derive_provider.sh — 26 sh-style assertions covering the
legacy fallback, the precedence rule, all 12 new providers, and a few
regression cases for adjacent prefixes (minimax vs minimax-oauth, qwen
vs qwen-oauth, alibaba vs alibaba-coding-plan).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>