There is a newer version of the record available.

Published July 10, 2026 | Version v1.5.0

smartpipe: semantic pipes for your terminal

Authors/Creators

Description

[1.5.0] — 2026-07-10

Fixed

  • The published 1.4.0 introduced itself as 1.4.0rc1. __version__ was never bumped past rc1, so --version, cite, and the update-check comparison all carried the rc tag - and the cite golden had pinned the stale value, so tests stayed green. All four version sites fixed; the release checklist now names every one of them. The README Python badge also caught up with reality (3.11-3.14 - the matrix has proven 3.14 for a while).
  • A .env on disk no longer leaks into smartpipe's environment. The file-type sniffer inside the document parser (magika, via markitdown) calls load_dotenv() at import time - so parsing a document while sitting in a repo with a .env silently injected credentials the user never exported. The import is now fenced: anything it adds or changes is reverted. Exporting a variable is consent; a file on disk is not.

Added

  • The research kit: manifest, agree, stratified sampling, and a hard privacy fence. --manifest run.json on any model verb writes the citable methods-section artifact at run end - models, prompt and its sha256, compiled schema, counts, token receipt, timestamps, exit status - atomically, even on partial and interrupted runs. smartpipe agree gold.jsonl model.jsonl --on id scores inter-rater agreement (observed, Cohen's kappa, Krippendorff's alpha, confusion matrix) with zero model calls - the math reproduces the published worked examples to the printed digit. sample 50 --by label allocates proportionally per stratum, integer-exact, still seeded and reproducible. And --local-only is the IRB sentence made enforceable: every cloud wire refused before any spend, remote OLLAMA_HOST included, and the run makes no network calls at all - not even the update ping. One cookbook page tells the whole story with real runs.
  • The OCR role works everywhere now. cluster, diff, distinct, outliers, split, and join (both sides, --right included) honor a configured ocr-model with the same per-row disclosure, local fallback, and --max-calls belt as the rest - and split gains the belt flags, since OCR is the one way it ever calls a model. Unset stays exactly as free as before, pinned per verb. Embedding runs over OCR-parsed documents batch again (a two-pass count replaced the per-item fallback), and using/config show finally list every role and posture - stt-model, ocr-model, media-embed-model, cache, batching, update-check, media-previews - each with its value and where it came from. The missing-key screens now offer smartpipe auth login PROVIDER alongside the export line.
  • Request batching: N small items, one model call. map, extend, and filter now coalesce eligible items into packed requests - ten one-line classifications cost one HTTP call instead of ten, and --max-calls counts what actually flies. Each item keeps its own labeled slot in the reply, so a model that skips one names exactly which item re-runs solo; valid answers are never thrown away with the batch. Caching stays per item, media and oversized items never batch, and one stderr note tells you what happened: note: batched 500 items into 42 calls. On by default; smartpipe config batching off (or SMARTPIPE_BATCH=off) restores strict one-call-per-item behavior.
  • Field paths reach everywhere. The nested-path grammar (a.b.c, items[0], a['weird key']) now also works in --fields, write templates (smartpipe write 'out/{user.plan}/{stem}.txt'), --explode, --tally, and join --on - the same exact-column-name-wins rule as everywhere else, and malformed paths fault at the flag, before anything is spent. En route, write templates with dotted vars or bare {} used to crash with a raw traceback; they're clean usage errors now.
  • smartpipe demo - a practice corpus in one command. Downloads the 26 MB playground (invoices, reports, photos, recordings, sessions, JSONL) into ./smartpipe-playground - sha256-verified before unpack, staged so an interrupted download leaves nothing, idempotent on re-runs, and it refuses to touch a directory it didn't create. Ends with three copy-pasteable free commands; every cookbook recipe runs against this corpus. Zero model calls, zero config.

Notes

If you use smartpipe in your research, please cite it as below.

Files

prabal-rje/smartpipe-v1.5.0.zip

Files (2.6 MB)

Name Size
md5:92834b99669984ac333e30d8058758da
2.6 MB Preview Download

Additional details

Related works