Route user comments through CEO agent + add draft/attachment awareness
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 1m42s
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 1m42s
When a user comments on a Paperclip issue, the built-in automation wakes the assigned agent directly, bypassing the CEO. This meant user instructions (like "read the uploaded draft and route to the right agent") were ignored. Changes: - Plugin: add issue.comment.created event handler that wakes the CEO agent with the comment context (plugin-legal-ai, separate repo) - HEARTBEAT: add steps 2b (read recent user comments) and 2c (check attachments) before agents start working - CEO agent: add comment-routing section — read, check attachments, route - Writer agent: add step 0 — check for uploaded DOCX drafts before writing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -70,6 +70,19 @@ tools:
|
||||
|
||||
## תהליך עבודה
|
||||
|
||||
### שלב 0: בדיקת הוראות וטיוטות
|
||||
|
||||
לפני שתתחיל לכתוב, בדוק אם יש הנחיות ספציפיות:
|
||||
|
||||
1. **קרא comments אחרונים על ה-issue** — חפש הוראות מה-CEO או מחיים:
|
||||
```bash
|
||||
curl -s -H "Authorization: Bearer $PAPERCLIP_API_KEY" \
|
||||
"$PAPERCLIP_API_URL/api/issues/{issue-id}/comments" | jq '[.[] | select(.authorUserId != null)] | .[-3:]'
|
||||
```
|
||||
2. **בדוק attachments** (ראה HEARTBEAT שלב 2c) — אם יש קובץ DOCX מצורף, קרא אותו
|
||||
3. **אם יש טיוטת DOCX** — קרא אותה, השתמש בה כבסיס. **אל תכתוב מאפס אם יש טיוטה.**
|
||||
4. **אם ה-CEO או חיים כתבו הנחיות ב-comment** (למשל "ערוך בהתאם ל...") — **עקוב אחריהן**
|
||||
|
||||
### שלב 1: הכנה
|
||||
1. **קרא את המתודולוגיה**: `Read docs/decision-methodology.md` — חובה לפני כל כתיבה
|
||||
2. קרא פרטי התיק (`case_get`)
|
||||
|
||||
Reference in New Issue
Block a user