@tarquinen/opencode-dcp 3.0.0 → 3.0.2

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.
Files changed (58) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +23 -10
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/commands/help.d.ts.map +1 -1
  6. package/dist/lib/commands/help.js +7 -6
  7. package/dist/lib/commands/help.js.map +1 -1
  8. package/dist/lib/hooks.d.ts +3 -2
  9. package/dist/lib/hooks.d.ts.map +1 -1
  10. package/dist/lib/hooks.js +15 -10
  11. package/dist/lib/hooks.js.map +1 -1
  12. package/dist/lib/host-permissions.d.ts +11 -0
  13. package/dist/lib/host-permissions.d.ts.map +1 -0
  14. package/dist/lib/host-permissions.js +58 -0
  15. package/dist/lib/host-permissions.js.map +1 -0
  16. package/dist/lib/messages/inject/inject.js +3 -3
  17. package/dist/lib/messages/inject/inject.js.map +1 -1
  18. package/dist/lib/messages/inject/utils.d.ts.map +1 -1
  19. package/dist/lib/messages/inject/utils.js +5 -5
  20. package/dist/lib/messages/inject/utils.js.map +1 -1
  21. package/dist/lib/messages/utils.d.ts.map +1 -1
  22. package/dist/lib/messages/utils.js +2 -6
  23. package/dist/lib/messages/utils.js.map +1 -1
  24. package/dist/lib/prompts/compress.d.ts +1 -1
  25. package/dist/lib/prompts/compress.d.ts.map +1 -1
  26. package/dist/lib/prompts/compress.js +9 -33
  27. package/dist/lib/prompts/compress.js.map +1 -1
  28. package/dist/lib/prompts/context-limit-nudge.d.ts +1 -1
  29. package/dist/lib/prompts/context-limit-nudge.d.ts.map +1 -1
  30. package/dist/lib/prompts/context-limit-nudge.js +2 -2
  31. package/dist/lib/prompts/index.d.ts.map +1 -1
  32. package/dist/lib/prompts/index.js +3 -13
  33. package/dist/lib/prompts/index.js.map +1 -1
  34. package/dist/lib/prompts/internal-overlays.d.ts +2 -2
  35. package/dist/lib/prompts/internal-overlays.d.ts.map +1 -1
  36. package/dist/lib/prompts/internal-overlays.js +4 -4
  37. package/dist/lib/prompts/iteration-nudge.d.ts +1 -1
  38. package/dist/lib/prompts/iteration-nudge.d.ts.map +1 -1
  39. package/dist/lib/prompts/iteration-nudge.js +2 -2
  40. package/dist/lib/prompts/store.d.ts.map +1 -1
  41. package/dist/lib/prompts/store.js +19 -38
  42. package/dist/lib/prompts/store.js.map +1 -1
  43. package/dist/lib/prompts/system.d.ts +1 -1
  44. package/dist/lib/prompts/system.d.ts.map +1 -1
  45. package/dist/lib/prompts/system.js +1 -25
  46. package/dist/lib/prompts/system.js.map +1 -1
  47. package/dist/lib/prompts/turn-nudge.d.ts +1 -1
  48. package/dist/lib/prompts/turn-nudge.js +2 -2
  49. package/dist/lib/shared-utils.d.ts +4 -0
  50. package/dist/lib/shared-utils.d.ts.map +1 -1
  51. package/dist/lib/shared-utils.js +8 -0
  52. package/dist/lib/shared-utils.js.map +1 -1
  53. package/dist/lib/state/state.d.ts.map +1 -1
  54. package/dist/lib/state/state.js +2 -0
  55. package/dist/lib/state/state.js.map +1 -1
  56. package/dist/lib/state/types.d.ts +1 -0
  57. package/dist/lib/state/types.d.ts.map +1 -1
  58. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- export declare const COMPRESS = "Your only tool for context management, use it to collapse a range in the conversation into a detailed summary\n\nTHE PHILOSOPHY OF COMPRESS\n`compress` transforms verbose conversation sequences into dense, high-fidelity summaries. This is not cleanup - it is crystallization. Your summary becomes the authoritative record of what transpired.\n\nThink of compression as phase transitions: raw exploration becomes refined understanding. The original context served its purpose; your summary now carries that understanding forward.\n\nOne method, many safe ranges:\n\n- short, closed ranges for disposable noise\n- short, closed ranges for resolved investigative slices\n- short, closed ranges for completed implementation chunks\n\nDefault to multiple short, bounded compressions. Prefer several safe range compressions over one large sweep whenever independent ranges are available.\n\nCADENCE, SIGNALS, AND LATENCY\nUse `compress` during work whenever a slice is summary-safe; do not wait for the user to send another message.\n\n- no fixed threshold forces compression\n- prioritize closedness and independence over raw range size\n- qualitative signals still matter most (stale exploration, noisy tool bursts, resolved branches)\n\nPREFER smaller, regular compressions OVER infrequent large compressions for better latency and better summary fidelity.\n\nTHE SUMMARY\nYour summary must be EXHAUSTIVE. Capture file paths, function signatures, decisions made, constraints discovered, key findings... EVERYTHING that maintains context integrity. This is not a brief note - it is an authoritative record so faithful that the original conversation adds no value.\n\nUSER INTENT FIDELITY\nWhen the compressed range includes user messages, preserve the user's intent with extra care. Do not change scope, constraints, priorities, acceptance criteria, or requested outcomes.\nDirectly quote user messages when they are short enough to include safely. Direct quotes are preferred when they best preserve exact meaning.\n\nCOMPRESSED BLOCK PLACEHOLDERS\nWhen the selected range includes previously compressed blocks, use this exact placeholder format when referencing one:\n\n- `(bN)`\n\nCompressed block sections in context are clearly marked with a header:\n\n- `[Compressed conversation section]`\n\nCompressed block IDs always use the `bN` form (never `mNNNN`) and are represented in the same XML metadata tag format.\n\nRules:\n\n- Include every required block placeholder exactly once.\n- Do not invent placeholders for blocks outside the selected range.\n- Treat `(bN)` placeholders as RESERVED TOKENS. Do not emit `(bN)` text anywhere except intentional placeholders.\n- If you need to mention a block in prose, use plain text like `compressed bN` (not as a placeholder).\n- Preflight check before finalizing: the set of `(bN)` placeholders in your summary must exactly match the required set, with no duplicates.\n\nThese placeholders are semantic references. They will be replaced with the full stored compressed block content when the tool processes your output.\n\nFLOW PRESERVATION WITH PLACEHOLDERS\nWhen you use compressed block placeholders, write the surrounding summary text so it still reads correctly AFTER placeholder expansion.\n\n- Treat each placeholder as a stand-in for a full conversation segment, not as a short label.\n- Ensure transitions before and after each placeholder preserve chronology and causality.\n- Do not write text that depends on the placeholder staying literal (for example, \"as noted in (b2)\").\n- Your final meaning must be coherent once each placeholder is replaced with its full compressed block content.\n\nYet be LEAN. Strip away the noise: failed attempts that led nowhere, verbose tool outputs, back-and-forth exploration. What remains should be pure signal - golden nuggets of detail that preserve full understanding with zero ambiguity.\n\nTHE WAYS OF COMPRESS\nCompress when a range is genuinely closed and the raw conversation has served its purpose:\n\nResearch concluded and findings are clear\nImplementation finished and verified\nExploration exhausted and patterns understood\n\nCompress smaller ranges when:\nYou need to discard dead-end noise without waiting for a whole chapter to close\nYou need to preserve key findings from a narrow slice while freeing context quickly\nYou can bound a stale range cleanly with injected IDs\n\nDo NOT compress when:\nYou may need exact code, error messages, or file contents from the range in the immediate next steps\nWork in that area is still active or likely to resume immediately\nYou cannot identify reliable boundaries yet\n\nBefore compressing, ask: _\"Is this range closed enough to become summary-only right now?\"_ Compression is irreversible. The summary replaces everything in the range.\n\nBOUNDARY IDS\nYou specify boundaries by ID\n\nUse the injected IDs visible in the conversation:\n\n- `mNNNN` IDs identify raw messages\n- `bN` IDs identify previously compressed blocks\n\nRules:\n\n- Pick `startId` and `endId` directly from injected IDs in context.\n- IDs must exist in the current visible context.\n- `startId` must appear before `endId`.\n- Prefer boundaries that produce short, closed ranges.\n\nID SOURCES\n\n- There is always an ID available for each message in XML tags like `<dcp-message-id>...</dcp-message-id>`.\n- Compressed blocks are addressable by `bN` IDs.\n\nTreat `<dcp-message-id>...</dcp-message-id>` as metadata only. It is not part of the tool result semantics.\n\nDo not invent IDs. Use only IDs that are present in context.\n\nPARALLEL COMPRESS EXECUTION\nWhen multiple independent ranges are ready and their boundaries do not overlap, launch MULTIPLE `compress` calls in parallel in a single response. This is the PREFERRED pattern over a single large-range compression when the work can be safely split. Run compression sequentially only when ranges overlap or when a later range depends on the result of an earlier compression.\n";
