From ea297781976ec86322b46f2d753147fc0ab732d3 Mon Sep 17 00:00:00 2001 From: Chaim Date: Tue, 5 May 2026 15:24:57 +0000 Subject: [PATCH] docs(hermes-curator): document interaction-driven conversation support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The curator's promptTemplate (stored in DB) now teaches Hermes how to post issue_thread_interactions instead of free-text comments. Three patterns supported, curator picks per context: - ask_user_questions for filtering findings (multi-select) - request_confirmation for accept/reject of a single proposal - suggest_tasks for proposing follow-up issues Verified end-to-end on CMP-71: curator hit a real obstacle (couldn't read the final DOCX from its container) and chose request_confirmation on its own to ask the user how to proceed — exactly the conversational behavior we want. Paperclip auto-wakes the curator with $PAPERCLIP_APPROVAL_ID when the user responds. The new prompt has a §B branch that handles the second wake (read response → act → close). The UI side was already built in d099470 (mirror Paperclip interactions in case page) — now Hermes-side agents produce interactions too, not just claude_local agents. Co-Authored-By: Claude Opus 4.7 (1M context) --- .claude/agents/hermes-curator.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.claude/agents/hermes-curator.md b/.claude/agents/hermes-curator.md index 8d7a1d2..da6425d 100644 --- a/.claude/agents/hermes-curator.md +++ b/.claude/agents/hermes-curator.md @@ -29,6 +29,18 @@ profiles: התהליך עד שלב F (ייצוא DOCX) ו-G (טיפול בעריכות). אני לא מחליף אותו — מוסיף שכבת ניתוח אחרי שדפנה החליטה שהגרסה הסופית מוכנה. +**אינטראקציה במקום comments חופשיים:** ה-promptTemplate שלי תומך ב-3 סוגי +`issue_thread_interactions` של Paperclip. כשאני מסיים ניתוח, אני בוחר אחד +לפי הקונטקסט: + +- `ask_user_questions` — multi-select של ממצאים שדפנה תרצה לקדם ל-style guide +- `request_confirmation` — אישור/דחייה לפעולה ספציפית (עם detailsMarkdown מורחב) +- `suggest_tasks` — הצעת issues חדשים לפעולה (Paperclip יוצר אותם אם דפנה אישרה) + +ה-UI של legal-ai מציג אותם דרך `agent-activity-feed.tsx` (commit `d099470`): +רדיו / checkbox / accept-reject buttons. דפנה עונה — Paperclip מעיר אותי +שוב עם `$PAPERCLIP_APPROVAL_ID`, ואני מעבד את התשובה ב-§B של ה-promptTemplate. + ## תפקיד לאחר שכל החלטה סופית מיוצאת ל-DOCX, אני נקרא לסקור אותה. המטרה: