Playbook 03 · Paper to Code · v0.2.1

Implement an equation without mangled LaTeX.

Copy-pasting from a PDF drops fraction bars, transposes, and nested subscripts. Hand off exact 2× pixels instead.

2× region.pngOSC 52 + pbcopyctl peek --pngv0.2.1View .md

01 · Two Ways to Hand Off Pixels

Drag a box or let the agent peek.

  • Interactive SNIP drag: In hoja, press s (SNIP mode) and drag a box over the equation (or press y / @ to capture the visible viewport). hoja writes region.png, selection.md, and meta.json under ~/.cache/hoja/handoff/ and copies the absolute path to your clipboard via OSC 52 + pbcopy.
  • Zero-click agent peek: Leave the equation on screen and tell your agent to capture the visible page directly with hoja ctl peek --png.

Code verification promptpaste to agent

“Inspect the equation currently visible in hoja (capture it as a 2x PNG) and verify src/attention.rs for tensor shapes, scaling factor, and softmax axis.”
runs underneath
hoja ctl peek --png --output /tmp/eq-page.png# Or headless for a specific page at 2400px:hoja 1706.03762 --png --page 4 --output /tmp/page4.png --width 2400
Narrow splits
Press m to toggle per-page auto-crop and f to toggle fit-width so the equation fills a narrow 80-column pane beside your editor.