If I understand you correctly, you are looking for this GitHub - thgrund/tidal-looper: Different looper variants for SuperDirt to provide live sampling in TidalCycles.
And is discussed here: Sampling within Tidal - #35 by mrreason
And feel free to ask if you have any problems with it.