Amjad Masad announced that Replit has raised $400 million in a Series D, and also unveiled a powerful new agent.