The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(cli): register tools.tool_search.defer in DEFAULT_CONFIG
KeyArgod6beebcc57a3
diff --git a/hermes_cli/config_defaults.py b/hermes_cli/config_defaults.pyindex 586be09d1f4..7ccc2d07395 100644--- a/hermes_cli/config_defaults.py+++ b/hermes_cli/config_defaults.py@@ -1952,6 +1952,10 @@ DEFAULT_CONFIG = {# Absolute cap on the embedded listing in tokens (chars/4), regardless of context size.# Range 200..60000."listing_max_tokens": 4000,+ # Names of deferrable (MCP / non-core plugin) tools to replace with the tool_search+ # bridge. None = curated default set; an explicit list replaces it wholesale+ # ([] = defer no core tools). Read by tools/tool_search.py ToolSearchConfig.from_raw.+ "defer": None,},# Remote connector discovery/lifecycle through the Nous tool gateway.# The flag is the user's off switch; availability additionally requiresdiff --git a/tests/hermes_cli/test_set_config_value.py b/tests/hermes_cli/test_set_config_value.pyindex 84a7e8f244c..bbdd868c966 100644--- a/tests/hermes_cli/test_set_config_value.py+++ b/tests/hermes_cli/test_set_config_value.py@@ -119,6 +119,15 @@ class TestConfigYamlRouting:assert "not a recognized config key" not in capsys.readouterr().outassert "nudge_interval: 0" in _read_config(_isolated_hermes_home)+ def test_tool_search_defer_is_recognized(self, _isolated_hermes_home, capsys):+ """tools.tool_search.defer is read by ToolSearchConfig.from_raw, so it must be a+ registered config key (not flagged as unrecognized) and coerce to a real list."""+ set_config_value("tools.tool_search.defer", '["todo_list", "skill_manage"]')++ assert "not a recognized config key" not in capsys.readouterr().out+ config = yaml.safe_load(_read_config(_isolated_hermes_home))+ assert config["tools"]["tool_search"]["defer"] == ["todo_list", "skill_manage"]+def test_terminal_docker_cwd_mount_flag_goes_to_config_and_env(self, _isolated_hermes_home):set_config_value("terminal.docker_mount_cwd_to_workspace", "true")config = _read_config(_isolated_hermes_home)