feat(rules): OCR images when the model cannot read them
Merged
SH
25d ago+6+6+0123456789-0-0-0123456789
Summary
- Add an
## Imagessection to thetool-searchrule: when the model cannot read an image, OCR it before replying instead of claiming it cannot see one. - Document
tesseract image.png -(with--psm 4for multi-column screenshots and terminal captures) and thenix shell nixpkgs#tesseract --commandfallback.
Why
Models without image input otherwise stall on a pasted screenshot. This session hit that on a T3 Code screenshot and only OCR recovered the content.
Verification
bun run checkpasses (Ruler apply + Biome).- Regenerated
~/.claude/CLAUDE.mdlocally to confirm the rule reaches the generated output.
Summary by cubic
Adds an Images section to the tool-search rule so agents OCR images with tesseract before replying, instead of claiming they cannot see them when the model lacks image input.