Appendix
This chapter provides technical reference materials for DCP, including internal architecture design, token calculation principles, and complete API documentation. These contents are aimed at users who want to deeply understand DCP's working principles or perform secondary development.
Chapter Contents
| Document | Description | Suitable For |
|---|---|---|
| Architecture Overview | Understand DCP's internal architecture, module dependencies, and call chains | Users who want to understand DCP's working principles |
| Token Calculation Principles | Understand how DCP calculates token usage and savings statistics | Users who want to accurately evaluate savings effects |
| API Reference | Complete API documentation, including configuration interfaces, tool specifications, and state management | Plugin developers |
Learning Path
Architecture Overview → Token Calculation Principles → API Reference
↓ ↓ ↓
Understand Design Understand Statistics Develop ExtensionsRecommended Order:
- Architecture Overview: First establish overall understanding, understand DCP's module division and call chains
- Token Calculation Principles: Understand the calculation logic of
/dcp contextoutput, learn to analyze token distribution - API Reference: If you need to develop plugins or perform secondary development, consult the complete interface documentation
Read as Needed
If you just want to use DCP well, you can skip this chapter. These contents are mainly aimed at users who want to deeply understand principles or perform development.
Prerequisites
Before reading this chapter, it is recommended to complete the following:
- Installation & Quick Start: Ensure DCP is running normally
- Configuration Guide: Understand basic concepts of the configuration system
- Slash Command Usage: Be familiar with
/dcp contextand/dcp statscommands
Next Steps
After completing this chapter, you can:
- Check Troubleshooting & FAQ: Solve problems encountered during use
- Check Best Practices: Learn how to maximize token savings
- Check Version History: Understand DCP's update history