@tarquinen/opencode-dcp 1.1.0-beta.2 → 1.1.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/messages/prune.d.ts.map +1 -1
- package/dist/lib/messages/prune.js +50 -15
- package/dist/lib/messages/prune.js.map +1 -1
- package/dist/lib/prompts/discard-tool-spec.txt +1 -1
- package/dist/lib/prompts/extract-tool-spec.txt +1 -1
- package/dist/lib/prompts/nudge/nudge-both.txt +5 -5
- package/dist/lib/prompts/nudge/nudge-discard.txt +4 -4
- package/dist/lib/prompts/nudge/nudge-extract.txt +4 -4
- package/dist/lib/prompts/system/system-prompt-both.txt +1 -16
- package/dist/lib/prompts/system/system-prompt-discard.txt +1 -16
- package/dist/lib/prompts/system/system-prompt-extract.txt +1 -16
- package/dist/lib/shared-utils.d.ts +1 -0
- package/dist/lib/shared-utils.d.ts.map +1 -1
- package/dist/lib/shared-utils.js +9 -0
- package/dist/lib/shared-utils.js.map +1 -1
- package/dist/lib/state/state.d.ts.map +1 -1
- package/dist/lib/state/state.js +2 -0
- package/dist/lib/state/state.js.map +1 -1
- package/dist/lib/state/types.d.ts +1 -0
- package/dist/lib/state/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AASjD,QAAA,MAAM,MAAM,EAAE,MAuGK,CAAA;AAEnB,eAAe,MAAM,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,16 @@ const plugin = (async (ctx) => {
|
|
|
20
20
|
strategies: config.strategies,
|
|
21
21
|
});
|
|
22
22
|
return {
|
|
23
|
+
"chat.params": async (input, _output) => {
|
|
24
|
+
const isReasoning = input.model.capabilities?.reasoning ?? false;
|
|
25
|
+
if (state.isReasoningModel !== isReasoning) {
|
|
26
|
+
logger.info(`Reasoning model status changed: ${state.isReasoningModel} -> ${isReasoning}`, {
|
|
27
|
+
modelId: input.model.id,
|
|
28
|
+
providerId: input.model.providerID,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
state.isReasoningModel = isReasoning;
|
|
32
|
+
},
|
|
23
33
|
"experimental.chat.system.transform": async (_input, output) => {
|
|
24
34
|
const discardEnabled = config.tools.discard.enabled;
|
|
25
35
|
const extractEnabled = config.tools.extract.enabled;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACvE,OAAO,EAAE,iCAAiC,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEnF,MAAM,MAAM,GAAW,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAClC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,EAAE,CAAA;IACb,CAAC;IAED,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C,YAAY,EAAE,aAAa,IAAI,EAAE,CAAA;gBAC7E,cAAc,CAAC,YAAY,GAAG;oBAC1B,GAAG,cAAc,CAAC,YAAY;oBAC9B,aAAa,EAAE,CAAC,GAAG,oBAAoB,EAAE,GAAG,UAAU,CAAC;iBAC1D,CAAA;gBACD,MAAM,CAAC,IAAI,CACP,SAAS,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,oDAAoD,CAC7G,CAAA;YACL,CAAC;QACL,CAAC;QACD,KAAK,EAAE,kBAAkB,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC;KAC9E,CAAA;AACL,CAAC,CAAkB,CAAA;AAEnB,eAAe,MAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prune.d.ts","sourceRoot":"","sources":["../../../lib/messages/prune.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"prune.d.ts","sourceRoot":"","sources":["../../../lib/messages/prune.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AA8F7C,eAAO,MAAM,sBAAsB,GAC/B,OAAO,YAAY,EACnB,QAAQ,YAAY,EACpB,QAAQ,MAAM,EACd,UAAU,SAAS,EAAE,KACtB,IA6FF,CAAA;AAED,eAAO,MAAM,KAAK,GACd,OAAO,YAAY,EACnB,QAAQ,MAAM,EACd,QAAQ,YAAY,EACpB,UAAU,SAAS,EAAE,KACtB,IAGF,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadPrompt } from "../prompt";
|
|
2
2
|
import { extractParameterKey, buildToolIdList } from "./utils";
|
|
3
|
-
import { getLastUserMessage, isMessageCompacted } from "../shared-utils";
|
|
3
|
+
import { getLastAssistantMessage, getLastUserMessage, isMessageCompacted } from "../shared-utils";
|
|
4
4
|
const PRUNED_TOOL_INPUT_REPLACEMENT = "[Input removed to save context]";
|
|
5
5
|
const PRUNED_TOOL_OUTPUT_REPLACEMENT = "[Output removed to save context - information superseded or no longer needed]";
|
|
6
6
|
const getNudgeString = (config) => {
|
|
@@ -18,7 +18,7 @@ const getNudgeString = (config) => {
|
|
|
18
18
|
return "";
|
|
19
19
|
};
|
|
20
20
|
const wrapPrunableTools = (content) => `<prunable-tools>
|
|
21
|
-
|
|
21
|
+
I have the following tool outputs available for pruning. I should consider my current goals and the resources I need before discarding valuable inputs or outputs. I should consolidate prunes for efficiency; it is rarely worth pruning a single tiny tool output.
|
|
22
22
|
${content}
|
|
23
23
|
</prunable-tools>`;
|
|
24
24
|
const getCooldownMessage = (config) => {
|
|
@@ -35,11 +35,14 @@ const getCooldownMessage = (config) => {
|
|
|
35
35
|
toolName = "extract tool";
|
|
36
36
|
}
|
|
37
37
|
return `<prunable-tools>
|
|
38
|
-
|
|
38
|
+
I just performed context management. I will not use the ${toolName} again until after my next tool use, when a fresh list will be available.
|
|
39
39
|
</prunable-tools>`;
|
|
40
40
|
};
|
|
41
41
|
const SYNTHETIC_MESSAGE_ID = "msg_01234567890123456789012345";
|
|
42
42
|
const SYNTHETIC_PART_ID = "prt_01234567890123456789012345";
|
|
43
|
+
const SYNTHETIC_USER_MESSAGE_ID = "msg_01234567890123456789012346";
|
|
44
|
+
const SYNTHETIC_USER_PART_ID = "prt_01234567890123456789012346";
|
|
45
|
+
const REASONING_MODEL_USER_MESSAGE_CONTENT = "<system-context-injection/>";
|
|
43
46
|
const buildPrunableToolsList = (state, config, logger, messages) => {
|
|
44
47
|
const lines = [];
|
|
45
48
|
const toolIdList = buildToolIdList(state, messages, logger);
|
|
@@ -75,8 +78,8 @@ export const insertPruneToolContext = (state, config, logger, messages) => {
|
|
|
75
78
|
if (!config.tools.discard.enabled && !config.tools.extract.enabled) {
|
|
76
79
|
return;
|
|
77
80
|
}
|
|
78
|
-
const
|
|
79
|
-
if (!
|
|
81
|
+
const lastAssistantMessage = getLastAssistantMessage(messages);
|
|
82
|
+
if (!lastAssistantMessage) {
|
|
80
83
|
return;
|
|
81
84
|
}
|
|
82
85
|
let prunableToolsContent;
|
|
@@ -98,29 +101,61 @@ export const insertPruneToolContext = (state, config, logger, messages) => {
|
|
|
98
101
|
}
|
|
99
102
|
prunableToolsContent = prunableToolsList + nudgeString;
|
|
100
103
|
}
|
|
101
|
-
const
|
|
104
|
+
const assistantInfo = lastAssistantMessage.info;
|
|
105
|
+
const assistantMessage = {
|
|
102
106
|
info: {
|
|
103
107
|
id: SYNTHETIC_MESSAGE_ID,
|
|
104
|
-
sessionID:
|
|
105
|
-
role: "
|
|
108
|
+
sessionID: assistantInfo.sessionID,
|
|
109
|
+
role: "assistant",
|
|
110
|
+
parentID: assistantInfo.parentID,
|
|
111
|
+
modelID: assistantInfo.modelID,
|
|
112
|
+
providerID: assistantInfo.providerID,
|
|
106
113
|
time: { created: Date.now() },
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
114
|
+
tokens: { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } },
|
|
115
|
+
cost: 0,
|
|
116
|
+
path: assistantInfo.path,
|
|
117
|
+
mode: assistantInfo.mode,
|
|
112
118
|
},
|
|
113
119
|
parts: [
|
|
114
120
|
{
|
|
115
121
|
id: SYNTHETIC_PART_ID,
|
|
116
|
-
sessionID:
|
|
122
|
+
sessionID: assistantInfo.sessionID,
|
|
117
123
|
messageID: SYNTHETIC_MESSAGE_ID,
|
|
118
124
|
type: "text",
|
|
119
125
|
text: prunableToolsContent,
|
|
120
126
|
},
|
|
121
127
|
],
|
|
122
128
|
};
|
|
123
|
-
messages.push(
|
|
129
|
+
messages.push(assistantMessage);
|
|
130
|
+
// For reasoning models, append a synthetic user message to close the assistant turn.
|
|
131
|
+
if (state.isReasoningModel) {
|
|
132
|
+
const lastRealUserMessage = getLastUserMessage(messages);
|
|
133
|
+
const userMessageInfo = lastRealUserMessage?.info;
|
|
134
|
+
const userMessage = {
|
|
135
|
+
info: {
|
|
136
|
+
id: SYNTHETIC_USER_MESSAGE_ID,
|
|
137
|
+
sessionID: assistantInfo.sessionID,
|
|
138
|
+
role: "user",
|
|
139
|
+
time: { created: Date.now() + 1 },
|
|
140
|
+
agent: userMessageInfo?.agent ?? "code",
|
|
141
|
+
model: userMessageInfo?.model ?? {
|
|
142
|
+
providerID: assistantInfo.providerID,
|
|
143
|
+
modelID: assistantInfo.modelID,
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
parts: [
|
|
147
|
+
{
|
|
148
|
+
id: SYNTHETIC_USER_PART_ID,
|
|
149
|
+
sessionID: assistantInfo.sessionID,
|
|
150
|
+
messageID: SYNTHETIC_USER_MESSAGE_ID,
|
|
151
|
+
type: "text",
|
|
152
|
+
text: REASONING_MODEL_USER_MESSAGE_CONTENT,
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
};
|
|
156
|
+
messages.push(userMessage);
|
|
157
|
+
logger.debug("Appended synthetic user message for reasoning model");
|
|
158
|
+
}
|
|
124
159
|
};
|
|
125
160
|
export const prune = (state, logger, config, messages) => {
|
|
126
161
|
pruneToolOutputs(state, logger, messages);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prune.js","sourceRoot":"","sources":["../../../lib/messages/prune.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,WAA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-
A `<prunable-tools>` list is
|
|
4
|
+
A `<prunable-tools>` list is provided to you showing available tool outputs you can discard when there are tools available for pruning. Each line has the format `ID: tool, parameter` (e.g., `20: read, /path/to/file.ts`). You MUST only use numeric IDs that appear in this list to select which tools to discard.
|
|
5
5
|
|
|
6
6
|
**Note:** For `write` and `edit` tools, discarding removes the input content (the code being written/edited) while preserving the output confirmation. This is useful after completing a file modification when you no longer need the raw content in context.
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Extracts key findings from tool outputs into distilled knowledge, then removes the raw outputs from context.
|
|
2
2
|
|
|
3
3
|
## IMPORTANT: The Prunable List
|
|
4
|
-
A `<prunable-tools>` list is
|
|
4
|
+
A `<prunable-tools>` list is provided to you showing available tool outputs you can extract from when there are tools available for pruning. Each line has the format `ID: tool, parameter` (e.g., `20: read, /path/to/file.ts`). You MUST only use numeric IDs that appear in this list to select which tools to extract.
|
|
5
5
|
|
|
6
6
|
## When to Use This Tool
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<instruction name=context_management_required>
|
|
2
|
-
**CRITICAL CONTEXT WARNING:**
|
|
2
|
+
**CRITICAL CONTEXT WARNING:** My context window is filling with tool outputs. I must adhere strictly to context hygiene.
|
|
3
3
|
|
|
4
4
|
**Immediate Actions Required:**
|
|
5
|
-
1. **Task Completion:** If a sub-task is complete, decide: use `discard` if no valuable context to preserve (default), or use `extract` if insights are worth keeping.
|
|
6
|
-
2. **Noise Removal:** If
|
|
7
|
-
3. **Knowledge Preservation:** If
|
|
5
|
+
1. **Task Completion:** If a sub-task is complete, I will decide: use `discard` if no valuable context to preserve (default), or use `extract` if insights are worth keeping.
|
|
6
|
+
2. **Noise Removal:** If I read files or ran commands that yielded no value, I will use `discard` to remove them.
|
|
7
|
+
3. **Knowledge Preservation:** If I am holding valuable raw data I'll need to reference later, I will use `extract` to distill the insights and remove the raw entry.
|
|
8
8
|
|
|
9
|
-
**Protocol:**
|
|
9
|
+
**Protocol:** I should prioritize this cleanup, but I will not interrupt a critical atomic operation if one is in progress. Once the immediate step is done, I must perform context management.
|
|
10
10
|
</instruction>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<instruction name=context_management_required>
|
|
2
|
-
**CRITICAL CONTEXT WARNING:**
|
|
2
|
+
**CRITICAL CONTEXT WARNING:** My context window is filling with tool outputs. I must adhere strictly to context hygiene.
|
|
3
3
|
|
|
4
4
|
**Immediate Actions Required:**
|
|
5
|
-
1. **Task Completion:** If a sub-task is complete, use the `discard` tool to remove the tools used.
|
|
6
|
-
2. **Noise Removal:** If
|
|
5
|
+
1. **Task Completion:** If a sub-task is complete, I will use the `discard` tool to remove the tools used.
|
|
6
|
+
2. **Noise Removal:** If I read files or ran commands that yielded no value, I will use the `discard` tool to remove them.
|
|
7
7
|
|
|
8
|
-
**Protocol:**
|
|
8
|
+
**Protocol:** I should prioritize this cleanup, but I will not interrupt a critical atomic operation if one is in progress. Once the immediate step is done, I must discard unneeded tool outputs.
|
|
9
9
|
</instruction>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<instruction name=context_management_required>
|
|
2
|
-
**CRITICAL CONTEXT WARNING:**
|
|
2
|
+
**CRITICAL CONTEXT WARNING:** My context window is filling with tool outputs. I must adhere strictly to context hygiene.
|
|
3
3
|
|
|
4
4
|
**Immediate Actions Required:**
|
|
5
|
-
1. **Task Completion:** If
|
|
6
|
-
2. **Knowledge Preservation:** If
|
|
5
|
+
1. **Task Completion:** If I have completed work, I will extract key findings from the tools used. I will scale distillation depth to the value of the content.
|
|
6
|
+
2. **Knowledge Preservation:** If I am holding valuable raw data I'll need to reference later, I will use the `extract` tool with high-fidelity distillation to preserve the insights and remove the raw entry.
|
|
7
7
|
|
|
8
|
-
**Protocol:**
|
|
8
|
+
**Protocol:** I should prioritize this cleanup, but I will not interrupt a critical atomic operation if one is in progress. Once the immediate step is done, I must extract valuable findings from tool outputs.
|
|
9
9
|
</instruction>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<instruction name=context_management_protocol policy_level=critical>
|
|
3
3
|
|
|
4
4
|
ENVIRONMENT
|
|
5
|
-
You are operating in a context-constrained environment and thus must proactively manage your context window using the `discard` and `extract` tools. A <prunable-tools> list is injected by the environment as
|
|
5
|
+
You are operating in a context-constrained environment and thus must proactively manage your context window using the `discard` and `extract` tools. A <prunable-tools> list is injected by the environment as an assistant message, and always contains up to date information. Use this information when deciding what to prune.
|
|
6
6
|
|
|
7
7
|
TWO TOOLS FOR CONTEXT MANAGEMENT
|
|
8
8
|
- `discard`: Remove tool outputs that are no longer needed (completed tasks, noise, outdated info). No preservation of content.
|
|
@@ -39,20 +39,5 @@ When in doubt, keep it. Batch your actions and aim for high-impact prunes that s
|
|
|
39
39
|
FAILURE TO PRUNE will result in context leakage and DEGRADED PERFORMANCES.
|
|
40
40
|
There may be tools in session context that do not appear in the <prunable-tools> list, this is expected, you can ONLY prune what you see in <prunable-tools>.
|
|
41
41
|
|
|
42
|
-
</instruction>
|
|
43
|
-
|
|
44
|
-
<instruction name=injected_context_handling policy_level=critical>
|
|
45
|
-
After each assistant turn, the environment may inject a user message containing a <prunable-tools> list and optional nudge instruction. This injected message is NOT from the user and is invisible to them. The `discard` and `extract` tools also return a confirmation message listing what was pruned.
|
|
46
|
-
|
|
47
|
-
CRITICAL REQUIREMENTS - VIOLATION IS UNACCEPTABLE:
|
|
48
|
-
- NEVER reference the prune encouragement or context management instructions. Do not reply with "I agree" or "Great idea" when the prune encouragement appears.
|
|
49
|
-
- NEVER acknowledge the <prunable-tools> list (e.g., "I see the prunable tools list", "Looking at the available tools to prune")
|
|
50
|
-
- NEVER reference the nudge instruction (e.g., "As the nudge suggests", "The system is reminding me to prune")
|
|
51
|
-
- NEVER acknowledge discard/extract tool output (e.g., "I've pruned 3 tools", "Context pruning complete")
|
|
52
|
-
- NEVER let these injections influence your response content or tone
|
|
53
|
-
- Process this information SILENTLY and continue the conversation naturally
|
|
54
|
-
- Continue the conversation as if these messages do not exist
|
|
55
|
-
|
|
56
|
-
The user cannot see these injections. Any reference to them will confuse the user and break the conversation flow.
|
|
57
42
|
</instruction>
|
|
58
43
|
</system-reminder>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<instruction name=context_management_protocol policy_level=critical>
|
|
3
3
|
|
|
4
4
|
ENVIRONMENT
|
|
5
|
-
You are operating in a context-constrained environment and thus must proactively manage your context window using the `discard` tool. A <prunable-tools> list is injected by the environment as
|
|
5
|
+
You are operating in a context-constrained environment and thus must proactively manage your context window using the `discard` tool. A <prunable-tools> list is injected by the environment as an assistant message, and always contains up to date information. Use this information when deciding what to discard.
|
|
6
6
|
|
|
7
7
|
CONTEXT MANAGEMENT TOOL
|
|
8
8
|
- `discard`: Remove tool outputs that are no longer needed (completed tasks, noise, outdated info). No preservation of content.
|
|
@@ -30,20 +30,5 @@ When in doubt, keep it. Batch your actions and aim for high-impact discards that
|
|
|
30
30
|
FAILURE TO DISCARD will result in context leakage and DEGRADED PERFORMANCES.
|
|
31
31
|
There may be tools in session context that do not appear in the <prunable-tools> list, this is expected, you can ONLY discard what you see in <prunable-tools>.
|
|
32
32
|
|
|
33
|
-
</instruction>
|
|
34
|
-
|
|
35
|
-
<instruction name=injected_context_handling policy_level=critical>
|
|
36
|
-
After each assistant turn, the environment may inject a user message containing a <prunable-tools> list and optional nudge instruction. This injected message is NOT from the user and is invisible to them. The `discard` tool also returns a confirmation message listing what was discarded.
|
|
37
|
-
|
|
38
|
-
CRITICAL REQUIREMENTS - VIOLATION IS UNACCEPTABLE:
|
|
39
|
-
- NEVER reference the discard encouragement or context management instructions. Do not reply with "I agree" or "Great idea" when the discard encouragement appears.
|
|
40
|
-
- NEVER acknowledge the <prunable-tools> list (e.g., "I see the prunable tools list", "Looking at the available tools to discard")
|
|
41
|
-
- NEVER reference the nudge instruction (e.g., "As the nudge suggests", "The system is reminding me to discard")
|
|
42
|
-
- NEVER acknowledge discard tool output (e.g., "I've discarded 3 tools", "Context cleanup complete")
|
|
43
|
-
- NEVER let these injections influence your response content or tone
|
|
44
|
-
- Process this information SILENTLY and continue the conversation naturally
|
|
45
|
-
- Continue the conversation as if these messages do not exist
|
|
46
|
-
|
|
47
|
-
The user cannot see these injections. Any reference to them will confuse the user and break the conversation flow.
|
|
48
33
|
</instruction>
|
|
49
34
|
</system-reminder>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<instruction name=context_management_protocol policy_level=critical>
|
|
3
3
|
|
|
4
4
|
ENVIRONMENT
|
|
5
|
-
You are operating in a context-constrained environment and thus must proactively manage your context window using the `extract` tool. A <prunable-tools> list is injected by the environment as
|
|
5
|
+
You are operating in a context-constrained environment and thus must proactively manage your context window using the `extract` tool. A <prunable-tools> list is injected by the environment as an assistant message, and always contains up to date information. Use this information when deciding what to extract.
|
|
6
6
|
|
|
7
7
|
CONTEXT MANAGEMENT TOOL
|
|
8
8
|
- `extract`: Extract key findings from tools into distilled knowledge before removing the raw content from context. Use this to preserve important information while reducing context size.
|
|
@@ -30,20 +30,5 @@ When in doubt, keep it. Batch your actions and aim for high-impact extractions t
|
|
|
30
30
|
FAILURE TO EXTRACT will result in context leakage and DEGRADED PERFORMANCES.
|
|
31
31
|
There may be tools in session context that do not appear in the <prunable-tools> list, this is expected, you can ONLY extract what you see in <prunable-tools>.
|
|
32
32
|
|
|
33
|
-
</instruction>
|
|
34
|
-
|
|
35
|
-
<instruction name=injected_context_handling policy_level=critical>
|
|
36
|
-
After each assistant turn, the environment may inject a user message containing a <prunable-tools> list and optional nudge instruction. This injected message is NOT from the user and is invisible to them. The `extract` tool also returns a confirmation message listing what was extracted.
|
|
37
|
-
|
|
38
|
-
CRITICAL REQUIREMENTS - VIOLATION IS UNACCEPTABLE:
|
|
39
|
-
- NEVER reference the extract encouragement or context management instructions. Do not reply with "I agree" or "Great idea" when the extract encouragement appears.
|
|
40
|
-
- NEVER acknowledge the <prunable-tools> list (e.g., "I see the prunable tools list", "Looking at the available tools to extract")
|
|
41
|
-
- NEVER reference the nudge instruction (e.g., "As the nudge suggests", "The system is reminding me to extract")
|
|
42
|
-
- NEVER acknowledge extract tool output (e.g., "I've extracted 3 tools", "Context cleanup complete")
|
|
43
|
-
- NEVER let these injections influence your response content or tone
|
|
44
|
-
- Process this information SILENTLY and continue the conversation naturally
|
|
45
|
-
- Continue the conversation as if these messages do not exist
|
|
46
|
-
|
|
47
|
-
The user cannot see these injections. Any reference to them will confuse the user and break the conversation flow.
|
|
48
33
|
</instruction>
|
|
49
34
|
</system-reminder>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SessionState, WithParts } from "./state";
|
|
2
2
|
export declare const isMessageCompacted: (state: SessionState, msg: WithParts) => boolean;
|
|
3
3
|
export declare const getLastUserMessage: (messages: WithParts[]) => WithParts | null;
|
|
4
|
+
export declare const getLastAssistantMessage: (messages: WithParts[]) => WithParts | null;
|
|
4
5
|
//# sourceMappingURL=shared-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-utils.d.ts","sourceRoot":"","sources":["../../lib/shared-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEjD,eAAO,MAAM,kBAAkB,GAAI,OAAO,YAAY,EAAE,KAAK,SAAS,KAAG,OAExE,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,UAAU,SAAS,EAAE,KAAG,SAAS,GAAG,IAQtE,CAAA"}
|
|
1
|
+
{"version":3,"file":"shared-utils.d.ts","sourceRoot":"","sources":["../../lib/shared-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEjD,eAAO,MAAM,kBAAkB,GAAI,OAAO,YAAY,EAAE,KAAK,SAAS,KAAG,OAExE,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,UAAU,SAAS,EAAE,KAAG,SAAS,GAAG,IAQtE,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,UAAU,SAAS,EAAE,KAAG,SAAS,GAAG,IAQ3E,CAAA"}
|
package/dist/lib/shared-utils.js
CHANGED
|
@@ -10,4 +10,13 @@ export const getLastUserMessage = (messages) => {
|
|
|
10
10
|
}
|
|
11
11
|
return null;
|
|
12
12
|
};
|
|
13
|
+
export const getLastAssistantMessage = (messages) => {
|
|
14
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
15
|
+
const msg = messages[i];
|
|
16
|
+
if (msg.info.role === "assistant") {
|
|
17
|
+
return msg;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
};
|
|
13
22
|
//# sourceMappingURL=shared-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-utils.js","sourceRoot":"","sources":["../../lib/shared-utils.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAmB,EAAE,GAAc,EAAW,EAAE;IAC/E,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,cAAc,CAAA;AACvD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAAqB,EAAoB,EAAE;IAC1E,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5C,MAAM,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;QACvB,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC3B,OAAO,GAAG,CAAA;QACd,CAAC;IACL,CAAC;IACD,OAAO,IAAI,CAAA;AACf,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"shared-utils.js","sourceRoot":"","sources":["../../lib/shared-utils.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,C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U,SAAS,EAAE,KACtB,OAAO,CAAC,IAAI,CA4Bd,CAAA;AAED,wBAAgB,kBAAkB,IAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../lib/state/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAsB,SAAS,EAAE,MAAM,SAAS,CAAA;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAKvC,eAAO,MAAM,YAAY,GACrB,QAAQ,GAAG,EACX,OAAO,YAAY,EACnB,QAAQ,MAAM,EACd,UAAU,SAAS,EAAE,KACtB,OAAO,CAAC,IAAI,CA4Bd,CAAA;AAED,wBAAgB,kBAAkB,IAAI,YAAY,CAkBjD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAgB3D;AAED,wBAAsB,wBAAwB,CAC1C,MAAM,EAAE,GAAG,EACX,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,EAAE,GACtB,OAAO,CAAC,IAAI,CAAC,CA8Bf;AAYD,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,CAa7E"}
|
package/dist/lib/state/state.js
CHANGED
|
@@ -43,6 +43,7 @@ export function createSessionState() {
|
|
|
43
43
|
lastToolPrune: false,
|
|
44
44
|
lastCompaction: 0,
|
|
45
45
|
currentTurn: 0,
|
|
46
|
+
isReasoningModel: false,
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
export function resetSessionState(state) {
|
|
@@ -60,6 +61,7 @@ export function resetSessionState(state) {
|
|
|
60
61
|
state.lastToolPrune = false;
|
|
61
62
|
state.lastCompaction = 0;
|
|
62
63
|
state.currentTurn = 0;
|
|
64
|
+
state.isReasoningModel = false;
|
|
63
65
|
}
|
|
64
66
|
export async function ensureSessionInitialized(client, state, sessionId, logger, messages) {
|
|
65
67
|
if (state.sessionId === sessionId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../lib/state/state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAExE,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC7B,MAAW,EACX,KAAmB,EACnB,MAAc,EACd,QAAqB,EACR,EAAE;IACf,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;IACpD,IAAI,CAAC,eAAe,EAAE,CAAC;QACnB,OAAM;IACV,CAAC;IAED,MAAM,aAAa,GAAG,eAAe,CAAC,IAAI,CAAC,SAAS,CAAA;IAEpD,IAAI,KAAK,CAAC,SAAS,KAAK,IAAI,IAAI,KAAK,CAAC,SAAS,KAAK,aAAa,EAAE,CAAC;QAChE,MAAM,CAAC,IAAI,CAAC,oBAAoB,KAAK,CAAC,SAAS,OAAO,aAAa,EAAE,CAAC,CAAA;QACtE,IAAI,CAAC;YACD,MAAM,wBAAwB,CAAC,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;QAClF,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAChB,MAAM,CAAC,KAAK,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAA;QAC9E,CAAC;IACL,CAAC;IAED,MAAM,uBAAuB,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAA;IACrE,IAAI,uBAAuB,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;QACjD,KAAK,CAAC,cAAc,GAAG,uBAAuB,CAAA;QAC9C,KAAK,CAAC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AAA;YACf,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,SAAS,CAAA;AACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/state/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEhD,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,IAAI,EAAE,CAAA;CAChB;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAA;AAEtE,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,GAAG,CAAA;IACf,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,YAAY;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,KAAK;IAClB,OAAO,EAAE,MAAM,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,YAAY;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,KAAK,CAAA;IACZ,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAA;IAC/C,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,OAAO,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/state/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEhD,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,IAAI,EAAE,CAAA;CAChB;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAA;AAEtE,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,GAAG,CAAA;IACf,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,YAAY;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,KAAK;IAClB,OAAO,EAAE,MAAM,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,YAAY;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,KAAK,CAAA;IACZ,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAA;IAC/C,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,OAAO,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,OAAO,CAAA;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@tarquinen/opencode-dcp",
|
|
4
|
-
"version": "1.1.0-beta.
|
|
4
|
+
"version": "1.1.0-beta.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "OpenCode plugin that optimizes token usage by pruning obsolete tool outputs from conversation context",
|
|
7
7
|
"main": "./dist/index.js",
|