i use atf to keep things clean, the detergents in the atf clean up all the carbon and other deposits that tend to lay in places where the oil doesn't circulate.
as far as gas or diesel, i don't think atf would do any good in a diesel.
Diesel engines will always be dirty inside, some more than others ( even of the same brand/make) the black you see in diesel oil is soot, the same stuff you see coming out the tail pipe, it gets in the oil thru blow by.
ALL diesel engines have blow by, some worse than others. YOu've all seen the tube hanging down under a road tractor that is puffing steam/smoke, that is blow by escaping the engine, this is the combustion pressures getting by the piston rings.
compression ratio of 17:1+ added pressure of turbo charged air raising compression ratio upwards of 23:1+, you are not going to keep it sealed well. new diesel engines with EGR and actual PVC systems are cleaner, but they still have the blow by, which is occurring before any of the emissions controls are encountered by the combustion stream, the soot is still in the engine, it's just not allowed to escape out the tail pipe anymore.
Gasoline engines suffer from the same, soot from combustion, they just aren't as sooty as diesel engines, any of you guys wheeling LP rigs notice the oil takes forever to get dirty ? No soot in Lp when it burns, but that doesn't mean the oil doesn't wear or breakdown over time.
As for using ATF, ya, it's old school, motor oil has come a long way the last 10-15 years, the detergent and additive packages in it do pretty well,
if you see an engine sludged or coked up these days, it either hasn't been maintained or it's not running the correct operating temp.