Is RED eTap software or firmware open source? Can I get into the code and tweak it to make it work with 10-speed or change the shift speed at different points in the rear derailleur’s sweep?

No. It is a closed system. The RED eTap is not programmable.