Lets record what we are doing, so we can use that information to do smarter things.
Add session-logging functionality to the system. Create a jsonl file in .session_logs/ with the name the current date, like YYYY-MM-DD-HH-MM.jsonl that contains an entry for each message. We'll use these files to examine and tune the system, and manage subsessions and session compactions and stuff like that.