SpaceX has reached an agreement to buy AI coding company Cursor for $60 billion, a filing with the U.S. Securities and Exchange Commission says.

SpaceX and Cursor had agreed to a deal earlier this year that gave the rocket company an option to buy the AI firm.

SpaceX will move forward with its $60 billion acquisition of artificial intelligence startup Cursor as Elon Musk’s space exploration and AI company seeks a competitive edge…