Selvedge
Captures the reasoning behind AI code changes in real time, stores it in a local SQLite file, and provides CLI and MCP tools to query the history.
A local MCP server that AI coding agents call as they work, logging the reasoning behind each code change into a SQLite file stored in the project. It solves the problem of lost context from AI-generated code changes by capturing intent in the moment. It is for developers and engineering teams using AI coding tools like Claude Code, Cursor, and Copilot. It is positioned as a git blame for the 'why', differentiating by capturing intent live rather than reconstructing it from diffs, and it stays local with no accounts or servers.
Key features
- Captures why behind each change live
- Tracks entities, not line numbers
- Stores data in local SQLite file
- Exports history as Agent Trace records
- Provides prior_attempts for context
- CLI commands: blame, history, changeset, search
- Auto-detects and wires AI tools
- Writes .bak before changes