Cosmos repo knowledge -- provenance-first video normalization toolkit (ingest/crop/preview/optimize/lineage) with adapter-based ingest and determinism profiles. Inject before modifying cosmos CLI/SDK/provenance or release workflows.
Cosmos is a provenance-first video normalization toolkit. The CLI/SDK ingests heterogeneous source layouts, generates deterministic web-ready derivatives, and emits machine-joinable sidecars for reproducible downstream automation.
cosmos with root commands process, ingest, crop, optimize, provenance, lineage.cosmos pipeline command still exists; do not use it in new docs/examples.from cosmos.sdk import ingest, IngestOptions, crop, CropJob, optimize, OptimizeOptions, DeterminismProfile, resolve_profile.IngestAdapter Protocol in cosmos.ingest.adapter; built-ins are cosm and generic-media.strict|balanced|throughput across ingest/crop/optimize.--profile > COSMOS_PROFILE env > command defaults.cosmos lineage {build,upstream,downstream,chain,tree} and cosmos.sdk.lineage.LineageIndex.view.source.sha256 == clip.output.sha256.COSMOS_FFMPEG -> ~/.local/share/cosmos/bin/ffmpeg -> system PATHcosmos/cli/*, cosmos/sdk/*, cosmos/ffmpeg/*, cosmos/crop/*, cosmos/ingest/*, or provenance schemas/emitters.--json/--plain, exit mapping, prompt behavior, flag naming).Load only what you need for the request:
references/api-surfaces.mdreferences/architecture.mdreferences/workflows.mdreferences/integration-notes.mdreferences/maintenance-ritual.mdAGENTS.md in this repo.CONTRIBUTING.md for contributor setup, bootstrap, and canonical quality-gate commands.uv run cosmos ... --help.make check.CONTRIBUTING.md and dev/scripts/bootstrap-dev.sh instead of repeating setup steps in ad hoc notes.cosmos) and one SDK (cosmos.sdk) mental model; route business logic through SDK layers.cosmos process as the canonical ingest -> optional crop workflow surface.--json/--plain, and non-interactive safety flags (--yes/--no-input) on commands that expose prompts.offset_x/offset_y in [-1, 1]; rect clamp/even-round behavior).view.source.sha256 == clip.output.sha256).cosmos/ffmpeg/* rather than shelling ad hoc ffmpeg/ffprobe commands.make check as the canonical local gate, and refresh uv.lock with uv lock whenever dependency metadata changes.IngestAdapter contract + cosm/generic-media adapters + auto-detect/override flow.strict|balanced|throughput) threaded through ingest/crop/optimize and provenance.references/workflows.md -- canonical agent workflows and copy/paste command recipes.references/api-surfaces.md -- CLI + SDK contract surfaces and compatibility expectations.references/architecture.md -- module map and runtime flow.references/integration-notes.md -- downstream integration and compatibility constraints.references/maintenance-ritual.md -- required skill freshness process for feature/release work.references/follow-on-issue-drafts.md -- backlog-ready issue scopes for larger follow-ons.