Distill local libraries
into cited AI context

Folders full of PDFs, scans, and e-books quickly flood context windows and drop tables or diagrams. Vastglint builds a local macOS index for Claude Code, Google Antigravity, ChatGPT Work, Codex, or any MCP client, serving cited slices while keeping files tidy on disk.

git clone https://github.com/slowsignallabs/vastglint cd vastglint && ./scripts/install_service.sh

Native Swift | macOS 14+ | CLI, MCP, Finder & plugins

DjVu EPUB PDF p.412 50 MB RAW Raw library PDF / EPUB / +11 formats vastglint MCP / FTS5 / OCR BOOK.md#L412 485 tok 412 413 414 Fig 4.2 (OCR) -90% clean tree XMP + Trash ml-transformers/ 14 systems/ 38 east-asia/ 44

What it solves

Token discipline for AI workflows meets lossless layout recovery and non-destructive disk hygiene.

Workflows

    Claude Code: PreToolUse hook
    
            

    Sample outputs

    claude-xml | mode="focused" | ~485 / 12,000 tokens
    
            

    Supported formats

    Eleven book and office formats are auto-discovered inside directories. Loose Markdown and plain text notes (.md, .markdown, .txt) stay untouched unless selected alone or enabled with --include-text.

    Format Decoder Cleaning & dedupe Indexing & retrieval
    PDF.pdf Native PDFKit / CG Streaming XMP & /Info scrub, splash removal, volume-aware rename Font/ruling tables, code fences, Vision ANE OCR, vector diagrams, PDF notes
    EPUB.epub Native ZipOCF OPF metadata wipe, promo/tracker URL strip, clean OCF repack Chapter TOC ranges, XHTML entities, extracted figures, diagram OCR
    DjVu.djvu, .djv Native + djvulibre Annotation wipe & canonical rename, keeping embedded text & outlines Hidden text layer extraction and ddjvu + Apple Vision OCR fallback
    FB2.fb2, .fb2.zip Native XML Strips promo paragraphs, tracker blocks, and stale document-info Section hierarchy, footnote text, embedded image decode & OCR
    Kindle.mobi, .azw3, .azw, .prc Native PalmDB In-place EXTH tracker scrub while preserving exact binary offsets Chapter recovery, metadata extraction, DRM guard, Markdown index
    Comic.cbz, .cbr Native ZIP + unar Drops Thumbs.db, promo sheets, tracking tags in ComicInfo.xml Ordered page rendering through Apple Vision ANE OCR & figure extraction
    Office.docx, .odt, .rtf, .doc Native Zip / AppKit Scrubs author/company metadata, tracker links, quarantine xattrs Heading, list, and table recovery plus embedded media extraction
    Plain text.md, .markdown, .txt Opt-in Skipped inside folders and mixed Cmd+A sweeps; cleaned standalone Indexed when selected standalone or enabled with --include-text

    Commands