Selvedge is a local, open-source MCP server that captures the *why* behind every change AI coding agents make — live, in the moment, from the agent's own context (not inferred later by a second LLM). It logs the entity (DB column, table, function, route, env var, dependency), the diff, and the reasoning to a local SQLite store, then reads it back: `selvedge blame users.email` returns the most recent change + the original reasoning, and `prior_attempts` lets the agent check "was this tried here before, and how did it turn out?" before editing.
8 MCP tools: log_change, diff, blame, history, changeset, search, prior_attempts, stale_decisions. As of v0.3.9 it also exports Agent Trace v0.1.0 records (`selvedge export --format agent-trace`) for cross-tool interop. Zero-config and local-first (no telemetry, no network, no LLM calls in core), Python 3.10+, MIT.