They need to be shreded to be correctly composted.
If the woody prunings are a small fraction of your compost maybe it is not necesary to buy a expensive compost shreder. You can build a small hand cranked compost shredder.
Step 1: Big bore bit drill
A worn big bore bit drill . You need to weld a rod in the tip of the bit drill. this rod must be aligned with the bit drill's axle.The frame is made from wood. take all the measures and drill two holes in the frame, then put two bearings on it and put the axles into them. Fix the frame with nails or whatever you want.
Step 3: Axis
In the tip of the drill I welded another axis and I did the same.
Step 5: Test
I took a small branch ( 2 cm diameter), and push it between the drill and the counter blade.
I spun the drill slowly maybe 30 rpm