A superconductor/normal metal/superconductor Josephson junction is a coherent electron system where the thermodynamic entropy depends on temperature and phase difference across the weak-link. Here, exploiting the phase-temperature thermodynamic diagram of a thermally isolated system, we argue that a cooling effect can be achieved when the phase drop across the junction is brought from 0 to $pi$ in a iso-entropic process. We show that iso-entropic cooling can be enhanced with proper choice of geometrical and electrical parameters of the junction, i.e. by increasing the ratio between supercurrent and total junction volume. We present extensive numerical calculations using quasi-classical Green function methods for a short junction and we compare them with analytical results. Interestingly, we demonstrate that phase-coherent thermodynamic cycles can be implemented by combining iso-entropic and iso-phasic processes acting on the weak-link, thereby engineering the coherent version of thermal machines such as engines and cooling systems. We therefore evaluate their performances and the minimum temperature achievable in a cooling cycle.