Analyze and optimize the performance of the CLI tool, focusing on startup time, AI response waiting time, and memory usage. Profile the tool to identify bottlenecks, and optimize for smoother user experience, especially when handling large diffs or repositories with many files.