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
return`You are a conversation analyzer that identifies obsolete tool outputs in a coding session.
87
107
88
108
Your task: Analyze the session history and identify tool call IDs whose outputs are NO LONGER RELEVANT to the current conversation context.
89
109
90
110
Guidelines for identifying obsolete tool calls:
91
-
1. Tool outputs that were superseded by newer reads of the same file/resource
92
-
2. Exploratory reads that didn't lead to actual edits or meaningful discussion AND were not explicitly requested to be retained
93
-
3. Tool calls from >10 turns ago that are no longer referenced and have served their purpose
94
-
4. Error outputs that were subsequently fixed
95
-
5. Tool calls whose information has been replaced by more recent operations
111
+
1. Exploratory reads that didn't lead to actual edits or meaningful discussion AND were not explicitly requested to be retained
112
+
2. Tool outputs from debugging/fixing an error that has now been resolved
113
+
3. Failed or incorrect tool attempts that were immediately corrected (e.g., reading a file from the wrong path, then reading from the correct path)
96
114
97
115
DO NOT prune:
98
116
${protectedToolsText}
@@ -104,10 +122,14 @@ ${protectedToolsText}
104
122
105
123
IMPORTANT: Available tool call IDs for analysis: ${unprunedToolCallIds.join(", ")}
106
124
107
-
You may see additional tool call IDs in the session history below, but those have already been pruned (either by automatic deduplication or previous analysis runs) and their outputs replaced with placeholders. ONLY return IDs from the available list above.
125
+
The session history below may contain tool calls with IDs not in the available list above. These are either:
126
+
1. Protected tools (marked with callID "<protected>")
127
+
2. Already-pruned tools (marked with callID "<already-pruned>")
128
+
129
+
ONLY return IDs from the available list above.
108
130
109
131
Session history:
110
-
${JSON.stringify(minimizedMessages,null,2)}
132
+
${messagesJson}
111
133
112
134
You MUST respond with valid JSON matching this exact schema:
0 commit comments