Agents In Use
What’s new todayLast update
499 additions

How to use Claude to recover blocked Kindle highlights

A Claude Code skill recovered export-blocked Kindle highlights using local position metadata, Cloud Reader images, and Apple Vision OCR, producing cited Markdown notes.

TRY A BOUNDED VERSION

Prompt to try

Editorial adaptation, not the source author’s exact prompt. Replace bracketed inputs and review tool permissions first.

Using [Mac Kindle annotation database] and my own logged-in [Chrome Cloud Reader session], recover [book] highlights for personal notes. Read highlight positions, capture relevant page images, OCR locally with Apple Vision, match known prefixes and lengths, and write location-cited text to [Markdown output].

What happened

The author reports 2,432 highlights across four books, including 815 export-blocked highlights, all recovered verbatim with location citations into one Markdown file per book.

Reported by l3a0 on Hacker News

How the agent did it

  1. Read character-precise highlight positions from the Mac Kindle SQLite database.
  2. Capture Cloud Reader page images through canvas.
  3. Run local OCR on the captured images with Apple Vision.

Where a person stepped in

The post does not describe manual review steps; the author reports recovery results and position residuals.

A person set the goal and reviewed the result.

The author built a Claude Code skill after an Amazon notebook export omitted or truncated many of their Kindle highlights. In one book, 283 passages were cut off mid-sentence and 180 appeared only as location numbers. The post describes recovering these personal annotations through a combination of local metadata and rendered pages.

The Mac Kindle app’s SQLite database supplied character-precise start and end positions for each highlight. The skill captured Cloud Reader pages as images through canvas and used Apple Vision for local OCR. With the known positions, recovery became a matching and cutting operation: find the known prefix, then cut the text to the known length.

Recovered passages went into one Markdown file per book with location citations. Across four books, the author reports 2,432 highlights, including 815 blocked by export limits, all recovered verbatim. They also report position residuals of zero to two characters, with a median of zero to one.

The setup requires macOS, the Mac Kindle app’s data files, AppleScript browser control, Apple Vision, the user’s logged-in Chrome, and Claude Code. The author says it reads only their own annotations and does not touch DRM.

Who it's for: Mac users organizing their own Kindle annotations into location-cited personal notes.

Prompt
Suggested prompt (written by Agents In Use, not the author's)

Source: Hacker News · l3a0

Frequently asked questions

How did the skill determine highlight boundaries?

The Mac Kindle app’s SQLite database supplied exact start and end positions. Recovery used a known prefix and the known length to cut OCR text.

What platform and account access were required?

The post specifies macOS, AppleScript browser control, Apple Vision OCR, Mac Kindle app data files, the user’s own logged-in Chrome, and Claude Code.

More details

Remaining steps

  1. Find known prefixes and cut the text to the known highlight lengths.
  2. Write recovered highlights with location citations into Markdown files.

About this account

Claude Code drove a skill combining local highlight metadata, browser page capture, OCR, and position-based text recovery.

Platform: Hacker News. Attribution: https://news.ycombinator.com/item?id=49424759. Prompt: Suggested (written by Agents In Use, not the author's). Sourced by the Agents In Use pipeline.

Credit: l3a0 on Hacker News

Source published 24 Aug 2026

Source checked 14 Oct 2026

Tools and topics

Claude Code · Mac Kindle app · SQLite · Kindle Cloud Reader · Apple Vision · Chrome · AppleScript

Kindle highlights · OCR · Personal notes

Editorial completeness: 100/100. Measures documented fields, not agent performance or verified outcomes.