Agent building: 150 lines of TypeScript code Build a functional research agent in 150 lines using strict TypeScript interfaces to prevent runtime errors and manage conversation history. Jul 9, 2026 Sofia Berg 14 min read