Advanced Features
This chapter dives deep into DCP's advanced features, helping you understand the plugin's internal mechanisms and use DCP correctly in complex scenarios.
Prerequisites
Before studying this chapter, ensure you have completed:
- Installation & Quick Start - Understand DCP's basic installation and usage
- Configuration Guide - Familiarize with DCP's configuration system
- Auto-Pruning Strategies Explained - Understand DCP's core pruning strategies
Chapter Contents
| Course | Description | Suitable For |
|---|---|---|
| Protection Mechanisms | Turn protection, protected tools, and protected file patterns | Avoid mistakenly pruning critical content |
| State Persistence | How DCP preserves pruning state and statistics across sessions | Understand data storage mechanisms |
| Prompt Caching Impact | Impact of DCP pruning on Prompt Caching | Optimize cache hit rates |
| Subagent Handling | DCP behavior and limitations in subagent sessions | When using Task tools |
Recommended Learning Path
Protection Mechanisms → State Persistence → Prompt Caching Impact → Subagent Handling
↓ ↓ ↓ ↓
Required Learn as Needed Learn for Optimization Learn when Using SubagentsRecommended Order:
- Protection Mechanisms (Required) - The most important advanced feature, understanding it prevents DCP from mistakenly deleting critical content
- State Persistence (As Needed) - If you want to understand how DCP records statistics or need to debug state issues
- Prompt Caching Impact (For Optimization) - When you focus on API cost optimization, need to weigh the relationship between pruning and caching
- Subagent Handling (When Using Subagents) - If you use OpenCode's Task tool to dispatch subtasks, need to understand DCP's limitations
Next Steps
After completing this chapter, you can:
- Check Troubleshooting & FAQ to solve problems encountered during use
- Read Best Practices to learn how to maximize token savings
- Deep dive into Architecture Overview to understand DCP's internal implementation