1
+ export declare const COMPRESS = "Collapse a range in the conversation into a detailed summary.\n\nTHE PHILOSOPHY OF COMPRESS\n`compress` transforms verbose conversation sequences into dense, high-fidelity summaries. This is not cleanup - it is crystallization. Your summary becomes the authoritative record of what transpired.\n\nThink of compression as phase transitions: raw exploration becomes refined understanding. The original context served its purpose; your summary now carries that understanding forward.\n\nTHE SUMMARY\nYour summary must be EXHAUSTIVE. Capture file paths, function signatures, decisions made, constraints discovered, key findings... EVERYTHING that maintains context integrity. This is not a brief note - it is an authoritative record so faithful that the original conversation adds no value.\n\nUSER INTENT FIDELITY\nWhen the compressed range includes user messages, preserve the user's intent with extra care. Do not change scope, constraints, priorities, acceptance criteria, or requested outcomes.\nDirectly quote user messages when they are short enough to include safely. Direct quotes are preferred when they best preserve exact meaning.\n\nYet be LEAN. Strip away the noise: failed attempts that led nowhere, verbose tool outputs, back-and-forth exploration. What remains should be pure signal - golden nuggets of detail that preserve full understanding with zero ambiguity.\n\nCOMPRESSED BLOCK PLACEHOLDERS\nWhen the selected range includes previously compressed blocks, use this exact placeholder format when referencing one:\n\n- `(bN)`\n\nCompressed block sections in context are clearly marked with a header:\n\n- `[Compressed conversation section]`\n\nCompressed block IDs always use the `bN` form (never `mNNNN`) and are represented in the same XML metadata tag format.\n\nRules:\n\n- Include every required block placeholder exactly once.\n- Do not invent placeholders for blocks outside the selected range.\n- Treat `(bN)` placeholders as RESERVED TOKENS. Do not emit `(bN)` text anywhere except intentional placeholders.\n- If you need to mention a block in prose, use plain text like `compressed bN` (not as a placeholder).\n- Preflight check before finalizing: the set of `(bN)` placeholders in your summary must exactly match the required set, with no duplicates.\n\nThese placeholders are semantic references. They will be replaced with the full stored compressed block content when the tool processes your output.\n\nFLOW PRESERVATION WITH PLACEHOLDERS\nWhen you use compressed block placeholders, write the surrounding summary text so it still reads correctly AFTER placeholder expansion.\n\n- Treat each placeholder as a stand-in for a full conversation segment, not as a short label.\n- Ensure transitions before and after each placeholder preserve chronology and causality.\n- Do not write text that depends on the placeholder staying literal (for example, \"as noted in `(b2)`\").\n- Your final meaning must be coherent once each placeholder is replaced with its full compressed block content.\n\nTHE WAYS OF COMPRESS\nCompress when a range is genuinely closed and the raw conversation has served its purpose:\n\nResearch concluded and findings are clear\nImplementation finished and verified\nExploration exhausted and patterns understood\n\nCompress smaller ranges when:\nYou need to discard dead-end noise without waiting for a whole chapter to close\nYou need to preserve key findings from a narrow slice while freeing context quickly\nYou can bound a stale range cleanly with injected IDs\n\nDo NOT compress when:\nYou may need exact code, error messages, or file contents from the range in the immediate next steps\nWork in that area is still active or likely to resume immediately\nYou cannot identify reliable boundaries yet\n\nBefore compressing, ask: _\"Is this range closed enough to become summary-only right now?\"_ Compression is irreversible. The summary replaces everything in the range.\n\nBOUNDARY IDS\nYou specify boundaries by ID using the injected IDs visible in the conversation:\n\n- `mNNNN` IDs identify raw messages\n- `bN` IDs identify previously compressed blocks\n\nEach message has an ID inside XML metadata tags like `<dcp-message-id>...</dcp-message-id>`.\nTreat these tags as boundary metadata only, not as tool result content.\n\nRules:\n\n- Pick `startId` and `endId` directly from injected IDs in context.\n- IDs must exist in the current visible context.\n- `startId` must appear before `endId`.\n- Prefer boundaries that produce short, closed ranges.\n- Do not invent IDs. Use only IDs that are present in context.\n\nPARALLEL COMPRESS EXECUTION\nWhen multiple independent ranges are ready and their boundaries do not overlap, launch MULTIPLE `compress` calls in parallel in a single response. This is the PREFERRED pattern over a single large-range compression when the work can be safely split. Run compression sequentially only when ranges overlap or when a later range depends on the result of an earlier compression.\n";
2
2
  //# sourceMappingURL=compress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compress.d.ts","sourceRoot":"","sources":["../../../lib/prompts/compress.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,w1LA2GpB,CAAA"}
