Skip to main content

Post-Session-Log-Update Hook

Automatically runs /classify on session log files after updates to:

  1. Update moe_confidence score
  2. Set moe_classified date
  3. Update 'updated' timestamp in frontmatter

Trigger: After any write to docs/session-logs/SESSION-LOG-*.md

File: post-session-log-update.py

Functions

get_iso_timestamp()

Get ISO 8601 timestamp in UTC.

find_classify_script()

Find the MoE classify script.

run_classify(log_path)

Run classify on the session log file.

main()

Main hook entry point.

Usage

python post-session-log-update.py