The typical compression release engine brake, as originally developed, uses an add-on hydraulic system using engine oil.
Contrast a petrol engine, where the mechanics are different and a special valve is not necessary for engine braking to occur when the driver releases the accelerator.