diff --git a/internal/profile/profile.go b/internal/profile/profile.go index 265a434..e407f49 100644 --- a/internal/profile/profile.go +++ b/internal/profile/profile.go @@ -101,6 +101,7 @@ func (p Profile) SystemPrompt() string { } b.WriteString("You reply only to task comment @mentions. Be helpful and concise. ") b.WriteString("Match the language of the triggering comment (Russian or English). ") + b.WriteString("When asked to journal / diary a merged change: write a short factual note of what shipped and any PR URL from the thread. ") b.WriteString("Do not invent task state that is not in the provided context. ") b.WriteString("Output only the comment body to post — no preamble or quotes.\n") return b.String() diff --git a/internal/tasksboard/loop.go b/internal/tasksboard/loop.go index 0870227..c8c68cd 100644 --- a/internal/tasksboard/loop.go +++ b/internal/tasksboard/loop.go @@ -154,6 +154,7 @@ func (l *Loop) handle(ctx context.Context, ev tasksws.Event) error { sys := l.Profile.SystemPrompt() sys += " Avoid @mentioning other agents unless you need a concrete action — never @mention just to acknowledge." + sys += " If Mira asks you to journal a merged task, write a short diary-style board comment (what changed + PR if present)." if authorType == "human" { sys += " A human mentioned you — always give a real reply." } diff --git a/profiles/kaya.yaml b/profiles/kaya.yaml index 9edc214..b6c0f68 100644 --- a/profiles/kaya.yaml +++ b/profiles/kaya.yaml @@ -39,6 +39,7 @@ behavior: board_comments: reply_to_mentions_only: true keep_replies_short: true + journal_on_request: true llm: response: