How does this circuit work? (TP4056, DW01)
Capacitors C5, C13, and C12 are bypass or decoupling capacitors used to suppress high frequency noise and provide stable DC voltage at respective nodes. Resistors R18 and R20 seem to be some form of current limiting resistors to protect the pins they are attached to from excessive current which could damage the IC. Also note that this schematic is using 100k for R20 when datasheet for DW01 uses 100 ohm.