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
template: `Generate an enhanced version of this prompt (reply with only the enhanced prompt - no conversation, explanations, lead-in, bullet points, placeholders, or surrounding quotes):
50
51
51
52
\${userInput}`,
53
+
},
54
+
CONDENSE: {
55
+
template: `Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions.
56
+
This summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing with the conversation and supporting any continuing tasks.
57
+
58
+
Your summary should be structured as follows:
59
+
Context: The context to continue the conversation with. If applicable based on the current task, this should include:
60
+
1. Previous Conversation: High level details about what was discussed throughout the entire conversation with the user. This should be written to allow someone to be able to follow the general overarching conversation flow.
61
+
2. Current Work: Describe in detail what was being worked on prior to this request to summarize the conversation. Pay special attention to the more recent messages in the conversation.
62
+
3. Key Technical Concepts: List all important technical concepts, technologies, coding conventions, and frameworks discussed, which might be relevant for continuing with this work.
63
+
4. Relevant Files and Code: If applicable, enumerate specific files and code sections examined, modified, or created for the task continuation. Pay special attention to the most recent messages and changes.
64
+
5. Problem Solving: Document problems solved thus far and any ongoing troubleshooting efforts.
65
+
6. Pending Tasks and Next Steps: Outline all pending tasks that you have explicitly been asked to work on, as well as list the next steps you will take for all outstanding work, if applicable. Include code snippets where they add clarity. For any next steps, include direct quotes from the most recent conversation showing exactly what task you were working on and where you left off. This should be verbatim to ensure there's no information loss in context between tasks.
66
+
67
+
Example summary structure:
68
+
1. Previous Conversation:
69
+
[Detailed description]
70
+
2. Current Work:
71
+
[Detailed description]
72
+
3. Key Technical Concepts:
73
+
- [Concept 1]
74
+
- [Concept 2]
75
+
- [...]
76
+
4. Relevant Files and Code:
77
+
- [File Name 1]
78
+
- [Summary of why this file is important]
79
+
- [Summary of the changes made to this file, if any]
80
+
- [Important Code Snippet]
81
+
- [File Name 2]
82
+
- [Important Code Snippet]
83
+
- [...]
84
+
5. Problem Solving:
85
+
[Detailed description]
86
+
6. Pending Tasks and Next Steps:
87
+
- [Task 1 details & next steps]
88
+
- [Task 2 details & next steps]
89
+
- [...]
90
+
91
+
Output only the summary of the conversation so far, without any additional commentary or explanation.`,
52
92
},
53
93
EXPLAIN: {
54
94
template: `Explain the following code from file path \${filePath}:\${startLine}-\${endLine}
Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions.
17
-
This summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing with the conversation and supporting any continuing tasks.
18
-
19
-
Your summary should be structured as follows:
20
-
Context: The context to continue the conversation with. If applicable based on the current task, this should include:
21
-
1. Previous Conversation: High level details about what was discussed throughout the entire conversation with the user. This should be written to allow someone to be able to follow the general overarching conversation flow.
22
-
2. Current Work: Describe in detail what was being worked on prior to this request to summarize the conversation. Pay special attention to the more recent messages in the conversation.
23
-
3. Key Technical Concepts: List all important technical concepts, technologies, coding conventions, and frameworks discussed, which might be relevant for continuing with this work.
24
-
4. Relevant Files and Code: If applicable, enumerate specific files and code sections examined, modified, or created for the task continuation. Pay special attention to the most recent messages and changes.
25
-
5. Problem Solving: Document problems solved thus far and any ongoing troubleshooting efforts.
26
-
6. Pending Tasks and Next Steps: Outline all pending tasks that you have explicitly been asked to work on, as well as list the next steps you will take for all outstanding work, if applicable. Include code snippets where they add clarity. For any next steps, include direct quotes from the most recent conversation showing exactly what task you were working on and where you left off. This should be verbatim to ensure there's no information loss in context between tasks.
27
-
28
-
Example summary structure:
29
-
1. Previous Conversation:
30
-
[Detailed description]
31
-
2. Current Work:
32
-
[Detailed description]
33
-
3. Key Technical Concepts:
34
-
- [Concept 1]
35
-
- [Concept 2]
36
-
- [...]
37
-
4. Relevant Files and Code:
38
-
- [File Name 1]
39
-
- [Summary of why this file is important]
40
-
- [Summary of the changes made to this file, if any]
41
-
- [Important Code Snippet]
42
-
- [File Name 2]
43
-
- [Important Code Snippet]
44
-
- [...]
45
-
5. Problem Solving:
46
-
[Detailed description]
47
-
6. Pending Tasks and Next Steps:
48
-
- [Task 1 details & next steps]
49
-
- [Task 2 details & next steps]
50
-
- [...]
51
-
52
-
Output only the summary of the conversation so far, without any additional commentary or explanation.
0 commit comments