Selvedge provides long-term memory for codebases written or modified by AI agents, addressing the challenge of understanding the intent behind code changes after the fact. Unlike traditional tools that only show what changed and when, Selvedge captures the reasoning—the why—directly from the AI agent at the moment a change is made. This information is stored locally, enabling users to retrieve the motivations for specific changes even after the original session, prompt, or model version are no longer accessible.
The tool operates as a local MCP server that AI agents such as Claude Code, Cursor, and Copilot can call while working. Through commands like log_change, Selvedge records both the change and its rationale in the same context window that produced the modification. email or api/v1/checkout—rather than by line numbers, making it easier to search for all changes related to a particular part of the codebase. Users can query the stored history using commands like selvedge blame, selvedge history, or selvedge search, retrieving explanations for changes and summaries of previous attempts on specific entities, including outcomes and reasons for rejected paths.
Selvedge is delivered as a Python package installable via pip, with a setup process that detects supported AI tools and integrates with their configurations. selvedge directory and operating entirely locally—no accounts, external servers, or telemetry are involved. The tool can also be wired into editors such as VS Code, Cursor, and others, either automatically or through provided configuration steps. bak) to preserve the original state.
The platform is open source under the MIT license. It exports its history in the Agent Trace format, enabling integration with existing observability or audit tools that support this format. Selvedge is intended for teams managing long-term AI-coded projects as well as solo developers who want to retain the context behind their own or their agent's code changes over time.
selvedge is a LLM eval & observability product. It provides persistent, queryable memory for AI coding agents by logging the reasoning behind code changes directly in the codebase. selvedge is an open-source project aimed at AI agent developers and codebase maintainers. The project is open source (MIT). The product ships for the command line, and it can be self-hosted.
selvedge first shipped in 2026. The project is developed in the open on GitHub with 10 stars and 103 commits in the last 90 days. Among its 5 catalogued features are MCP server, reason logging, and SQLite storage. It exposes integrations via an MCP server.
Latest indexed changes and source events
Other apps tracked under the same category.