#blame #codex #git #claude #git-blame

drift-core

Core data model, attribution engine, and compaction provider trait for Drift AI

6 releases

0.4.2 Apr 26, 2026
0.4.1 Apr 26, 2026
0.2.0 Apr 25, 2026
0.1.2 Apr 25, 2026

#1718 in Artificial intelligence


Used in 3 crates

Apache-2.0

245KB
6K SLoC

drift-core

Core data model, attribution engine, and compaction provider trait for Drift AI — the AI-native blame CLI.

This crate contains the library code that both the drift CLI binary (published as drift-ai) and the stdio MCP server (drift-mcp) are built on:

  • NormalizedSession + CodeEvent — agent-agnostic session and per-file event models.
  • EventStore — WAL-mode SQLite storage with code_events, sessions, file_shas, and (v0.1.1+) compaction_calls tables.
  • CompactionProvider traitMockProvider for offline/test runs, AnthropicProvider for live POST /v1/messages?stream=true with retry + context-window handling.
  • Attribution engine — SHA-256 ladder for human-edit detection; commit_drafts upserts events with parent chains.

See the top-level README for install, quickstart, and the full feature tour.

Licensed under Apache-2.0.

Dependencies

~35–52MB
~742K SLoC