Agrawal joined Twitter as distinguished software engineer in 2011 and became the chief technology officer in 2017. On 29 November 2021, Jack Dorsey announced that he would be resigning as CEO of Twitter, and Agrawal would replace him effective immediately.[2]