forked from Rockachopa/Timmy-time-dashboard
Implements AutoLoRA Step 3 of 7: a script that reads Timmy's session logs and chat history, groups entries into conversation trajectories, and writes ShareGPT-compatible JSONL suitable for Hermes 4 LoRA fine-tuning. Sources (priority order): 1. logs/session_*.jsonl — rich logs with tool calls 2. data/chat.db — SQLite chat history fallback Usage: python scripts/export_trajectories.py [--output ~/timmy-training-data.jsonl] python scripts/export_trajectories.py --validate-only --output <file> python scripts/export_trajectories.py --min-examples 100 Fixes #1102 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>