Skip to content

The agent that grows with you

fix(catalog): an install from the setup chat targets the launch profile

alt-glitch14dbaec0abf0
diff --git a/tools/connectors/catalog.py b/tools/connectors/catalog.py
index aa71ffb7bf0..d602621ba94 100644
--- a/tools/connectors/catalog.py
+++ b/tools/connectors/catalog.py
@@ -48,6 +48,16 @@ def _display(identifier: str) -> str:
return " ".join(part.capitalize() for part in re.split(r"[-_]+", leaf) if part) or identifier
+def default_target_profile() -> str:
+ from hermes_cli.profiles import SETUP_PROFILE_MARKER
+ from tui_gateway import server
+
+ home = get_hermes_home()
+ if (home / SETUP_PROFILE_MARKER).is_file():
+ home = server._hermes_home
+ return profile_name_for_home(home) or "default"
+
+
@contextlib.contextmanager
def target_scope(profile: str):
"""Bind the named profile's home, secrets and terminal policy, the way an RPC for that profile
@@ -150,7 +160,7 @@ class _Runner:
def prepare(self, operation: ConnectionOperation) -> None:
_RUNNERS[operation.op_id] = self
self.op_id = operation.op_id
- self.profile = profile_name_for_home(get_hermes_home()) or "default"
+ self.profile = default_target_profile()
for target in operation.targets:
target.extra = {"display": _display(target.name), "target_profile": self.profile}
try:
diff --git a/tools/connectors/catalog_tool.py b/tools/connectors/catalog_tool.py
index a333e5e3639..e19df90d3c3 100644
--- a/tools/connectors/catalog_tool.py
+++ b/tools/connectors/catalog_tool.py
@@ -39,8 +39,8 @@ MANAGE_CATALOG_SCHEMA = {
"Find and install Hermes catalog plugins and hub skills for the user. 'search' lists matches "
"(id, kind, display, tier, platforms, installed) and changes nothing. 'install' shows the user "
"one approval card with a row per item and blocks until every row is installed, skipped, or "
- "the card is closed; the host installs each approved row into this chat's profile at "
- "the catalog's reviewed version. Pass only catalog ids exactly as 'search' returns them; the "
+ "the card is closed; the host installs each approved row into this chat's profile (from the setup chat, into "
+ "the user's main profile) at the catalog's reviewed version. Pass only catalog ids exactly as 'search' returns them; the "
"host decides the source, version, profile and settings, and the user can change them on the "
"card. Offer an install only for something the user asked for or agreed to."
),
@@ -145,10 +145,9 @@ def install(items: List[Dict[str, str]], *, session_id: Optional[str], tool_call
def search(query: str, kind: Optional[str], *, installer: Any = None) -> Dict[str, Any]:
- from hermes_constants import get_hermes_home, profile_name_for_home
- from tools.connectors.catalog import target_scope
+ from tools.connectors.catalog import default_target_profile, target_scope
- profile = profile_name_for_home(get_hermes_home()) or "default"
+ profile = default_target_profile()
rows: List[Dict[str, Any]] = []
with target_scope(profile):
if kind in (None, "plugin"):
diff --git a/website/docs/reference/tools-reference.md b/website/docs/reference/tools-reference.md
index 1894bf31406..52b52e7b042 100644
--- a/website/docs/reference/tools-reference.md
+++ b/website/docs/reference/tools-reference.md
@@ -186,7 +186,7 @@ Enabled for sessions whose source is the desktop app, whichever backend it's con
| Tool | Description | Requires environment |
|------|-------------|----------------------|
-| `manage_catalog` | Desktop sessions only, deferred behind `tool_search` by default. `search` lists catalog plugins and hub skills matching `query` (optionally one `kind`) with `id`, `kind`, `display`, `tier`, `platforms` and `installed` (present in this chat's profile); it changes nothing. `install` takes `items: [{kind, id}]` and shows one approval card with a row per item (Install, Advanced, Skip); an id the catalog does not know, or a plugin this OS cannot run, is drawn failed with the reason. An approved row installs into this chat's profile (or the profile chosen under Advanced) at the catalog's reviewed commit, with the same kill list, security scan and live activation as the Plugins tab, so the plugin's MCP tools and skills are usable in that profile's open chats at once. The result lists each row as `connected` (with `tools` and `skill`), `skipped`, `failed` (with `detail`) or `not_connected`. The model cannot pass a source, commit, profile or setting. Anywhere else the call returns the `hermes plugins install` / `hermes skills install` command to run instead. | — |
+| `manage_catalog` | Desktop sessions only, deferred behind `tool_search` by default. `search` lists catalog plugins and hub skills matching `query` (optionally one `kind`) with `id`, `kind`, `display`, `tier`, `platforms` and `installed` (present in the target profile); it changes nothing. `install` takes `items: [{kind, id}]` and shows one approval card with a row per item (Install, Advanced, Skip); an id the catalog does not know, or a plugin this OS cannot run, is drawn failed with the reason. An approved row installs into this chat's profile, or into the launch profile from the setup profile's chat (or the profile chosen under Advanced) at the catalog's reviewed commit, with the same kill list, security scan and live activation as the Plugins tab, so the plugin's MCP tools and skills are usable in that profile's open chats at once. The result lists each row as `connected` (with `tools` and `skill`), `skipped`, `failed` (with `detail`) or `not_connected`. The model cannot pass a source, commit, profile or setting. Anywhere else the call returns the `hermes plugins install` / `hermes skills install` command to run instead. | — |
## `setup` toolset
diff --git a/website/docs/reference/toolsets-reference.md b/website/docs/reference/toolsets-reference.md
index f4ba9589ab3..a9f60580e43 100644
--- a/website/docs/reference/toolsets-reference.md
+++ b/website/docs/reference/toolsets-reference.md
@@ -74,7 +74,7 @@ Or in-session:
| `memory` | `memory` | Persistent cross-session memory management. |
| `desktop_ui` | `annotate_preview`, `apply_layout`, `close_terminal`, `desktop_preview`, `drive_preview`, `focus_pane`, `gui_tour`, `react_to_message`, `read_terminal`, `read_window_below`, `show_tip` | Affordances that act on the Hermes desktop app itself — read/close the embedded terminal pane, open, read, close, interact with, and annotate the in-app browser, identify the OS window behind the app, reveal a pane, react to a message, run a guided tour (highlight + narrate UI elements in the app or the preview pane), and apply a layout preset. Enabled for sessions whose source is the desktop app, whichever backend it's connected to (local, SSH, URL, or Hermes Cloud). Never present on CLI, TUI, messaging, or cron sessions. |
| `project` | `desktop_project` | Create and switch desktop [Projects](../user-guide/cli.md) (named, multi-folder workspaces) via one `create`/`switch`/`list` action enum. GUI / desktop sessions only. |
-| `catalog` | `manage_catalog` | Search the plugin catalog and skills hub, and install items through the approval card into this chat's profile. Enabled for sessions whose source is the desktop app, whichever backend it's connected to (local, SSH, URL, or Hermes Cloud). Never present on CLI, TUI, messaging, or cron sessions. `all` does not include it. Deferred behind `tool_search` by default. Remove it with `agent.disabled_toolsets: [catalog]`. |
+| `catalog` | `manage_catalog` | Search the plugin catalog and skills hub, and install items through the approval card into this chat's profile (the launch profile from the setup profile's chat). Enabled for sessions whose source is the desktop app, whichever backend it's connected to (local, SSH, URL, or Hermes Cloud). Never present on CLI, TUI, messaging, or cron sessions. `all` does not include it. Deferred behind `tool_search` by default. Remove it with `agent.disabled_toolsets: [catalog]`. |
| `safe` | `image_generate`, `vision_analyze`, `web_extract`, `web_search` (via `includes`) | Read-only research + media generation. No file writes, no terminal, no code execution. |
| `search` | `web_search` | Web search only (without extract). |
| `session_search` | `session_search` | Search past conversation sessions. |