I was not thinking of throwing absolutely filthy tools into the dishwasher; more of putting things in after vinegar or electrolysis and so on; to bring tools back to the shiny clean new appearance they had when new.
Does that work?
Not exactly. And we don't throw filthy dishes in the DW either, do you? We pre-rinse the gunk off. So, same with tools. You clean them as best you can, pre-degreasers can be a good idea. If there is crud, scrape it off.
For chrome sockets and stuff, the DW will not shine anything not already shiny. Let's not talk about this as if it is something we don't understand. You put greasy SS utensils in it. Animal grease, petro-chemical grease not that different.
For chrome, it will get 80-90% of the black greasy gunk out of the lettering. Nooks and crannies on the insides, less successful. But generally clean, ready for detailed cleaning.
AL foil is a great cleaning tip. It does stuff people don't generally understand. As a crumpled up ball, it will clean all manner of surfaces due to cutting edges formed by the wrinkles. Works well on chrome bumpers or electric coffee pots, stainless steel sinks, utensils, pots and pans.
Second, Al oxidizes quickly and easily. The dull side of Al foil is Al2O3(aluminum oxide or alumina). This is the same stuff used to make grinding wheels. It is a very hard abrasive, but fine enough to not produce noticable scratches. Rubbing with water yields very very fine abrasive slurry. Use of any acid (coca cola is commonly used, tho vinegar will work) helps.
Rubbing also causes the foil to break down, producing ions of pure Al (+3). These seek to bond and can strip electrons from rust destabilizing Fe2O3. The Al can also strip away the O3 and form Aluminum oxides that are attached to the base metal (steel for example). The result is that bits of Al can chemically replace some of the rust, filling in pores and scratches to create a more polished appearance.
It's not magic and its effect can be subtle. Use of buffing compound on an electric buffer (also Aluminum oxide) can have a similar effect. But Al foil is a quick, cheap thing you can do. I have done it to scratched up wrenches without a dramatic improvement beyind that which a fgood cleaning produces. But worth a try.