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
I'm going to provide you with a conversation history between a user and an AI assistant. Your task is to analyze the entire conversation and provide a concise, focused response that addresses the core of the user's questions and needs.
1
+
Analyze the conversation history and produce a compact saved-context summary.
2
2
3
-
This response should:
4
-
1. Synthesize all the important information from the conversation
5
-
2. Remove repetitive or redundant elements
6
-
3. Maintain all key insights and valuable content
7
-
4. Be presented as a single, coherent response
8
-
5. Focus on providing the most helpful answer to what the user is ultimately trying to accomplish
3
+
Focus on:
9
4
10
-
This helps create a cleaner, more efficient conversation that delivers the same value in a more concise format.
5
+
* Core goals, decisions, and outcomes.
6
+
* Important technical facts, filenames, commands, settings, and constraints.
7
+
* Open questions, unresolved problems, and next steps.
8
+
* Relevant annotations that help resume the conversation without rereading the full log.
11
9
12
-
Okay, here are a few prompt options, varying in detail and tone, suitable for a language mode query focused on compacting a conversation log. I've categorized them by increasing complexity:
13
-
14
-
**1. Basic Prompt (Good starting point):**
15
-
16
-
"Summarize the following conversation log. Focus on the key topics, decisions, and outcomes. Keep the summary concise – no more than 5-7 sentences."
17
-
18
-
**2. Slightly More Detailed Prompt:**
19
-
20
-
"You are a skilled summarizer of conversation logs. Please read the following conversation log and generate a short summary (approximately 80-100 words) that captures the essence of the conversation. Highlight the most important points – decisions made, issues discussed, and ultimately, the result of the interaction. Do not include unnecessary details or personal opinions."
21
-
22
-
**3. Prompt with Emphasis on Relevance:**
23
-
24
-
"Analyze the following conversation log. Identify the core topics discussed and the *most relevant* information. Craft a summary (around 100-150 words) that answers the question: 'What happened in this conversation, and what's the key takeaway?' Prioritize the information that directly impacts [mention a specific goal, e.g., the next step, a decision, understanding the issue]."
25
-
26
-
**4. Advanced Prompt (Best for complex logs):**
27
-
28
-
"You are an expert assistant tasked with distilling key information from a conversation log. Read the following log (provide the log here – consider using a JSON format for better structure if possible). Your goal is to produce a short, impactful summary (approximately 120-150 words) that focuses on:
29
-
***Identifying the central themes/topics.**
30
-
***Highlighting the crucial decisions and their implications.**
31
-
***Pinpointing the ultimate outcome or resolution.**
32
-
***Eliminating irrelevant details and tangents.**
33
-
***Maintain a clear and professional tone.** Do not rewrite the conversation, simply extract the essential elements. Please respond with the summary."
34
-
35
-
---
36
-
37
-
**Important Considerations & How to Use This Prompt:**
38
-
39
-
***Replace `<INPUT>`:** Replace this placeholder with the actual conversation log text.
40
-
***Context is Key:** The best prompt will depend *entirely* on the nature of your conversation logs. A very technical log might benefit from a more detailed prompt. A casual conversation could use a simpler prompt.
41
-
***Iterate:** Start with a basic prompt and then refine it based on the output you receive. You might need to tweak the emphasis or length instructions.
42
-
***Format Output:** Consider how you want the output formatted. (e.g., bullet points, a short paragraph).
43
-
44
-
To help me refine the prompt even further, could you tell me:
45
-
46
-
* What *type* of conversation logs are you dealing with (e.g., customer support, internal project discussions, sales calls)?
47
-
* What is the *purpose* of the summary? (e.g., triage, knowledge base, decision-making)?
10
+
Remove repetition, transient chatter, and irrelevant details. Keep the result concise but complete enough to continue the work later.
// handleCompactCommand processes the /compact command
2292
-
// It loads the compact.txt prompt and submits the entire conversation history
2293
-
// to the AI, then replaces all messages with the AI's response.
2294
-
// The optional extra argument is appended to the compact prompt to let the
2295
-
// caller steer the summarization (e.g. "focus on the API changes").
2291
+
constcompactSaveInstructions="For saved-session compaction, focus on highlights, decisions, durable facts, open questions, and relevant annotations needed to resume the conversation later."
0 commit comments