--- name: context-courier description: Prepare a PDF or PPTX for staged AI analysis without altering the original file. Use when a document is large, image-heavy, slide-based, or likely to waste context if read in full; create a page-aware package, verify the source hash, and retrieve only relevant pages or slides. --- # Context Courier Create a staged-reading package before analyzing a PDF or PPTX. Preserve the original as the authority for visual and exact claims. ## Workflow 1. Run from the repository root: ```bash python -m context_courier pack --out ai-pack --render-pages python -m context_courier verify ai-pack ``` 2. Read `ai-pack/brief.md` first. Identify only the relevant page or slide numbers. 3. Read the matching file under `ai-pack/pages/` when exact extracted wording is needed. 4. Inspect `ai-pack/original/` when an answer depends on a chart, image, table layout, scan, or any visual detail. 5. State which source was used and cite page/slide numbers. Never infer that text omitted from `brief.md` is absent from the source. ## Rules - Treat `manifest.json` SHA-256 verification as proof the packaged original was not changed after packing. - Treat the brief as a routing layer, not a summary sufficient for quotes or visual facts. - For a scanned PDF with no extracted text, render pages and inspect the original; do not fabricate a text transcription. - Do not promise a fixed token reduction. The benefit depends on the question and the agent retrieving selectively.