Skip to main content
πŸ‘€ Written & Reviewed by Bill Gao (Lead Editor) β€’ Jul 10, 2026 β€’ ai-code

Selvedge Review 2026: Long-term memory for AI-coded codebases.

Selvedge is a local MCP server that gives AI coding agents a durable memory of why code changed. As Claude Code, Cursor, or Copilot work, Selvedge logs the

Selvedge

What Selvedge Does

Selvedge is a local MCP server that gives AI coding agents a durable memory of why code changed. As Claude Code, Cursor, or Copilot work, Selvedge logs the reasoning behind every edit β€” captured live, in the same context that produced it β€” and stores it in a SQLite file next to your code. Instead of guessing from a generated commit message months later, you can run selvedge blame payments.amount and see the original intent.

Key Features

  • Live intent capture β€” Agents log change rationale in-context via log_change as they work.
  • Entity attribution β€” Tracks users.email, env/STRIPE_SECRET_KEY, api/v1/checkout, deps/stripe.
  • prior_attempts memory β€” Before editing, agents see what was tried and reverted β€” active memory.
  • Editor auto-wiring β€” selvedge setup detects and wires supported editors automatically.
  • Agent Trace export β€” Emits history in a portable observability format.

Pros

  • Captures the β€˜why’, not just the β€˜what’
  • Runs fully local with zero telemetry
  • Works with Claude Code, Cursor, Copilot, Cline, Windsurf
  • Prefix-searchable entity attribution
  • Exports Agent Trace records for observability

Cons

  • Requires agents to actively call its MCP tools
  • No cloud sync across machines
  • Young project, smaller community
  • SQLite store needs manual backup
  • Best value only on long-lived codebases

How Selvedge Compares

Selvedge is not alone. These tools also tackle similar problems:

  • Git blame β€” Shows who/what changed, never the why.
  • Code review tools β€” Review-time quality, not provenance.
  • Agent observability (LangSmith etc.) β€” Trace LLM calls, not code intent.

Want a head-to-head? Read our Selvedge vs Cursor comparison.

Verdict

Selvedge earns a 4.2/5 (8.4/10). Long-term memory for AI-coded codebases. It is worth a look if you value agent orchestration and local-first workflows.

✍️
Bill Gao Lead Editor

Founder and lead editor at 9bests. Oversees software evaluations, documented taxonomy models, and qualitative editorial ratings. Read our full editorial methodology.

Explore the best AI Coding tools

Related Articles

Subscribe to the 9bests weekly β€” get the full list free

Hand-picked AI tool reviews and updates every week. Subscribe to receive this full list + 7 more quick-reference sheets (writing / image / video / audio / chat models / data / API cost).

Subscribe free & get it β†’

Independent reviews β€” ratings aren't influenced by vendor payments Β· double opt-in Β· unsubscribe anytime