# Read PDFs and papers with Claude Code.

> Stop pasting broken PDF text into Claude Code. Run hoja in the adjacent Ghostty or Rex split and let Claude read the exact page, open citations, and annotate its own layer.

- Canonical URL: https://hoja.crafter.run/integrations/claude-code
- Version: 0.2.1

## Install hoja and the agent skill.

```sh
curl -fsSL https://hoja.crafter.run/install.sh | sh
hoja setup
npx skills add crafter-station/hoja
```

The installed hoja skill points Claude Code to the embedded binary playbooks (hoja skills get core, annotate, and rex), guaranteeing instructions always match your exact installed version.

## Prompts that work out of the box.

### Prompt: Explain the visible page & annotate

> "Peek at the page currently open in hoja as a 2x PNG, explain Equation (1), and add color-coded annotations into --by claude without touching my human marks."

```sh
hoja ctl peek --png --output /tmp/visible.png
hoja annot ls --active --by human
hoja annot apply --active - --by claude --batch study-1 < marks.json
```

For a specific formula or figure, drag a SNIP box in hoja (mode s) and paste the OSC 52 path directly into Claude Code: Claude reads the crisp 2x paper-ink region.png alongside selection.md and meta.json.

## When not to use this setup.

If you run Claude Code in an SSH session without Kitty graphics support or inside macOS Terminal.app, you can still use headless hoja --text and --png commands, but the live interactive TUI reader requires Ghostty, Rex, or another Kitty-graphics terminal.