1
+ {"version":3,"file":"compress.d.ts","sourceRoot":"","sources":["../../../lib/prompts/compress.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,23JAmFpB,CAAA"}
@@ -1,27 +1,10 @@
1
- export const COMPRESS = `Your only tool for context management, use it to collapse a range in the conversation into a detailed summary
1
+ export const COMPRESS = `Collapse a range in the conversation into a detailed summary.
2
2
 
3
3
  THE PHILOSOPHY OF COMPRESS
4
4
  \`compress\` transforms verbose conversation sequences into dense, high-fidelity summaries. This is not cleanup - it is crystallization. Your summary becomes the authoritative record of what transpired.
5
5
 
6
6
  Think of compression as phase transitions: raw exploration becomes refined understanding. The original context served its purpose; your summary now carries that understanding forward.
7
7
 
8
- One method, many safe ranges:
9
-
10
- - short, closed ranges for disposable noise
11
- - short, closed ranges for resolved investigative slices
12
- - short, closed ranges for completed implementation chunks
13
-
14
- Default to multiple short, bounded compressions. Prefer several safe range compressions over one large sweep whenever independent ranges are available.
15
-
16
- CADENCE, SIGNALS, AND LATENCY
17
- Use \`compress\` during work whenever a slice is summary-safe; do not wait for the user to send another message.
18
-
19
- - no fixed threshold forces compression
20
- - prioritize closedness and independence over raw range size
21
- - qualitative signals still matter most (stale exploration, noisy tool bursts, resolved branches)
22
-
23
- PREFER smaller, regular compressions OVER infrequent large compressions for better latency and better summary fidelity.
24
-
25
8
  THE SUMMARY
26
9
  Your summary must be EXHAUSTIVE. Capture file paths, function signatures, decisions made, constraints discovered, key findings... EVERYTHING that maintains context integrity. This is not a brief note - it is an authoritative record so faithful that the original conversation adds no value.
27
10
 
@@ -29,6 +12,8 @@ USER INTENT FIDELITY
29
12
  When the compressed range includes user messages, preserve the user's intent with extra care. Do not change scope, constraints, priorities, acceptance criteria, or requested outcomes.
30
13
  Directly quote user messages when they are short enough to include safely. Direct quotes are preferred when they best preserve exact meaning.
31
14
 
15
+ Yet be LEAN. Strip away the noise: failed attempts that led nowhere, verbose tool outputs, back-and-forth exploration. What remains should be pure signal - golden nuggets of detail that preserve full understanding with zero ambiguity.
16
+
32
17
  COMPRESSED BLOCK PLACEHOLDERS
33
18
  When the selected range includes previously compressed blocks, use this exact placeholder format when referencing one:
34
19
 
@@ -55,11 +40,9 @@ When you use compressed block placeholders, write the surrounding summary text s
55
40
 
56
41
  - Treat each placeholder as a stand-in for a full conversation segment, not as a short label.
57
42
  - Ensure transitions before and after each placeholder preserve chronology and causality.
58
- - Do not write text that depends on the placeholder staying literal (for example, "as noted in (b2)").
43
+ - Do not write text that depends on the placeholder staying literal (for example, "as noted in \`(b2)\`").
59
44
  - Your final meaning must be coherent once each placeholder is replaced with its full compressed block content.
60
45
 
61
- Yet be LEAN. Strip away the noise: failed attempts that led nowhere, verbose tool outputs, back-and-forth exploration. What remains should be pure signal - golden nuggets of detail that preserve full understanding with zero ambiguity.
62
-
63
46
  THE WAYS OF COMPRESS
64
47
  Compress when a range is genuinely closed and the raw conversation has served its purpose:
65
48
 
@@ -80,28 +63,21 @@ You cannot identify reliable boundaries yet
80
63
  Before compressing, ask: _"Is this range closed enough to become summary-only right now?"_ Compression is irreversible. The summary replaces everything in the range.
81
64
 
82
65
  BOUNDARY IDS
83
- You specify boundaries by ID
84
-
85
- Use the injected IDs visible in the conversation:
66
+ You specify boundaries by ID using the injected IDs visible in the conversation:
86
67
 
87
68
  - \`mNNNN\` IDs identify raw messages
88
69
  - \`bN\` IDs identify previously compressed blocks
89
70
 
71
+ Each message has an ID inside XML metadata tags like \`<dcp-message-id>...</dcp-message-id>\`.
72
+ Treat these tags as boundary metadata only, not as tool result content.
73
+
90
74
  Rules:
91
75
 
92
76
  - Pick \`startId\` and \`endId\` directly from injected IDs in context.
93
77
  - IDs must exist in the current visible context.
94
78
  - \`startId\` must appear before \`endId\`.
95
79
  - Prefer boundaries that produce short, closed ranges.
96
-
97
- ID SOURCES
98
-
99
- - There is always an ID available for each message in XML tags like \`<dcp-message-id>...</dcp-message-id>\`.
100
- - Compressed blocks are addressable by \`bN\` IDs.
101
-
102
- Treat \`<dcp-message-id>...</dcp-message-id>\` as metadata only. It is not part of the tool result semantics.
103
-
104
- Do not invent IDs. Use only IDs that are present in context.
80
+ - Do not invent IDs. Use only IDs that are present in context.
105
81
 
106
82
  PARALLEL COMPRESS EXECUTION
107
83
  When multiple independent ranges are ready and their boundaries do not overlap, launch MULTIPLE \`compress\` calls in parallel in a single response. This is the PREFERRED pattern over a single large-range compression when the work can be safely split. Run compression sequentially only when ranges overlap or when a later range depends on the result of an earlier compression.
@@ -1 +1 @@
1
- {"version":3,"file":"compress.js","sourceRoot":"","sources":["../../../lib/prompts/compress.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GvB,CAAA"}
1
+ {"version":3,"file":"compress.js","sourceRoot":"","sources":["../../../lib/prompts/compress.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmFvB,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const CONTEXT_LIMIT_NUDGE = "<instruction name=context_buildup_warning>\nCRITICAL WARNING: MAX CONTEXT LIMIT REACHED\n\nYou are at or beyond the configured max context threshold. This is an emergency context-recovery moment.\n\nYou MUST use the `compress` tool now. Do not continue normal exploration until compression is handled.\n\nIf you are in the middle of a critical atomic operation, finish that atomic step first, then compress immediately.\n\nRANGE STRATEGY (MANDATORY)\nPrioritize one large, closed, high-yield compression range first.\nThis overrides the normal preference for many small compressions.\nOnly split into multiple compressions if one large range would reduce summary quality or make boundary selection unsafe.\n\nRANGE SELECTION\nStart from older, resolved history and capture as much stale context as safely possible in one pass.\nAvoid the newest active working slice unless it is clearly closed.\nUse visible injected boundary IDs for compression (`mNNNN` for messages, `bN` for compressed blocks), and ensure `startId` appears before `endId`.\n\nSUMMARY REQUIREMENTS\nYour summary must cover all essential details from the selected range so work can continue without reopening raw messages.\nIf the compressed range includes user messages, preserve user intent exactly. Prefer direct quotes for short user messages to avoid semantic drift.\n</instruction>\n";
1
+ export declare const CONTEXT_LIMIT_NUDGE = "<dcp-system-reminder>\nCRITICAL WARNING: MAX CONTEXT LIMIT REACHED\n\nYou are at or beyond the configured max context threshold. This is an emergency context-recovery moment.\n\nYou MUST use the `compress` tool now. Do not continue normal exploration until compression is handled.\n\nIf you are in the middle of a critical atomic operation, finish that atomic step first, then compress immediately.\n\nRANGE STRATEGY (MANDATORY)\nPrioritize one large, closed, high-yield compression range first.\nThis overrides the normal preference for many small compressions.\nOnly split into multiple compressions if one large range would reduce summary quality or make boundary selection unsafe.\n\nRANGE SELECTION\nStart from older, resolved history and capture as much stale context as safely possible in one pass.\nAvoid the newest active working slice unless it is clearly closed.\nUse visible injected boundary IDs for compression (`mNNNN` for messages, `bN` for compressed blocks), and ensure `startId` appears before `endId`.\n\nSUMMARY REQUIREMENTS\nYour summary must cover all essential details from the selected range so work can continue without reopening raw messages.\nIf the compressed range includes user messages, preserve user intent exactly. Prefer direct quotes for short user messages to avoid semantic drift.\n</dcp-system-reminder>\n";
2
2
  //# sourceMappingURL=context-limit-nudge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-limit-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/context-limit-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,k1CAuB/B,CAAA"}
1
+ {"version":3,"file":"context-limit-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/context-limit-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,q0CAuB/B,CAAA"}
@@ -1,4 +1,4 @@
1
- export const CONTEXT_LIMIT_NUDGE = `<instruction name=context_buildup_warning>
1
+ export const CONTEXT_LIMIT_NUDGE = `<dcp-system-reminder>
2
2
  CRITICAL WARNING: MAX CONTEXT LIMIT REACHED
3
3
 
4
4
  You are at or beyond the configured max context threshold. This is an emergency context-recovery moment.
@@ -20,6 +20,6 @@ Use visible injected boundary IDs for compression (\`mNNNN\` for messages, \`bN\
20
20
  SUMMARY REQUIREMENTS
21
21
  Your summary must cover all essential details from the selected range so work can continue without reopening raw messages.
22
22
  If the compressed range includes user messages, preserve user intent exactly. Prefer direct quotes for short user messages to avoid semantic drift.
23
- </instruction>
23
+ </dcp-system-reminder>
24
24
  `;
25
25
  //# sourceMappingURL=context-limit-nudge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/prompts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAsB7C,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,cAAc,EACvB,MAAM,CAAC,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,OAAO,GACnB,MAAM,CAaR"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/prompts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAU7C,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,cAAc,EACvB,MAAM,CAAC,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,OAAO,GACnB,MAAM,CAaR"}
@@ -1,18 +1,8 @@
1
1
  function stripLegacyInlineComments(content) {
2
2
  return content.replace(/^[ \t]*\/\/.*?\/\/[ \t]*$/gm, "");
3
3
  }
4
- function injectIntoSystemReminder(systemPrompt, overlays) {
5
- if (overlays.length === 0) {
6
- return systemPrompt;
7
- }
8
- const closeTag = "</system-reminder>";
9
- const closeTagIndex = systemPrompt.lastIndexOf(closeTag);
10
- if (closeTagIndex === -1) {
11
- return [systemPrompt, ...overlays].join("\n\n");
12
- }
13
- const beforeClose = systemPrompt.slice(0, closeTagIndex).trimEnd();
14
- const afterClose = systemPrompt.slice(closeTagIndex);
15
- return `${beforeClose}\n\n${overlays.join("\n\n")}\n\n${afterClose}`;
4
+ function appendSystemOverlays(systemPrompt, overlays) {
5
+ return [systemPrompt, ...overlays].filter(Boolean).join("\n\n");
16
6
  }
17
7
  export function renderSystemPrompt(prompts, manual, subagent) {
18
8
  const overlays = [];
@@ -23,7 +13,7 @@ export function renderSystemPrompt(prompts, manual, subagent) {
23
13
  overlays.push(prompts.subagentOverlay.trim());
24
14
  }
25
15
  const strippedSystem = stripLegacyInlineComments(prompts.system).trim();
26
- const withOverlays = injectIntoSystemReminder(strippedSystem, overlays);
16
+ const withOverlays = appendSystemOverlays(strippedSystem, overlays);
27
17
  return withOverlays.replace(/\n([ \t]*\n)+/g, "\n\n").trim();
28
18
  }
29
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/prompts/index.ts"],"names":[],"mappings":"AAEA,SAAS,yBAAyB,CAAC,OAAe;IAC9C,OAAO,OAAO,CAAC,OAAO,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAA;AAC7D,CAAC;AAED,SAAS,wBAAwB,CAAC,YAAoB,EAAE,QAAkB;IACtE,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,YAAY,CAAA;IACvB,CAAC;IAED,MAAM,QAAQ,GAAG,oBAAoB,CAAA;IACrC,MAAM,aAAa,GAAG,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IACxD,IAAI,aAAa,KAAK,CAAC,CAAC,EAAE,CAAC;QACvB,OAAO,CAAC,YAAY,EAAE,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACnD,CAAC;IAED,MAAM,WAAW,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,OAAO,EAAE,CAAA;IAClE,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;IACpD,OAAO,GAAG,WAAW,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,UAAU,EAAE,CAAA;AACxE,CAAC;AAED,MAAM,UAAU,kBAAkB,CAC9B,OAAuB,EACvB,MAAgB,EAChB,QAAkB;IAElB,MAAM,QAAQ,GAAa,EAAE,CAAA;IAC7B,IAAI,MAAM,EAAE,CAAC;QACT,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,CAAA;IAC/C,CAAC;IAED,IAAI,QAAQ,EAAE,CAAC;QACX,QAAQ,CAAC,IAAI,C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MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;AAChE,CAAC"}
@@ -1,5 +1,5 @@
1
- export declare const MANUAL_MODE_SYSTEM_OVERLAY = "<instruction name=manual_mode policy_level=critical>\nManual mode is enabled. Do NOT use compress unless the user has explicitly triggered it through a manual marker.\n\nOnly use the compress tool after seeing `<compress triggered manually>` in the current user instruction context.\n\nIssue exactly ONE compress call per manual trigger. Do NOT launch multiple compress calls in parallel. Each trigger grants a single compression; after it completes, wait for the next trigger.\n\nAfter completing a manually triggered context-management action, STOP IMMEDIATELY. Do NOT continue with any task execution. End your response right after the tool use completes and wait for the next user input.\n</instruction>\n";
2
- export declare const SUBAGENT_SYSTEM_OVERLAY = "<instruction name=subagent_prompt_safety policy_level=critical>\nYou are operating in a subagent environment.\n\nThe initial subagent instruction is imperative and must be followed exactly.\nIt is the only user message intentionally not assigned a message ID, and therefore is not eligible for compression.\nAll subsequent messages in the session will have IDs.\n</instruction>\n";
1
+ export declare const MANUAL_MODE_SYSTEM_OVERLAY = "<dcp-system-reminder>\nManual mode is enabled. Do NOT use compress unless the user has explicitly triggered it through a manual marker.\n\nOnly use the compress tool after seeing `<compress triggered manually>` in the current user instruction context.\n\nIssue exactly ONE compress call per manual trigger. Do NOT launch multiple compress calls in parallel. Each trigger grants a single compression; after it completes, wait for the next trigger.\n\nAfter completing a manually triggered context-management action, STOP IMMEDIATELY. Do NOT continue with any task execution. End your response right after the tool use completes and wait for the next user input.\n</dcp-system-reminder>\n";
2
+ export declare const SUBAGENT_SYSTEM_OVERLAY = "<dcp-system-reminder>\nYou are operating in a subagent environment.\n\nThe initial subagent instruction is imperative and must be followed exactly.\nIt is the only user message intentionally not assigned a message ID, and therefore is not eligible for compression.\nAll subsequent messages in the session will have IDs.\n</dcp-system-reminder>\n";
3
3
  export declare const NESTED_FORMAT_OVERLAY = "\nTHE FORMAT OF COMPRESS\n\n```\n{\n topic: string, // Short label (3-5 words) - e.g., \"Auth System Exploration\"\n content: {\n startId: string, // Boundary ID at range start: mNNNN or bN\n endId: string, // Boundary ID at range end: mNNNN or bN\n summary: string // Complete technical summary replacing all content in range\n }\n}\n```";
4
4
  export declare const FLAT_FORMAT_OVERLAY = "\nTHE FORMAT OF COMPRESS\n\n```\n{\n topic: string, // Short label (3-5 words) - e.g., \"Auth System Exploration\"\n startId: string, // Boundary ID at range start: mNNNN or bN\n endId: string, // Boundary ID at range end: mNNNN or bN\n summary: string // Complete technical summary replacing all content in range\n}\n```";
5
5
  //# sourceMappingURL=internal-overlays.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal-overlays.d.ts","sourceRoot":"","sources":["../../../lib/prompts/internal-overlays.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,0sBAStC,CAAA;AAED,eAAO,MAAM,uBAAuB,gYAOnC,CAAA;AAED,eAAO,MAAM,qBAAqB,kYAY3B,CAAA;AAEP,eAAO,MAAM,mBAAmB,+WAUzB,CAAA"}
1
+ {"version":3,"file":"internal-overlays.d.ts","sourceRoot":"","sources":["../../../lib/prompts/internal-overlays.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,mrBAStC,CAAA;AAED,eAAO,MAAM,uBAAuB,8VAOnC,CAAA;AAED,eAAO,MAAM,qBAAqB,kYAY3B,CAAA;AAEP,eAAO,MAAM,mBAAmB,+WAUzB,CAAA"}
@@ -1,4 +1,4 @@
1
- export const MANUAL_MODE_SYSTEM_OVERLAY = `<instruction name=manual_mode policy_level=critical>
1
+ export const MANUAL_MODE_SYSTEM_OVERLAY = `<dcp-system-reminder>
2
2
  Manual mode is enabled. Do NOT use compress unless the user has explicitly triggered it through a manual marker.
3
3
 
4
4
  Only use the compress tool after seeing \`<compress triggered manually>\` in the current user instruction context.
@@ -6,15 +6,15 @@ Only use the compress tool after seeing \`<compress triggered manually>\` in the
6
6
  Issue exactly ONE compress call per manual trigger. Do NOT launch multiple compress calls in parallel. Each trigger grants a single compression; after it completes, wait for the next trigger.
7
7
 
8
8
  After completing a manually triggered context-management action, STOP IMMEDIATELY. Do NOT continue with any task execution. End your response right after the tool use completes and wait for the next user input.
9
- </instruction>
9
+ </dcp-system-reminder>
10
10
  `;
11
- export const SUBAGENT_SYSTEM_OVERLAY = `<instruction name=subagent_prompt_safety policy_level=critical>
11
+ export const SUBAGENT_SYSTEM_OVERLAY = `<dcp-system-reminder>
12
12
  You are operating in a subagent environment.
13
13
 
14
14
  The initial subagent instruction is imperative and must be followed exactly.
15
15
  It is the only user message intentionally not assigned a message ID, and therefore is not eligible for compression.
16
16
  All subsequent messages in the session will have IDs.
17
- </instruction>
17
+ </dcp-system-reminder>
18
18
  `;
19
19
  export const NESTED_FORMAT_OVERLAY = `
20
20
  THE FORMAT OF COMPRESS
@@ -1,2 +1,2 @@
1
- export declare const ITERATION_NUDGE = "<instruction name=iteration_nudge>\nYou've been iterating for a while after the last user message.\n\nIf there is a closed portion that is unlikely to be referenced immediately (for example, finished research before implementation), use the compress tool on it now.\n\nPrefer multiple short, closed ranges over one large range when several independent slices are ready.\n</instruction>\n";
1
+ export declare const ITERATION_NUDGE = "<dcp-system-reminder>\nYou've been iterating for a while after the last user message.\n\nIf there is a closed portion that is unlikely to be referenced immediately (for example, finished research before implementation), use the compress tool on it now.\n\nPrefer multiple short, closed ranges over one large range when several independent slices are ready.\n</dcp-system-reminder>\n";
2
2
  //# sourceMappingURL=iteration-nudge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"iteration-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/iteration-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,wYAO3B,CAAA"}
1
+ {"version":3,"file":"iteration-nudge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/iteration-nudge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,mYAO3B,CAAA"}
@@ -1,9 +1,9 @@
1
- export const ITERATION_NUDGE = `<instruction name=iteration_nudge>
1
+ export const ITERATION_NUDGE = `<dcp-system-reminder>
2
2
  You've been iterating for a while after the last user message.
3
3
 
4
4
  If there is a closed portion that is unlikely to be referenced immediately (for example, finished research before implementation), use the compress tool on it now.
5
5
 
6
6
  Prefer multiple short, closed ranges over one large range when several independent slices are ready.
7
- </instruction>
7
+ </dcp-system-reminder>
8
8
  `;
9
9
  //# sourceMappingURL=iteration-nudge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../lib/prompts/store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAQvC,MAAM,MAAM,SAAS,GACf,QAAQ,GACR,UAAU,GACV,qBAAqB,GACrB,YAAY,GACZ,iBAAiB,CAAA;AA8BvB,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;CAC1B;AAgDD,eAAO,MAAM,WAAW,EAAE,SAAS,EAMlC,CAAA;AAgOD,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAa;IACnC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAC9C,OAAO,CAAC,cAAc,CAAgB;gBAE1B,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,oBAAoB,UAAQ;IAYlF,iBAAiB,IAAI,cAAc;IAInC,MAAM,IAAI,IAAI;IAiDd,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,kBAAkB;CAkD7B"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../lib/prompts/store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAQvC,MAAM,MAAM,SAAS,GACf,QAAQ,GACR,UAAU,GACV,qBAAqB,GACrB,YAAY,GACZ,iBAAiB,CAAA;AA6BvB,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;CAC1B;AA6CD,eAAO,MAAM,WAAW,EAAE,SAAS,EAMlC,CAAA;AA2MD,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAa;IACnC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAC9C,OAAO,CAAC,cAAc,CAAgB;gBAE1B,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,oBAAoB,UAAQ;IAYlF,iBAAiB,IAAI,cAAc;IAInC,MAAM,IAAI,IAAI;IAiDd,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,kBAAkB;CAkD7B"}
@@ -31,7 +31,6 @@ const PROMPT_DEFINITIONS = [
31
31
  description: "High-priority nudge when context is over max threshold",
32
32
  usage: "Injected when context usage is beyond configured max limits",
33
33
  runtimeField: "contextLimitNudge",
34
- instructionName: "context_buildup_warning",
35
34
  },
36
35
  {
37
36
  key: "turn-nudge",
@@ -40,7 +39,6 @@ const PROMPT_DEFINITIONS = [
40
39
  description: "Nudge to compress closed ranges at turn boundaries",
41
40
  usage: "Injected when context is between min and max limits at a new user turn",
42
41
  runtimeField: "turnNudge",
43
- instructionName: "turn_nudge",
44
42
  },
45
43
  {
46
44
  key: "iteration-nudge",
@@ -49,7 +47,6 @@ const PROMPT_DEFINITIONS = [
49
47
  description: "Nudge after many iterations without user input",
50
48
  usage: "Injected when iteration threshold is crossed",
51
49
  runtimeField: "iterationNudge",
52
- instructionName: "iteration_nudge",
53
50
  },
54
51
  ];
55
52
  export const PROMPT_KEYS = [
@@ -61,7 +58,7 @@ export const PROMPT_KEYS = [
61
58
  ];
62
59
  const HTML_COMMENT_REGEX = /<!--[\s\S]*?-->/g;
63
60
  const LEGACY_INLINE_COMMENT_LINE_REGEX = /^[ \t]*\/\/.*?\/\/[ \t]*$/gm;
64
- const INSTRUCTION_TAG_REGEX = /^\s*<instruction\b[^>]*>[\s\S]*<\/instruction>\s*$/i;
61
+ const DCP_SYSTEM_REMINDER_TAG_REGEX = /^\s*<dcp-system-reminder\b[^>]*>[\s\S]*<\/dcp-system-reminder>\s*$/i;
65
62
  const DEFAULTS_README_FILE = "README.md";
66
63
  const BUNDLED_EDITABLE_PROMPTS = {
67
64
  system: SYSTEM_PROMPT,
@@ -133,23 +130,22 @@ function hasTagPairMismatch(content, tagName) {
133
130
  const closeRegex = new RegExp(`<\/${tagName}>`, "i");
134
131
  return openRegex.test(content) !== closeRegex.test(content);
135
132
  }
136
- function unwrapTagIfWrapped(content, tagName) {
137
- const regex = new RegExp(`^\\s*<${tagName}\\b[^>]*>\\s*([\\s\\S]*?)\\s*<\\/${tagName}>\\s*$`, "i");
138
- const match = content.match(regex);
139
- if (!match) {
140
- return content.trim();
133
+ function unwrapDcpTagIfWrapped(content) {
134
+ const trimmed = content.trim();
135
+ if (DCP_SYSTEM_REMINDER_TAG_REGEX.test(trimmed)) {
136
+ return trimmed
137
+ .replace(/^\s*<dcp-system-reminder\b[^>]*>\s*/i, "")
138
+ .replace(/\s*<\/dcp-system-reminder>\s*$/i, "")
139
+ .trim();
141
140
  }
142
- return match[1].trim();
141
+ return trimmed;
143
142
  }
144
- function unwrapInstructionIfWrapped(content) {
145
- const trimmed = content.trim();
146
- if (!INSTRUCTION_TAG_REGEX.test(trimmed)) {
147
- return trimmed;
143
+ function normalizeReminderPromptContent(content) {
144
+ const normalized = content.trim();
145
+ if (hasTagPairMismatch(normalized, "dcp-system-reminder")) {
146
+ return "";
148
147
  }
149
- return trimmed
150
- .replace(/^\s*<instruction\b[^>]*>\s*/i, "")
151
- .replace(/\s*<\/instruction>\s*$/i, "")
152
- .trim();
148
+ return unwrapDcpTagIfWrapped(normalized);
153
149
  }
154
150
  function stripPromptComments(content) {
155
151
  return content
@@ -166,21 +162,9 @@ function toEditablePromptText(definition, rawContent) {
166
162
  if (definition.key === "system") {
167
163
  normalized = stripConditionalTag(normalized, "manual");
168
164
  normalized = stripConditionalTag(normalized, "subagent");
169
- if (hasTagPairMismatch(normalized, "system-reminder")) {
170
- return "";
171
- }
172
- normalized = unwrapTagIfWrapped(normalized, "system-reminder");
173
- if (hasTagPairMismatch(normalized, "instruction")) {
174
- return "";
175
- }
176
- normalized = unwrapInstructionIfWrapped(normalized);
177
- return normalized.trim();
178
165
  }
179
- if (definition.instructionName) {
180
- if (hasTagPairMismatch(normalized, "instruction")) {
181
- return "";
182
- }
183
- normalized = unwrapInstructionIfWrapped(normalized);
166
+ if (definition.key !== "compress") {
167
+ normalized = normalizeReminderPromptContent(normalized);
184
168
  }
185
169
  return normalized.trim();
186
170
  }
@@ -189,13 +173,10 @@ function wrapRuntimePromptContent(definition, editableText) {
189
173
  if (!trimmed) {
190
174
  return "";
191
175
  }
192
- if (definition.key === "system") {
193
- return `<system-reminder>\n<instruction name=compress_tool attention_level=high>\n${trimmed}\n</instruction>\n</system-reminder>`;
194
- }
195
- if (definition.instructionName) {
196
- return `<instruction name=${definition.instructionName}>\n${trimmed}\n</instruction>`;
176
+ if (definition.key === "compress") {
177
+ return trimmed;
197
178
  }
198
- return trimmed;
179
+ return `<dcp-system-reminder>\n${trimmed}\n</dcp-system-reminder>`;
199
180
  }
200
181
  function buildDefaultPromptFileContent(bundledEditableText) {
201
182
  return `${bundledEditableText.trim()}\n`;
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../lib/prompts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AAQ,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;YACpD,CAAC;YAAC,MAAM,CAAC;gBACL,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qCAAqC,EAAE;oBACpD,GAAG,EAAE,UAAU,CAAC,GAAG;oBACnB,IAAI,EAAE,QAAQ;iBACjB,CAAC,CAAA;YACN,CAAC;QACL,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,oBAAoB,CAAC,CAAA;QACrE,MAAM,aAAa,GAAG,0BAA0B,EAAE,CAAA;QAElD,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAA;YAC7C,IAAI,QAAQ,KAAK,aAAa,EAAE,CAAC;gBAC7B,aAAa,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;YACrD,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACL,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iCAAiC,EAAE;gBAChD,IAAI,EAAE,UAAU;aACnB,CAAC,CAAA;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -1,2 +1,2 @@
1
- export declare const SYSTEM = "<system-reminder>\n<instruction name=compress_tool attention_level=high>\nYou operate in a context-constrained environment. Manage context continuously to avoid buildup and preserve retrieval quality. Efficient context management is paramount for your agentic performance.\n\nThe ONLY tool you have for context management is `compress`. It replaces a contiguous portion of the conversation (inclusive) with a technical summary you produce.\n\nOPERATING STANCE\nPrefer short, closed, summary-safe ranges.\nWhen multiple independent stale ranges exist, prefer several short compressions (in parallel when possible) over one large-range compression.\n\nUse `compress` as steady housekeeping while you work.\n\nCADENCE, SIGNALS, AND LATENCY\n\n- No fixed threshold mandates compression\n- Prioritize closedness and independence over raw range size\n- Prefer smaller, regular compressions over infrequent massive compressions for better latency and summary quality\n- When multiple independent stale ranges are ready, batch compressions in parallel\n\nBOUNDARY MATCHING\n`compress` uses inclusive ID boundaries via `startId` and `endId`. IDs are injected in context as message refs (`mNNNN`) and compressed block refs (`bN`).\n\nEach message has an ID inside XML metadata tags like `<dcp-message-id>...</dcp-message-id>`.\nTreat these tags as boundary metadata only, not as tool result content.\n\nOnly choose IDs currently visible in context. Do not invent IDs.\n\nRESPECT THE CHRONOLOGY OF THE RANGE\n`startId` MUST refer to an item above/before `endId`\n`endId` MUST refer to an item below/after `startId`\nAlways provide boundaries via the tool schema fields `startId` and `endId`.\n\nTHE SUMMARY STANDARD\nYour summary MUST be technical and specific enough to preserve FULL understanding of what transpired, such that NO ambiguity remains about what asked, found, planned, done, or decided - yet noise free\n\nWhen compressing ranges that include user messages, preserve user intent faithfully. Do not reinterpret or redirect the request. Directly quote short user messages when that is the most reliable way to preserve exact meaning.\n\nPreserve key details: file paths, symbols, signatures, constraints, decisions, outcomes, commands, etc.. in order to produce a high fidelity, authoritative technical record\n\nDO NOT COMPRESS IF\n\n- raw context is still relevant and needed for edits or precise references\n- the task in the target range is still actively in progress\n\nEvaluate conversation signal-to-noise REGULARLY. Use `compress` deliberately with quality-first summaries. Prefer multiple short, independent range compressions before considering broader ranges, and prioritize ranges intelligently to maintain a high-signal context window that supports your agency\n\nIt is of your responsibility to keep a sharp, high-quality context window for optimal performance\n</instruction>\n\n</system-reminder>\n";
1
+ export declare const SYSTEM = "\nYou operate in a context-constrained environment. Manage context continuously to avoid buildup and preserve retrieval quality. Efficient context management is paramount for your agentic performance.\n\nThe ONLY tool you have for context management is `compress`. It replaces a contiguous portion of the conversation (inclusive) with a technical summary you produce.\n\nOPERATING STANCE\nPrefer short, closed, summary-safe ranges.\nWhen multiple independent stale ranges exist, prefer several short compressions (in parallel when possible) over one large-range compression.\n\nUse `compress` as steady housekeeping while you work.\n\nCADENCE, SIGNALS, AND LATENCY\n\n- No fixed threshold mandates compression\n- Prioritize closedness and independence over raw range size\n- Prefer smaller, regular compressions over infrequent massive compressions for better latency and summary quality\n- When multiple independent stale ranges are ready, batch compressions in parallel\n\nDO NOT COMPRESS IF\n\n- raw context is still relevant and needed for edits or precise references\n- the task in the target range is still actively in progress\n\nEvaluate conversation signal-to-noise REGULARLY. Use `compress` deliberately with quality-first summaries. Prefer multiple short, independent range compressions before considering broader ranges, and prioritize ranges intelligently to maintain a high-signal context window that supports your agency\n\nIt is of your responsibility to keep a sharp, high-quality context window for optimal performance\n";
2
2
  //# sourceMappingURL=system.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../lib/prompts/system.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,y2FAkDlB,CAAA"}
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../lib/prompts/system.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,ugDA0BlB,CAAA"}
@@ -1,5 +1,4 @@
1
- export const SYSTEM = `<system-reminder>
2
- <instruction name=compress_tool attention_level=high>
1
+ export const SYSTEM = `
3
2
  You operate in a context-constrained environment. Manage context continuously to avoid buildup and preserve retrieval quality. Efficient context management is paramount for your agentic performance.
4
3
 
5
4
  The ONLY tool you have for context management is \`compress\`. It replaces a contiguous portion of the conversation (inclusive) with a technical summary you produce.
@@ -17,26 +16,6 @@ CADENCE, SIGNALS, AND LATENCY
17
16
  - Prefer smaller, regular compressions over infrequent massive compressions for better latency and summary quality
18
17
  - When multiple independent stale ranges are ready, batch compressions in parallel
19
18
 
20
- BOUNDARY MATCHING
21
- \`compress\` uses inclusive ID boundaries via \`startId\` and \`endId\`. IDs are injected in context as message refs (\`mNNNN\`) and compressed block refs (\`bN\`).
22
-
23
- Each message has an ID inside XML metadata tags like \`<dcp-message-id>...</dcp-message-id>\`.
24
- Treat these tags as boundary metadata only, not as tool result content.
25
-
26
- Only choose IDs currently visible in context. Do not invent IDs.
27
-
28
- RESPECT THE CHRONOLOGY OF THE RANGE
29
- \`startId\` MUST refer to an item above/before \`endId\`
30
- \`endId\` MUST refer to an item below/after \`startId\`
31
- Always provide boundaries via the tool schema fields \`startId\` and \`endId\`.
32
-
33
- THE SUMMARY STANDARD
34
- Your summary MUST be technical and specific enough to preserve FULL understanding of what transpired, such that NO ambiguity remains about what asked, found, planned, done, or decided - yet noise free
35
-
36
- When compressing ranges that include user messages, preserve user intent faithfully. Do not reinterpret or redirect the request. Directly quote short user messages when that is the most reliable way to preserve exact meaning.
37
-
38
- Preserve key details: file paths, symbols, signatures, constraints, decisions, outcomes, commands, etc.. in order to produce a high fidelity, authoritative technical record
39
-
40
19
  DO NOT COMPRESS IF
41
20
 
42
21
  - raw context is still relevant and needed for edits or precise references
@@ -45,8 +24,5 @@ DO NOT COMPRESS IF
45
24
  Evaluate conversation signal-to-noise REGULARLY. Use \`compress\` deliberately with quality-first summaries. Prefer multiple short, independent range compressions before considering broader ranges, and prioritize ranges intelligently to maintain a high-signal context window that supports your agency
46
25
 
47
26
  It is of your responsibility to keep a sharp, high-quality context window for optimal performance
48
- </instruction>
49
-
50
- </system-reminder>
51
27
  `;
52
28
  //# sourceMappingURL=system.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"system.js","sourceRoot":"","sources":["../../../lib/prompts/system.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDrB,CAAA"}
1
+ {"version":3,"file":"system.js","sourceRoot":"","sources":["../../../lib/prompts/system.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BrB,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const TURN_NUDGE = "<instruction name=turn_nudge>\nEvaluate the conversation for compressible ranges.\n\nIf any range is cleanly closed and unlikely to be needed again, use the compress tool on it.\nIf direction has shifted, compress earlier ranges that are now less relevant.\n\nPrefer small, closed-range compressions over one broad compression.\nThe goal is to filter noise and distill key information so context accumulation stays under control.\nKeep active context uncompressed.\n</instruction>\n";
1
+ export declare const TURN_NUDGE = "<dcp-system-reminder>\nEvaluate the conversation for compressible ranges.\n\nIf any range is cleanly closed and unlikely to be needed again, use the compress tool on it.\nIf direction has shifted, compress earlier ranges that are now less relevant.\n\nPrefer small, closed-range compressions over one broad compression.\nThe goal is to filter noise and distill key information so context accumulation stays under control.\nKeep active context uncompressed.\n</dcp-system-reminder>\n";
2
2
  //# sourceMappingURL=turn-nudge.d.ts.map
@@ -1,4 +1,4 @@
1
- export const TURN_NUDGE = `<instruction name=turn_nudge>
1
+ export const TURN_NUDGE = `<dcp-system-reminder>
2
2
  Evaluate the conversation for compressible ranges.
3
3
 
4
4
  If any range is cleanly closed and unlikely to be needed again, use the compress tool on it.
@@ -7,6 +7,6 @@ If direction has shifted, compress earlier ranges that are now less relevant.
7
7
  Prefer small, closed-range compressions over one broad compression.
8
8
  The goal is to filter noise and distill key information so context accumulation stays under control.
9
9
  Keep active context uncompressed.
10
- </instruction>
10
+ </dcp-system-reminder>
11
11
  `;
12
12
  //# sourceMappingURL=turn-nudge.js.map
@@ -1,4 +1,8 @@
1
+ import type { PluginConfig } from "./config";
2
+ import { type HostPermissionSnapshot } from "./host-permissions";
1
3
  import { SessionState, WithParts } from "./state";
2
4
  export declare const isMessageCompacted: (state: SessionState, msg: WithParts) => boolean;
3
5
  export declare const getLastUserMessage: (messages: WithParts[], startIndex?: number) => WithParts | null;
6
+ export declare const compressPermission: (state: SessionState, config: PluginConfig) => "ask" | "allow" | "deny";
7
+ export declare const syncCompressPermissionState: (state: SessionState, config: PluginConfig, hostPermissions: HostPermissionSnapshot, messages: WithParts[]) => void;
4
8
  //# 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;AAGjD,eAAO,MAAM,kBAAkB,GAAI,OAAO,YAAY,EAAE,KAAK,SAAS,KAAG,OASxE,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC3B,UAAU,SAAS,EAAE,EACrB,aAAa,MAAM,KACpB,SAAS,GAAG,IASd,CAAA"}
1
+ {"version":3,"file":"shared-utils.d.ts","sourceRoot":"","sources":["../../lib/shared-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,KAAK,sBAAsB,EAAsC,MAAM,oBAAoB,CAAA;AACpG,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGjD,eAAO,MAAM,kBAAkB,GAAI,OAAO,YAAY,EAAE,KAAK,SAAS,KAAG,OASxE,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC3B,UAAU,SAAS,EAAE,EACrB,aAAa,MAAM,KACpB,SAAS,GAAG,IASd,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC3B,OAAO,YAAY,EACnB,QAAQ,YAAY,KACrB,KAAK,GAAG,OAAO,GAAG,MAEpB,CAAA;AAED,eAAO,MAAM,2BAA2B,GACpC,OAAO,YAAY,EACnB,QAAQ,YAAY,EACpB,iBAAiB,sBAAsB,EACvC,UAAU,SAAS,EAAE,KACtB,IAOF,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { resolveEffectiveCompressPermission } from "./host-permissions";
1
2
  import { isIgnoredUserMessage } from "./messages/utils";
2
3
  export const isMessageCompacted = (state, msg) => {
3
4
  if (msg.info.time.created < state.lastCompaction) {
@@ -19,4 +20,11 @@ export const getLastUserMessage = (messages, startIndex) => {
19
20
  }
20
21
  return null;
21
22
  };
23
+ export const compressPermission = (state, config) => {
24
+ return state.compressPermission ?? config.compress.permission;
25
+ };
26
+ export const syncCompressPermissionState = (state, config, hostPermissions, messages) => {
27
+ const activeAgent = getLastUserMessage(messages)?.info.agent;
28
+ state.compressPermission = resolveEffectiveCompressPermission(config.compress.permission, hostPermissions, activeAgent);
29
+ };
22
30
  //# sourceMappingURL=shared-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared-utils.js","sourceRoot":"","sources":["../../lib/shared-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAmB,EAAE,GAAc,EAAW,EAAE;IAC/E,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAA;IACf,CAAC;IACD,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACpE,IAAI,UAAU,IAAI,UAAU,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrD,OAAO,IAAI,CAAA;IACf,CAAC;IACD,OAAO,KAAK,CAAA;AAChB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAC9B,QAAqB,EACrB,UAAmB,EACH,EAAE;IAClB,MAAM,KAAK,GAAG,UAAU,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAA;IAC/C,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;QACvB,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC;YACzD,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":"AACA,OAAO,EAA+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A;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACvC,KAAmB,EACnB,MAAoB,EACpB,eAAuC,EACvC,QAAqB,EACjB,EAAE;IACN,MAAM,WAAW,GAAG,kBAAkB,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,KAAK,CAAA;IAC5D,KAAK,CAAC,kBAAkB,GAAG,kCAAkC,CACzD,MAAM,CAAC,QAAQ,CAAC,UAAU,EAC1B,eAAe,EACf,WAAW,CACd,CAAA;AACL,CAAC,CAAA"}
@@ -1 +1 @@
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;AAcvC,eAAO,MAAM,YAAY,GACrB,QAAQ,GAAG,EACX,OAAO,YAAY,EACnB,QAAQ,MAAM,EACd,UAAU,SAAS,EAAE,EACrB,mBAAmB,OAAO,KAC3B,OAAO,CAAC,IAAI,CAwCd,CAAA;AAED,wBAAgB,kBAAkB,IAAI,YAAY,CAiCjD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CA+B3D;AAED,wBAAsB,wBAAwB,CAC1C,MAAM,EAAE,GAAG,EACX,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,EAAE,EACrB,iBAAiB,EAAE,OAAO,GAC3B,OAAO,CAAC,IAAI,CAAC,CAuCf"}
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;AAcvC,eAAO,MAAM,YAAY,GACrB,QAAQ,GAAG,EACX,OAAO,YAAY,EACnB,QAAQ,MAAM,EACd,UAAU,SAAS,EAAE,EACrB,mBAAmB,OAAO,KAC3B,OAAO,CAAC,IAAI,CAwCd,CAAA;AAED,wBAAgB,kBAAkB,IAAI,YAAY,CAkCjD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAgC3D;AAED,wBAAsB,wBAAwB,CAC1C,MAAM,EAAE,GAAG,EACX,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,EAAE,EACrB,iBAAiB,EAAE,OAAO,GAC3B,OAAO,CAAC,IAAI,CAAC,CAuCf"}
@@ -36,6 +36,7 @@ export function createSessionState() {
36
36
  sessionId: null,
37
37
  isSubAgent: false,
38
38
  manualMode: false,
39
+ compressPermission: undefined,
39
40
  pendingManualTrigger: null,
40
41
  prune: {
41
42
  tools: new Map(),
@@ -69,6 +70,7 @@ export function resetSessionState(state) {
69
70
  state.sessionId = null;
70
71
  state.isSubAgent = false;
71
72
  state.manualMode = false;
73
+ state.compressPermission = undefined;
72
74
  state.pendingManualTrigger = null;
73
75
  state.prune = {
74
76
  tools: new Map(),