Analyze agent session logs, generate PDF reports, and sync them to Notion — manually or on a daily schedule.
nano-pdfbash
cd scripts && python3 analyze_logs.py
bash
export NOTION_API_KEY="your-key"
export NOTION_REPORTS_DB_ID="your-db-id"
cd scripts && python3 sync_to_notion.py
The daily report pipeline is managed by tmux_scripts/daily-log-report.sh. It:
analyze_logs.py to generate a dated PDF reportsync_to_notion.pyTo set up the cron schedule inside your tmux session:
bash
# Add to crontab (runs at 2:00 AM daily)
(crontab -l 2>/dev/null; echo "0 2 * * * /root/.openclaw/workspace/tmux_scripts/daily-log-report.sh >> /root/.openclaw/workspace/pdfs/daily_report.log 2>&1") | crontab -
Or simply start the dev tmux session — the cron job is registered automatically:
bash
./tmux_scripts/start_dev_session.sh
VariableRequiredDescriptionNOTION_API_KEYYes (for Notion sync)Notion integration API keyNOTION_REPORTS_DB_IDYes (for Notion sync)Notion database ID for reports
text
scripts/analyze_logs.py — Log analysis & PDF generation
scripts/sync_to_notion.py — Notion sync logic
tmux_scripts/daily-log-report.sh — Daily cron pipeline script
session_logs/ — Raw JSONL session log files
pdfs/ — Generated PDF reports