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
**Deduplication** — Identifies repeated tool calls (e.g., reading the same file multiple times) and keeps only the most recent output. Runs automatically on every request with zero LLM cost.
29
29
30
+
**Supersede Writes** — Prunes write tool inputs for files that have subsequently been read. When a file is written and later read, the original write content becomes redundant since the current file state is captured in the read result. Runs automatically on every request with zero LLM cost.
31
+
30
32
**Prune Tool** — Exposes a `prune` tool that the AI can call to manually trigger pruning when it determines context cleanup is needed.
31
33
32
34
**On Idle Analysis** — Uses a language model to semantically analyze conversation context during idle periods and identify tool outputs that are no longer relevant.
33
35
34
-
*More strategies coming soon.*
35
-
36
36
Your session history is never modified. DCP replaces pruned outputs with a placeholder before sending requests to your LLM.
37
37
38
38
## Impact on Prompt Caching
@@ -68,6 +68,10 @@ DCP uses its own config file:
68
68
// Additional tools to protect from pruning
69
69
"protectedTools": []
70
70
},
71
+
// Prune write tool inputs when the file has been subsequently read
72
+
"supersedeWrites": {
73
+
"enabled":true
74
+
},
71
75
// Exposes a prune tool to your LLM to call when it determines pruning is necessary
0 commit comments