Claude has a built-in /insights feature for this, but you can replicate it with any other tool that keeps the session logs on disk.