Configuration
The policy surface is a single file, cooldown.toml, at the root of your repository. One schema is used everywhere — the same keys mean the same thing for every ecosystem.
The happy path is zero config: the built-in default window is 7 days. Most repositories that configure anything set exactly one line:
min-age = "14d"cooldown reads its configuration from these places, each overriding the ones before it:
- the global file,
${XDG_CONFIG_HOME:-~/.config}/cooldown/config.toml - every
cooldown.tomlfrom the repository root down to the project, the nearer one winning - the file
--confignames COOLDOWN_*environment variables- command-line flags
Precedence has the full order, with the built-in default and each tool’s native config.
From there you can shape policy along two axes — which layer a value comes from and which selector it targets — resolved by an authority-first model.
- Basics — the
cooldown.tomlkeys:min-age,latest,freeze,allow,floor, and durations. - Precedence — how layers and selectors combine, field by field.
- Selectors — per-tool, per-registry, and per-package policy.
- Exclusions — trim folders and packages out of a run.
- Advisories — the OSV feed: flag security fixes, or give them a shorter window.
Note
When behavior surprises you, two commands are the answer:
cooldown config: prints the fully-resolved policy with the origin of each value.cooldown explain <pkg>: shows the derivation for one package.