A reducing agent reduces other substances by providing electrons and itself gets oxidised in the process.
K → K+ + e− (Loss of one electron)
Since potassium provides electron to reduce Cl atom to Cl- ion, it is acting as the reducing agent and gets oxidised by in the process due to loss of electrons.