Repository navigation
Description
Context
The docs capability module (#1178) ships typst + typstyle for
document-oriented consumers. Working in exo-pet/vault surfaced a gap on the
reading side: there is no way to get text out of a PDF, because
poppler-utils is not on the dev-shell PATH.
Concretely, pdftotext and pdftoppm are both absent. pdftoppm in particular
is what Claude Code's file-reader shells out to in order to render a PDF page,
so an agent working in a docs consumer cannot open a PDF at all — it fails
with pdftoppm is not installed. In a repo whose stated purpose is being "a
primary knowledge source for LLM agents", where a large share of the corpus is
vendor PDFs, that is a sharp edge.
The workaround today is uv run --with pymupdf, which works but puts a Python
dependency in the path of something that should be a one-line CLI call, and does
nothing for the agent's built-in reader.
Proposal
Add poppler-utils to nix/modules/docs.nix:
pkgs: _options: {
packages = with pkgs; [
typst
typstyle
poppler-utils
];
}Why this fits the module rather than extraPackages
The docs docstring names its consumers — "exo-pet/vault; qms and EXOMA
presentations/grants share the same profile". All three handle PDFs, unlike
the v1 exclusions, which were excluded because they serve narrower needs:
pandoc/LaTeX (ask-gated), drawio/excalidraw export (electron-shaped), and Python
doc-processing libs (belong in the consumer's pyproject.toml via uv).
poppler-utils is none of those: it is a small, generic, native CLI that every
document consumer benefits from, which is exactly the shape docs exists to
carry.
Cost
139 MB closure. For comparison, the OCR stack a consumer might otherwise
reach for is an order of magnitude heavier:
| Package | Closure |
|---|---|
poppler-utils |
139 MB |
tesseract |
1.11 GB |
ocrmypdf |
1.68 GB |
Consumers on modules = [ "docs" ] pay the 139 MB; modules = [ ] consumers
are unaffected, per the zero-cost-when-unused property in docs/NIX.md.
Explicitly out of scope
OCR does not belong here. At 1.68 GB it would make every docs consumer pay
for a capability that EXOMA grant decks will never use. exo-pet/vault#70
keeps OCR repo-local in a separate pinned dev-shell, and notes that it would
promote to a dedicated ocr capability module — alongside docs / node /
native / rust — only if a second consumer or a real volume of scanned
documents appears. Flagging so the two are not conflated.
Tasks
- Add
poppler-utilstonix/modules/docs.nix - Update the
docsmodule docstring and thedocsbullet indocs/NIX.md
(note the PDF-reading rationale, and that OCR stays out) - Confirm no closure change for
modules = [ ]consumers -
CHANGELOG.md—semver:minor(additive capability)
Activity
c-vigo commentedon Aug 28, 2026
Origin and companion issue: exo-pet/vault#70 — the vault keeps the OCR stack repo-local in a pinned
devShells.ocr, and would only promote it to a sharedocrcapability module if volume justifies it. This issue is the cheap half: PDF reading for alldocsconsumers.test(nix): assert the docs module puts poppler-utils on PATH
feat(nix): add poppler-utils to the docs capability module
docs(nix): document PDF reading in the docs module and keep OCR out
feat(nix): add poppler-utils to the docs capability module (#1578)
c-vigo commentedon Aug 31, 2026
Merged to
dev— shipping in 1.12.0.chore: release 1.12.0 (#1580)