Evolution of thermally pulsing asymptotic giant branch stars – I. The colibri code | Synapse