Skip to content

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

DocumentDescriptionSuitable For
Architecture OverviewUnderstand DCP's internal architecture, module dependencies, and call chainsUsers who want to understand DCP's working principles
Token Calculation PrinciplesUnderstand how DCP calculates token usage and savings statisticsUsers who want to accurately evaluate savings effects
API ReferenceComplete API documentation, including configuration interfaces, tool specifications, and state managementPlugin developers

Learning Path

Architecture Overview → Token Calculation Principles → API Reference
          ↓                    ↓                       ↓
    Understand Design     Understand Statistics      Develop Extensions

Recommended Order:

  1. Architecture Overview: First establish overall understanding, understand DCP's module division and call chains
  2. Token Calculation Principles: Understand the calculation logic of /dcp context output, learn to analyze token distribution
  3. 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:

Next Steps

After completing this chapter, you can: