Freshworks will cut 500 jobs as AI and automation reshape software development. The company says over half of its code is now AI-generated.