Elon Musk has been tasked by President Donald Trump with slashing federal government spending and the federal employee headcount, an effort known as DOGE.