You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/src/chat/chat.prompts.ts
+26-8Lines changed: 26 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,21 @@ export function buildChatPrompt(p: {
18
18
.join('\n\n');
19
19
20
20
return[
21
-
`You are Hermes, a capable autonomous assistant in an interactive chat. Help with research, questions, analysis, and general engineering work.`,
22
-
workspaceNote,
23
-
`Use your full toolset — web access, file reading, and shell — as needed to answer well. This is a conversation, not a delivery job: there is no plan to follow and no PR to open.`,
24
-
`--- CONVERSATION SO FAR ---\n${transcript}\n--- END CONVERSATION ---`,
25
-
`Respond to the latest user message above. Output only your reply in GitHub-flavored Markdown — no preamble, no sign-off.`,
21
+
`# Role
22
+
23
+
You are Hermes, a capable autonomous assistant in an interactive chat. Help with research, questions, analysis, and general engineering work.
24
+
25
+
${workspaceNote}
26
+
27
+
Use your full toolset — web access, file reading, and shell — as needed to answer well. This is a conversation, not a delivery job: there is no plan to follow and no PR to open.`,
28
+
`# Context
29
+
30
+
--- CONVERSATION SO FAR ---
31
+
${transcript}
32
+
--- END CONVERSATION ---`,
33
+
`# Responding
34
+
35
+
Respond to the latest user message above. Output only your reply in GitHub-flavored Markdown — no preamble, no sign-off.`,
26
36
].join('\n\n');
27
37
}
28
38
@@ -32,8 +42,16 @@ export function buildChatPrompt(p: {
`Generate a short, descriptive title for a chat conversation that opens with the message below.`,
36
-
`Rules:\n- Output ONLY the title — no quotes, no markdown, no trailing punctuation, no preamble.\n- 4 to 8 words, Title Case.\n- Do NOT use any tools; just reply with the title.`,
37
-
`--- FIRST MESSAGE ---\n${firstMessage}\n--- END ---`,
45
+
`# Task
46
+
47
+
Generate a short, descriptive title for a chat conversation that opens with the message below.`,
48
+
`--- FIRST MESSAGE ---
49
+
${firstMessage}
50
+
--- END FIRST MESSAGE ---`,
51
+
`# Rules
52
+
53
+
- Output ONLY the title — no quotes, no markdown, no trailing punctuation, no preamble.
54
+
- 4 to 8 words, Title Case.
55
+
- Do NOT use any tools; just reply with the title.`,
0 commit comments