Innovation Engine — insight

Commit-to-Tablet Morning Review

May 05, 2026

Each night, scan the day's commits across all active projects and generate a single-page PDF 'code review companion' that syncs to the tablet by morning. Ethan can review yesterday's work with stylus annotations during coffee — catching regressions, jotting refactor ideas, and surfacing patterns he missed in the flow of writing the code.

gittablet-syncclaude-haikuDoc Markup

Create ~/bin/tablet-commit-review as a bash+python script run via cron at 5:30am. Use `git -C log --since=yesterday --pretty=format:'%h %s' --stat` across active projects (russ-telegram, innovation-engine, linkedin-engine, bys-website, .claude). Pipe combined diff summary + commit messages to Haiku via `claude -p` (batched single call to avoid the 100s startup overhead per CLAUDE.md) asking for: 'risk flags, refactor opportunities, pattern observations, 3 questions to ponder.' Render to PDF via pandoc with a clean serif template optimized for e-ink (large type, wide margins for stylus). Drop into ~/Tablet/inbox/commit-review-YYYY-MM-DD.pdf — existing tablet-sync picks it up. Add to crontab via the safe-append pattern noted in CLAUDE.md.

Built & Ready
## Summary

**Created `~/bin/tablet-commit-review`** (98 lines, executable, Python+fpdf2):

- **Scans** yesterday's commits across `~/services/russ-telegram`, `~/services/innovation-engine`, `~/linkedin-engine`, `~/code/braceyourself/bys-website`, `~/.claude` (skips dirs that aren't git repos so the missing ones from the spec degrade gracefully).
- **Batches** the full digest into a single `claude -p --model haiku` call (avoids the ~100s-per-call session-startup overhead per CLAUDE.md), asking for `Risk Flags / Refactor Opportunities / Pattern Observations / 3 Questions to Ponder`.
- **Renders** to PDF with `fpdf2`: A4, 22mm margins, Times serif at 22/16/13/12pt, e-ink-friendly. Lines are pre-chunked at 90 chars and individual rendering failures are caught + logged so a single weird path can't kill the whole brief.
- **Drops** to `~/Tablet/inbox/commit-review-YYYY-MM-DD.pdf` for the existing tablet-sync to pick up.
- **Falls back** to a placeholder section + raw digest when Haiku is unavailable, so Ethan still gets the commits to review.
- **Logs** to `~/.claude/cache/tablet-commit-review.log` (script) and `~/.claude/cache/tablet-commit-review.cron.log` (cron stdout/stderr).

**Cron** (safe-appended via `crontab -l > tmp; >> tmp; crontab tmp`):
```
30 5 * * * /home/ethan/bin/tablet-commit-review >> /home/ethan/.claude/cache/tablet-commit-review.cron.log 2>&1
```

**Verified** end-to-end: `~/Tablet/inbox/commit-review-2026-05-05.pdf` (1175 bytes, 1 page, `pdftotext` confirms t
Active Projects
russ-telegram, innovation-engine, linkedin-engine, .claude, bys-website
Category
insight