The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(cli): unify duplicate reasoning-effort config helpers into hermes_cli.setup
Teknium41b658d2b456
diff --git a/hermes_cli/main.py b/hermes_cli/main.pyindex e640f16346b..cf11a0b8cd7 100644--- a/hermes_cli/main.py+++ b/hermes_cli/main.py@@ -5292,21 +5292,6 @@ def __getattr__(name):raise AttributeError(f"module {__name__!r} has no attribute {name!r}")-def _current_reasoning_effort(config) -> str:- agent_cfg = config.get("agent")- if isinstance(agent_cfg, dict):- return str(agent_cfg.get("reasoning_effort") or "").strip().lower()- return ""---def _set_reasoning_effort(config, effort: str) -> None:- agent_cfg = config.get("agent")- if not isinstance(agent_cfg, dict):- agent_cfg = {}- config["agent"] = agent_cfg- agent_cfg["reasoning_effort"] = effort--def _prompt_reasoning_effort_selection(efforts, current_effort=""):"""Prompt for a reasoning effort. Returns effort, 'none', or None to keep current."""deduped = list(diff --git a/hermes_cli/model_setup_flows.py b/hermes_cli/model_setup_flows.pyindex adda8b6a6a4..c039df656bf 100644--- a/hermes_cli/model_setup_flows.py+++ b/hermes_cli/model_setup_flows.py@@ -1831,7 +1831,8 @@ def _model_flow_named_custom(config, provider_info):def _model_flow_copilot(config, current_model=""):"""GitHub Copilot flow using env vars, gh CLI, or OAuth device code."""- from hermes_cli.main import _current_reasoning_effort, _prompt_reasoning_effort_selection, _set_reasoning_effort+ from hermes_cli.main import _prompt_reasoning_effort_selection+ from hermes_cli.setup import _current_reasoning_effort, _set_reasoning_effortfrom hermes_cli.auth import (PROVIDER_REGISTRY,_prompt_model_selection,