From efe449166658d6892f6725836a017bf7f30537b8 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Sat, 25 Jul 2026 12:09:36 -0500 Subject: [PATCH] fix(session-search): stop the agent restating a linked session's title The old wording ("no need to also spell out the title") left the model free to write the link on its own line and then repeat the title in the sentence, showing the user the same session twice. Say plainly that the link IS the title and belongs mid-sentence as a noun. --- tools/session_search_tool.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/session_search_tool.py b/tools/session_search_tool.py index 2b2d99c359d6..e305467f0542 100644 --- a/tools/session_search_tool.py +++ b/tools/session_search_tool.py @@ -996,9 +996,11 @@ SESSION_SEARCH_SCHEMA = { "your reply — every result carries one, e.g. " "`@session:default/20260722_204335_d62c16`. Copy it verbatim; do not " "reformat it as a markdown link or wrap it in backticks. Hermes renders " - "it as the session's title, so there is no need to also spell out the " - "title, date, or id around it — write \"picked up in @session:... \" " - "rather than restating the metadata.\n\n" + "it as a link showing the session's title, so the link IS the title: " + "use it as a noun mid-sentence (\"that's @session:default/... — want me " + "to pick it up?\"), never alone on its own line, and never alongside the " + "title, id, or date spelled out — that shows the user the same session " + "twice.\n\n" "FTS5 SYNTAX\n\n" " AND is the default — multi-word queries require all terms. Use OR explicitly " "for broader recall (`alpha OR beta OR gamma`), quoted phrases for exact match "