drift-ai 0.2.0

Drift AI — local-first CLI: capture, compact, and bind AI coding sessions to your git history. Day-one Claude Code + Codex + MCP.
drift-ai-0.2.0 is not a library.

drift-ai

The CLI binary for Drift AI — AI-native blame for the post-prompt era.

drift watches the local session logs of your AI coding agents (Claude Code, Codex, Aider…), LLM-compacts each session, stores the result in .prompts/ inside your git repo, and builds a line-level attribution layer that links every code event back to its originating prompt. It also binds each session to its matching commit via refs/notes/drift.

Install

brew install ShellFans-Kirin/drift/drift        # macOS / Linux, any arch
cargo install drift-ai                          # if you have a Rust toolchain

(The crate publishes as drift-ai but installs the drift binary.)

Quickstart

cd your-git-repo
drift init                                      # scaffold .prompts/
drift watch &                                   # event-driven capture in the background
drift blame src/foo.rs                          # reverse lookup: who wrote what
drift log                                       # per-commit agent attribution
drift cost --by session                         # per-session Anthropic spend

See the top-level README for the full command reference, MCP integration, and cost / event-driven / context-window behaviour.

Licensed under Apache-2.0.