# Pair OpenAI Codex with a live PDF desk.

> Give Codex direct CLI access to your open papers, stack search, and isolated --by codex annotations while you read pixel-exact LaTeX beside it.

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

## Install the skill and binary.

```sh
brew install crafter-station/tap/hoja
npx skills add crafter-station/hoja
hoja doctor
```

## Headless extraction and live stack control.

### Prompt: Verify code against a paper in Codex

> "Use hoja to inspect page 4 of arXiv:1706.03762 at 2400px PNG width, cross-check our attention implementation, and highlight any caveats in --by codex."

```sh
hoja 1706.03762 --png --page 4 --output /tmp/p4.png --width 2400
hoja ctl search "multi-head" --limit 20 --json
hoja annot add --active --by codex --page 4 --match "scaled dot-product attention" --color mint
```

Strict exit codes (3 for no_match/no_live_reader, 4 for ambiguous match) let Codex retry deterministically with --occurrence K instead of guessing silently.
