Analyze agent session logs and generate PDF reports with optional Notion sync.
bash
PYTHONPATH=./lib python3 scripts/analyze_logs.py
Set environment variables first:
bash
export NOTION_API_KEY="your-integration-token"
export NOTION_REPORTS_DB_ID="your-database-id"
PYTHONPATH=./lib python3 scripts/sync_to_notion.py
VariableRequiredDescriptionNOTION_API_KEYFor syncNotion integration tokenNOTION_REPORTS_DB_IDFor syncTarget Notion database ID
event, session_id, skill_used, success, and duration fieldspdfs/session_analysis_report.pdf