Local tools
CLI & packages
The Python package can analyze local media without a web account. The npm package provides the shared TypeScript data contracts.
Install
Install from PyPI. The local extra provides local speech recognition.
python -m pip install "opencontext-video[local]==0.1.1"
The TypeScript schemas are available from npm.
npm install @kylosonic/opencontext-schemas@0.1.1
Analyze media
Videos, audio files, still images, and PDFs use the same local command and output contract.
opencontext analyze recording.mp4 \ --sampling-mode hybrid --scene-threshold 0.25 \ --compress compact --max-context-tokens 8000 \ --out context.md --json context.json
opencontext analyze mockup.png \ --offline --out context.md --json context.json
--sampling-mode hybrid captures FFmpeg scene transitions alongside interval keyframes (controlled by --scene-threshold in 0.05–0.95). --compress compact|aggressive merges redundant adjacent frames and transcript segments, and --plugin module:Attr or --device cuda enables worker plugins and GPU acceleration. --offline exercises extraction and export with labeled fixture transcription and vision data. It does not claim model inference.
Build and verify
opencontext brief context.json --repo ../my-app \ --task "Implement the recorded checkout flow" \ --out implementation-brief.md
opencontext doctor --offline opencontext doctor --offline --json
doctor reports setup checks without printing secret values. Add --check-network to opt into provider reachability checks.
Command summary
opencontext analyzeAnalyze a file or every supported file in a directory.
opencontext briefGenerate a repository-aware implementation brief from JSON.
opencontext replayValidate an evidence ledger and regenerate a brief.
opencontext evaluateScore a context result against ground truth.
opencontext doctorCheck local runtime, hardware accelerator, and provider configuration.
opencontext plugins listInspect configured or entry-point worker plugins.