Skip to content

The agent that grows with you

refactor(browser): callers stop naming agent-browser, Camofox and the built-in browser tools

Tekniume1b65c5f0ba3
diff --git a/acp_adapter/entry.py b/acp_adapter/entry.py
index 6abd855592f..32832f527c4 100644
--- a/acp_adapter/entry.py
+++ b/acp_adapter/entry.py
@@ -98,7 +98,7 @@ def _parse_args(argv: list[str] | None = None) -> argparse.Namespace:
parser.add_argument("--setup", action="store_true",
help="Run interactive Hermes provider/model setup for ACP terminal auth")
parser.add_argument("--setup-browser", action="store_true",
- help="Prepare PM's pinned browser tools and Chromium.")
+ help="Prepare PM's pinned Chromium for browser_exec.")
parser.add_argument("--yes", "-y", action="store_true", dest="assume_yes",
help="Accept setup prompts.")
return parser.parse_args(argv)
@@ -132,7 +132,7 @@ def _run_setup() -> None:
if not sys.stdin.isatty():
return
try:
- reply = input("\nInstall browser tools? Downloads the pinned browser and "
+ reply = input("\nInstall browser tools? Downloads the pinned "
"Chromium through PM. [y/N] ").strip().lower()
except (EOFError, KeyboardInterrupt):
return
@@ -141,11 +141,11 @@ def _run_setup() -> None:
def _run_setup_browser(assume_yes: bool = False) -> int:
- """The setup command is an explicit request for PM's browser closure."""
+ """The setup command is an explicit request for PM's Chromium (browser_exec's local browser)."""
import pm
try:
- pm.ensure("agent-browser", explicit=True)
+ pm.ensure("chromium", explicit=True)
except (pm.InstallError, OSError) as exc:
print(f"Browser setup failed: {exc}", file=sys.stderr)
return 1
diff --git a/agent/learn_prompt.py b/agent/learn_prompt.py
index db50f95aa31..feac4178b5c 100644
--- a/agent/learn_prompt.py
+++ b/agent/learn_prompt.py
@@ -55,7 +55,7 @@ Hermes-tool framing (this is what makes it a skill, not shell docs):
- Frame running scripts as "invoke through the `terminal` tool".
- Reference Hermes tools by name in backticks: `terminal`, `read_file`,
`write_file`, `search_files`, `patch`, `web_extract`, `web_search`,
- `vision_analyze`, `browser_navigate`, `delegate_task`, `image_generate`,
+ `vision_analyze`, `browser_exec`, `delegate_task`, `image_generate`,
`text_to_speech`, `cronjob`, `memory`, `skill_view`, `execute_code`.
- Do NOT name shell utilities the agent already has wrapped: say `read_file`
not cat/head/tail, `search_files` not grep/rg/find/ls, `patch` not sed/awk,
diff --git a/agent/transports/hermes_tools_mcp_server.py b/agent/transports/hermes_tools_mcp_server.py
index 6f6d43fc221..97afdcd9efe 100644
--- a/agent/transports/hermes_tools_mcp_server.py
+++ b/agent/transports/hermes_tools_mcp_server.py
@@ -52,11 +52,10 @@ def _signature_from_schema(schema: dict | None) -> tuple[inspect.Signature, dict
# Each name MUST match a registered Hermes tool ``model_tools.handle_function_call()`` can dispatch.
# NOT exposed: terminal/file/search/process/clarify (codex built-ins + its own approval UI);
-# delegate_task/memory/session_search/todo (need the running AIAgent context).
+# delegate_task/memory/session_search/todo (need the running AIAgent context); browser_exec (runs
+# model-written Python on the Hermes host, outside codex's sandbox and approval UI).
EXPOSED_TOOLS: tuple[str, ...] = (
"web_search", "web_extract",
- "browser_navigate", "browser_click", "browser_type", "browser_press", "browser_snapshot", "browser_scroll",
- "browser_back", "browser_get_images", "browser_console", "browser_vision",
"vision_analyze", "image_generate", "skill_view", "skills_list", "text_to_speech",
# Kanban handoff tools: stateless (read HERMES_KANBAN_TASK, write kanban.db).
# Without them a codex-runtime worker can't report completion and hangs.
@@ -83,7 +82,7 @@ def _build_server() -> Any:
instructions=(
"Hermes Agent's tool surface, exposed for use inside a Codex "
"session. Use these for capabilities Codex's built-in toolset "
- "doesn't cover: web search/extract, browser automation, "
+ "doesn't cover: web search/extract, "
"subagent delegation, vision, image generation, persistent "
"memory, skills, and cross-session search."
),
diff --git a/cron/lifecycle_guard.py b/cron/lifecycle_guard.py
index a6fa733e810..a02f1d2a64a 100644
--- a/cron/lifecycle_guard.py
+++ b/cron/lifecycle_guard.py
@@ -71,7 +71,7 @@ _GATEWAY_LIFECYCLE_PATTERN = re.compile(
# `taskkill /F /IM python.exe`, `pkill -9 python3` or `killall python` carry no hermes/gateway token
# yet terminate it (#113667). Token-aware rather than a line regex: option VALUES are never read as
# targets (`pkill -u <user> chrome`), `-f` cmdline patterns are judged as patterns, and other image
-# names (`taskkill /F /IM agent-browser.exe`) stay available. Numeric-PID kills are out of scope:
+# names (`taskkill /F /IM chrome.exe`) stay available. Numeric-PID kills are out of scope:
# the explicit PID / `proc_*` id IS the ownership-scoped route the rejection points to.
_INTERPRETER_IMAGE_RE = re.compile(r"^pythonw?(?:\d+(?:\.\d+)*)?(?:\.exe)?$")
_HOST_INTERPRETER_NAME = Path(sys.executable).name.lower() if sys.executable else ""
diff --git a/hermes_cli/browser_connect.py b/hermes_cli/browser_connect.py
index 8c5c3664872..1f97f6a07aa 100644
--- a/hermes_cli/browser_connect.py
+++ b/hermes_cli/browser_connect.py
@@ -477,7 +477,7 @@ def _copy_auth_file(src_file: str, dst_file: str, *, deadline_s: float | None =
def _mirror_profile_auth(src: str, dst: str, source_profile: str) -> dict[str, str]:
- """Mirror ``source_profile``'s auth files into the copy's ``Default`` (agent-browser opens it);
+ """Mirror ``source_profile``'s auth files into the copy's ``Default`` (the launched browser opens it);
returns ``{relative name: reason}`` for the session-cookie DBs that could NOT be copied ({} =
the signed-in state is usable). Locked password/autofill DBs are logged and skipped."""
failed: dict[str, str] = {}
diff --git a/hermes_cli/cli_config_load.py b/hermes_cli/cli_config_load.py
index dd6355c6d45..feb79a0f67b 100644
--- a/hermes_cli/cli_config_load.py
+++ b/hermes_cli/cli_config_load.py
@@ -191,10 +191,7 @@ def _cli_config_defaults():
"docker_mount_cwd_to_workspace": False, # opt-in only: sandbox isolation
"docker_shared_container_key": "",
},
- "browser": {
- "inactivity_timeout": 120, "record_sessions": False, "engine": "auto", # auto (Chrome) | lightpanda | chrome
- "camofox": {"rewrite_loopback_urls": False, "loopback_host_alias": "host.docker.internal"},
- },
+ "browser": {"inactivity_timeout": 120, "engine": "auto"}, # engine: auto (Chromium) | lightpanda
# threshold: fraction of the model's context limit; min_tail: real user messages kept in the tail
"compression": {"enabled": True, "threshold": 0.50, "min_tail_user_messages": 1},
"agent": {
diff --git a/hermes_cli/codex_runtime_plugin_migration.py b/hermes_cli/codex_runtime_plugin_migration.py
index 6eba606727c..b5f9eafee57 100644
--- a/hermes_cli/codex_runtime_plugin_migration.py
+++ b/hermes_cli/codex_runtime_plugin_migration.py
@@ -378,8 +378,8 @@ def _looks_like_test_tempdir(path: str) -> bool:
def _build_hermes_tools_mcp_entry() -> dict:
- """Codex stdio entry launching Hermes' own tool surface as an MCP server (browser/web/
- delegate_task/vision/memory/skills call-backs).
+ """Codex stdio entry launching Hermes' own tool surface as an MCP server (web/vision/
+ image/skills/kanban call-backs).
HERMES_HOME passes through only IF SET, read from os.environ (not get_hermes_home()): when
unset the codex subprocess must inherit its launcher's runtime HERMES_HOME (systemd, gateway,
@@ -409,7 +409,7 @@ def _build_hermes_tools_mcp_entry() -> dict:
"command": sys.executable,
"args": ["-m", "agent.transports.hermes_tools_mcp_server"],
"env": env,
- # Generous timeouts — browser_navigate or delegate_task can take a while.
+ # Generous timeouts — image_generate or delegate_task can take a while.
"startup_timeout_sec": 30.0,
"tool_timeout_sec": 600.0}
diff --git a/hermes_cli/codex_runtime_switch.py b/hermes_cli/codex_runtime_switch.py
index 9278e9040d9..d90f053e081 100644
--- a/hermes_cli/codex_runtime_switch.py
+++ b/hermes_cli/codex_runtime_switch.py
@@ -19,7 +19,7 @@ _ARG_SYNONYMS = {
_HERMES_TOOLS_CALLBACK_NOTE = (
"Hermes tool callback registered: codex can now use "
- "web_search, web_extract, browser_*, vision_analyze, "
+ "web_search, web_extract, vision_analyze, "
"image_generate, skill_view, skills_list, text_to_speech, "
"kanban_* (worker + orchestrator) via MCP.",
" (delegate_task, memory, session_search, todo run "
diff --git a/hermes_cli/observability/shared_metrics_contract.py b/hermes_cli/observability/shared_metrics_contract.py
index aff5e6f634f..e381c592bbf 100644
--- a/hermes_cli/observability/shared_metrics_contract.py
+++ b/hermes_cli/observability/shared_metrics_contract.py
@@ -156,9 +156,15 @@ TASK_FAILURE_CLASSES = MODEL_ERROR_CLASSES | frozenset({
_CORE_GATEWAY_PLATFORMS = (frozenset(PLATFORMS) - {"api_server", "cli", "cron"}) | {"none", "plugin", "relay"}
# The Tool Search bridge tools are not in a toolset; every hosted connector tool reads ``connector``.
BRIDGE_TOOL_NAMES = frozenset({"tool_call", "tool_describe", "tool_search"})
-# Deleted with the old setup flow. v4 only adds values, and rows that v0.21.6/7 saved with these names
-# must still package; recording maps through the live sets (tool_metric_name, toolset_metric_name).
-RETIRED_TOOL_NAMES = frozenset({"setup_choose", "start_chat"})
+# Deleted core tools: setup_choose/start_chat with the old setup flow; the built-in browser_* tools with
+# agent-browser (the camofox plugin's same-named tools record as ``plugin``). v4 only adds values, and rows
+# older releases saved with these names must still package; recording maps through the live sets
+# (tool_metric_name, toolset_metric_name).
+RETIRED_TOOL_NAMES = frozenset({
+ "setup_choose", "start_chat",
+ "browser_back", "browser_click", "browser_console", "browser_get_images", "browser_navigate",
+ "browser_press", "browser_scroll", "browser_snapshot", "browser_type", "browser_vision",
+})
RETIRED_TOOLSET_NAMES = frozenset({"setup", "start_chat"})
_LIVE_TOOL_NAMES = BUILTIN_TOOL_NAMES | BRIDGE_TOOL_NAMES | {"connector", "mcp", "plugin", "unknown"}
TOOL_NAMES = _LIVE_TOOL_NAMES | RETIRED_TOOL_NAMES
@@ -279,8 +285,9 @@ DELEGATION_OUTCOMES = frozenset({"cancelled", "failed", "partial", "success"})
DELEGATION_DEPTHS = frozenset({"1", "2", "3", "gte_4"})
DELEGATION_MODES = frozenset({"background", "foreground"})
EXECUTION_KINDS = frozenset({"browser", "code", "terminal"})
-# Shipped browser backends: tools/browser_{camofox,lightpanda,tool_cdp,tool_cloud,extension_router}.py
-# plus the bundled cloud providers in plugins/browser/.
+# Browser backend labels: tools/browser_{lightpanda,session_cdp,session_cloud,extension_router}.py plus
+# the bundled cloud providers in plugins/browser/. ``camofox`` stays a legacy value (now the catalog
+# plugin; removing a shipped schema value breaks older relays).
BROWSER_BACKENDS = frozenset({
"browser-use", "browserbase", "camofox", "cdp", "extension", "firecrawl", "lightpanda", "local", "other",
})
diff --git a/hermes_cli/pty_bridge.py b/hermes_cli/pty_bridge.py
index 0c3f47b7a8d..375dcab6001 100644
--- a/hermes_cli/pty_bridge.py
+++ b/hermes_cli/pty_bridge.py
@@ -306,8 +306,7 @@ class PtyBridge:
leader_was_alive = self._proc.isalive()
# No group signal is safe for a shared-group child, so its descendants must be
# snapshotted BEFORE the parent is signalled: once the parent exits they reparent
- # and psutil can no longer find them (browser_tool_lifecycle._legacy_kill_process_tree,
- # process_registry._terminate_host_pid). The sweep below then kills them individually
+ # and psutil can no longer find them (process_registry._terminate_host_pid). The sweep below then kills them individually
# so a SIGHUP-ignoring helper cannot keep the PTY slave open (#76759).
non_leader_descendants: list = []
if pgid is not None and pgid != self._proc.pid:
diff --git a/hermes_cli/subcommands/acp.py b/hermes_cli/subcommands/acp.py
index c1859362fd1..f8972021d05 100644
--- a/hermes_cli/subcommands/acp.py
+++ b/hermes_cli/subcommands/acp.py
@@ -25,8 +25,7 @@ def build_acp_parser(subparsers, *, cmd_acp: Callable) -> None:
help="Run interactive Hermes provider/model setup for ACP terminal auth")
acp_parser.add_argument(
"--setup-browser", action="store_true",
- help="Install agent-browser + Playwright Chromium into ~/.hermes/node/ "
- "for browser tool support (idempotent).")
+ help="Install PM's pinned Chromium for browser_exec (idempotent).")
acp_parser.add_argument(
"--yes", "-y", action="store_true", dest="assume_yes",
help="Accept all prompts (used by --setup-browser to skip the "
diff --git a/tests/acp_adapter/test_entry.py b/tests/acp_adapter/test_entry.py
index 190514a88d7..f34293e1d49 100644
--- a/tests/acp_adapter/test_entry.py
+++ b/tests/acp_adapter/test_entry.py
@@ -98,4 +98,4 @@ def test_setup_browser_is_one_explicit_package_request(monkeypatch):
entry.main(["--setup-browser", "--yes"])
- assert calls == [("agent-browser", {"explicit": True})]
+ assert calls == [("chromium", {"explicit": True})]