Agentmetry
Free · Open source
SOC and DevSecOps teams
Six months after your AI agent rewrote the payments schema, git blame returns a commit message that says 'Update schema' and the session context is gone — Selvedge exists to make that moment not happen.
Selvedge is a local MCP server that AI coding agents (Claude Code, Cursor, Copilot) call as they work, logging the reasoning behind every change into a SQLite file that lives next to your code under .selvedge/. Queries are entity-scoped — you ask about users.email or deps/stripe, not line numbers — so the answer surfaces in the same terms you search in. The vendor describes zero telemetry, no accounts, and no external servers; everything stays on disk. The wall appears when your team needs cross-repo provenance or wants to pipe this data into an existing observability stack — Selvedge emits records but does not integrate with those systems out of the box.
Bottom line: Selvedge is the right call when one developer or one team needs to remember why their AI agent changed something three sprints ago; it is not the right call when you need that reasoning federated across multiple repositories or ingested by a compliance platform that expects a structured API.
Find your fit
More options in LLM Observability. Compare pricing, platforms, and features side by side.
Free · Open source
SOC and DevSecOps teams
Freemium
Developers building GenAI apps and agents
AI agents write code fast and forget everything the moment the session closes. Selvedge intercepts that amnesia at the source: it runs as a local MCP server, and agents call its log_change tool during the session that produces each change — recording the reasoning in the same context window that generated the code, not inferred afterward from the diff. The result is a queryable SQLite store under .selvedge/ that answers questions like selvedge blame user_tier_v2 with the original prompt intent, the agent identity, and the commit hash — all tied together.
The differentiating design choice is entity-level attribution rather than line-level attribution. Where git blame tracks line ownership, Selvedge tracks the things engineers actually search for: a database column, an environment variable, an API route, a dependency. Prefix queries work across all of these, so selvedge diff users –since 30d returns every agent-logged change to anything in the users namespace over a thirty-day window. That granularity is what makes it useful for schema audits and dependency change reviews, not just curiosity.
Selvedge fits between git (which records what changed) and PR review tools (which assess quality at merge time) — the vendor describes it explicitly as a provenance-as-first-class-citizen layer. It does not replace agent observability tools that trace LLM calls, and it does not replicate code-host AI features. Where it breaks down: the store is local and per-project. Teams that need reasoning records federated across repositories, or that need to push compliance artifacts into an external system via API, will find no native integration path — Selvedge has no API surface of its own.
Setup runs three commands: pip install selvedge, cd your-project, selvedge setup. The setup step detects which AI tools are present on the machine and writes Selvedge into each one’s config. A selvedge watch command live-tails events as an agent works. Every modified file gets a .bak written before any change reaches disk. Dependencies are limited to MCP, Click, and Rich — the vendor states no additional dependencies and no telemetry.
Sign in to rate this tool or suggest an edit.