Skip to main content

Drift


Track what changed in your development environment.

Latest Drift version on PyPI CI checks on main Requires Python 3.12 or newer Apache 2.0 license

Install · Use Drift · See it work · Docs

Drift is a command-line tool for comparing your current setup with a snapshot you saved when the project worked. It can spot a runtime upgrade, a changed lockfile, or a change in Docker availability. Snapshots stay in the project’s .drift/ directory, and environment variables are recorded by name only.

Install

macOS with Homebrew

brew install KiraQiez/tap/drift
drift --version
Other installers Command
uv uv tool install drift-dev-env
pipx pipx install drift-dev-env

uv and pipx work on macOS, Linux, and Windows. Drift requires Python 3.12 or newer.

Use Drift in a project

This workflow is available in Drift 0.2.0 and later. For an older installation, see the v0.1.0 workflow.

Open a terminal in a working project and save its baseline.

drift snapshot --baseline -m "Working environment"

This sets up local Drift files if needed, captures the current environment, and makes that snapshot the baseline. When a runtime changes, a lockfile is updated, or a command stops working, run this from the same project.

drift verify

After an intentional change, rerun drift snapshot --baseline to adopt the new setup. Earlier snapshots remain in drift history. To select an earlier baseline, use drift baseline set SNAPSHOT_ID.

When you want to… Run
Compare against your known-working baseline drift verify
Compare against the latest snapshot drift diff
Compare against another snapshot drift diff SNAPSHOT_ID
Inspect the contents of a snapshot drift show SNAPSHOT_ID
Use the baseline result in a script drift verify --json

For drift verify, exit code 0 means a match, 3 means a confirmed change, and 4 means the comparison had gaps and found no confirmed change. Full exit-code reference

See it work

Here’s what Drift reports after a line changes in requirements.txt. Use drift diff --details for full dependency hashes and Git context.

$ drift diff
Drift detected · 1 change · 0 coverage gaps
Reference 94eb33b51c6f41cb81949389e1ab3628 · Before the change
Modified  requirements.txt  4407602260ca… → a5e38db64fae…
Run this demo in a temporary project on macOS or Linux

Paste this into your terminal after installing Drift. The demo enables only the dependency collector so the manifest change is easy to see.

(
  set -e
  cd "$(mktemp -d)"
  drift init

  cat > drift.toml <<'EOF'
schema_version = 1

[collectors]
system = false
runtime = false
docker = false
environment = false
git = false
EOF

  printf 'demo==1.0\n' > requirements.txt
  drift snapshot -m "Before the change"
  printf 'demo==2.0\n' > requirements.txt
  drift diff || test "$?" -eq 3
)

Run from source

From a checkout with uv installed, run the source CLI.

uv sync --locked
uv run --locked drift --help

From the Drift checkout, replace /path/to/project with your project’s directory.

uv run --locked drift --project /path/to/project snapshot --baseline
uv run --locked drift --project /path/to/project verify

Run just check for lint, type checks, and tests if you have Just installed.

Documentation

Topic Guide
All commands and options CLI specification
Configuration and snapshot storage Data model
What Drift collects Security and privacy
Project design and scope Architecture · Product requirements
Development and conventions Development guide · Contribution rules
Releases and implementation status Release guide · Roadmap

The guides in docs/ are for contributors and AI agents. AGENTS.md points AI agents to their workflow rules in .ai/rules/.

Apache License 2.0

Metadata

Release files for drift-dev-env 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drift-dev-env 0.2.0
File Size Uploaded Provenance Actions
drift_dev_env-0.2.0.tar.gz 31.8 kB With provenance Details for drift_dev_env-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for drift-dev-env 0.2.0
File Interpreter ABI Platform Actions
drift_dev_env-0.2.0-py3-none-any.whl Python 3 none any Details for drift_dev_env-0.2.0-py3-none-any.whl

Total release size: 75.2 kB

Release files / drift_dev_env-0.2.0.tar.gz

Download URL drift_dev_env-0.2.0.tar.gz
Size 31.8 kB
Tags Source
SHA-256 checksum
How to use checksums
96691806fbecadbaa4e976a11af5bdd4f9a31d0bd786e9de9bb5483f1cc63f0c
BLAKE2b-256 checksum
How to use checksums
b0a95a63faf9d638da9794623f4412cedd92ff3c01187d91d006835cd7151732
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / drift_dev_env-0.2.0-py3-none-any.whl

Download URL drift_dev_env-0.2.0-py3-none-any.whl
Size 43.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ebd4dad6c632ad8a6dd8c585d7e989cb45683ae117e6067e72e2cf1111c9c19
BLAKE2b-256 checksum
How to use checksums
8f1d0cc6c2e2fd55dc2dabf79a9b9e589bb8bceaece84e1b280bbaaa2b992d5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for drift-dev-env 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for drift_dev_env-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page