TheFocus.AI Labs
TheFocus.ai
SECTION 04

Session Logging

Session logging

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.

Files
  • mise.toml*
  • src
    • index.ts*
    • prompts
      • system.ts*
mise.toml