Core Navigation
โšก All Radar Feedโšก Head-to-Head Comparisons๐Ÿ† Best Software Rankings๐Ÿ“š Technical Guides๐Ÿท๏ธ Tags & Taxonomy Directory๐Ÿค– AI Agents & Workflows๐Ÿง  AI & Machine Learning๐Ÿ’ป DevTools & CLI๐Ÿ”„ Open Source Alternatives๐Ÿ“ฆ Frameworks & Libraries๐Ÿ—„๏ธ Database & Storageโ˜๏ธ DevOps & Cloud๐Ÿ›ก๏ธ Security & Pentestingโšก Productivity & Workflow๐ŸŽจ Design & Frontend๐Ÿงช Testing & Benchmarks๐ŸŒ APIs & Web Scraping
Trust & Editorial
โ„น๏ธ About ToolsRadar๐Ÿ”ฌ Review Methodology+ Submit a Tool๐Ÿ“ฌ Contact Us๐Ÿ“œ Privacy Policyโš–๏ธ Terms of Service๐Ÿ™ GitHub Source Code โ†—
Selvedge logo

Selvedge

Free๐Ÿ”„ Alt to ADRs / Mem0

Local decision history and persistent memory that coding agents can retrieve across sessions

๐Ÿณ Self-Hostableโšก Editorial Signal: 77/100โ˜…27 Stars
๐Ÿ’กAnalyst Verdict & Strategic Take
AI Editorial Assessment
"An indispensable local memory layer for autonomous coding agents, capturing architectural rationale, constraints, and explicitly rejected approaches in local SQLite without external cloud dependencies."
๐Ÿ“‹ Editorial Architecture Analysis

ToolsRadar Evaluation Scorecard

Editorial Benchmark9.1 / 10Internal Editorial Score
๐Ÿš€ Setup & Onboarding9.5 / 10
Frictionless instant test with zero registration requirement.
๐Ÿ›ก๏ธ Code & Auditability9 / 10
100% open-source repository with public commit history.
๐Ÿ‘ฅ Maintenance & Vitality8.9 / 10
Active project maintenance and verified public documentation.
๐Ÿ’ฐ Cost / Value Advantage9.2 / 10
Accessible free usage tier without mandatory subscription.
๐Ÿ”’https://selvedge.sh
Open Site โ†—
Terminal CLI Utility

Selvedge

Local decision history and persistent memory that coding agents can retrieve across sessions

โšก

Quick Installation / Run

pip install selvedge

๐Ÿ’ก What Problem Does Selvedge Solve?

Selvedge is a lightweight, local-first decision history engine engineered specifically for autonomous AI coding agents (such as Cursor, Claude Code, and Cline). Instead of relying on lossy conversation context or monolithic system instruction files, Selvedge tracks the architectural 'why' behind codebasesโ€”recording design decisions, stated rationales, constraints, and explicitly rejected approaches in a project-local SQLite database. Future agent sessions can query historical decisions by function, column, or route via a Python CLI or native Model Context Protocol (MCP) server, preventing agents from breaking unwritten rules or repeating failed code implementations.

Primary AlternativeADRs / Mem0
Deployment FormatSelf-Hosted (Docker/Bare-metal)
Sign-up BarrierNo (Instant Access)
License ModelFree
Discovery Sourcesubmission

โš–๏ธ Pros & Cons Analysis

๐ŸŸข Key Advantages
  • โœ“100% free and open-source under MIT license with complete local-first data privacy in SQLite
  • โœ“Native Model Context Protocol (MCP) server enables zero-configuration agent tooling for Cursor, Claude Code, and Cline
  • โœ“Explicitly records rejected approachesโ€”a critical dimension omitted by traditional git blame or markdown ADRs
๐ŸŸก Things to Consider
  • !Requires agents or developers to explicitly record decisions during or after implementation
  • !Best suited for project-scoped context rather than cross-repository enterprise knowledge graphs

โšก Core Architecture & Key Capabilities

01Local SQLite Decision Storage

Stores architectural decisions, stated rationales, and rejected paths in a zero-latency SQLite database versioned alongside the project codebase.

02Entity-Keyed History Queries

Look up relevant design constraints and past attempts by querying specific named functions, database columns, API routes, or custom entities.

03Dual CLI & Native MCP Integration

Seamlessly accessible via standard Python CLI commands or natively integrated into AI coding agents via the Model Context Protocol (MCP).

๐ŸŽฏ Practical Applications & High-Value Use Cases

Scenario 01

Preventing autonomous coding agents from repeating previously tested and rejected implementation approaches across fresh conversation sessions

Scenario 02

Preserving architectural decisions and unwritten constraints without bloating agent context windows with monolithic instruction documents

Scenario 03

Providing human developers with a structured, queryable rationale log of why specific functions or schemas were engineered a certain way

๐Ÿ”„ Why Choose Selvedge Over ADRs / Mem0?

While Architecture Decision Records (ADRs) capture formal high-level project milestones and rule files (e.g. .cursorrules) define standing constraints, Selvedge provides granular, entity-keyed micro-decisions and rejected paths stored locally in SQLite and queryable on demand via MCP.

๐ŸŽฏ Target Audience & Who is this for?

AI software engineers, agent framework developers, and teams building with autonomous coding assistants who need reliable cross-session architectural continuity.

โš™๏ธ Architecture & Engineering Analysis

Selvedge is engineered to eliminate critical operational friction in ai agents & autonomous. From an architectural standpoint, the system adopts a local-first, self-contained deployment posture, ensuring streamlined onboarding and minimal setup overhead.

Delivered for local workstation execution, allowing developers to run workflows directly within their local environment according to official documentation.

Data Sovereignty:Self-Hosted (Buyer Infrastructure)
Extensibility:Forkable Codebase & Local CLI
Ecosystem Role:Alternative to ADRs / Mem0

Selvedge Architecture & Engineering Dossier: Persistent Decision Memory & Rejected Paths for Coding Agents

1. Architectural Foundation & The 'Cross-Session Amnesia' Problem

Modern AI coding agentsโ€”ranging from terminal agents like Claude Code to IDE extensions like Cursor and Windsurfโ€”excel at localized code generation and refactoring. However, they suffer from a systemic operational flaw: cross-session amnesia. When an agent starts a new conversation session, the entire chain-of-thought, intermediate trial-and-error, and architectural trade-offs discussed in previous sessions vanish. Developers frequently observe agents reverting intentional trade-offs or repeatedly proposing implementations that were already tested and explicitly rejected days earlier. Traditional solutions fall short: git blame only reveals line mutations without capturing rejected paths; Architecture Decision Records (ADRs) are too heavyweight for micro-decisions; and monolithic instruction files (such as .cursorrules) quickly exhaust precious context window tokens. Selvedge solves this fundamental friction by introducing a structured, entity-keyed decision ledger designed to run locally alongside the codebase.

2. Local-First Entity Graph & SQLite Storage Engine

At the core of Selvedge is a zero-latency, local SQLite storage engine embedded directly within the target repository. Instead of indexing generic text blobs or embedding vectors, Selvedge structures memory around named programmatic entitiesโ€”functions, classes, database columns, API routes, or config parameters. Every recorded entry captures three vital dimensions: the decision taken, the technical rationale behind it, and the alternatives that were rejected along with reasons for their rejection. Because storage is local SQLite, reads execute in sub-millisecond time with zero cloud latency, zero external API costs, and complete privacy for proprietary codebases. Decisions can be grouped using shared changeset tags across multiple files and routes, allowing agents to inspect full architectural blast radiuses before modifying dependent modules.

3. Model Context Protocol (MCP) & Cross-Session Recall

Selvedge achieves seamless integration with modern coding workflows through two interoperable interfaces: a lightweight Python CLI and a native Model Context Protocol (MCP) server. When configured as an MCP client within an agent environment (such as Claude Desktop, Cursor, or Cline), Selvedge exposes specialized retrieval and mutation tools directly to the agent's function-calling runtime. Before refactoring a database schema or modifying an authentication route, the agent autonomously executes a lookup tool against the relevant entity name. The MCP server returns the structured decision history and rejected approaches directly into the agent's scratchpad, steering the model toward compliant implementations without human intervention. Developers can also inspect, export, or audit records using standard CLI commands like 'selvedge log' or generate markdown digests for documentation.

4. Production Trade-offs, Operational Best Practices & Verdict

Selvedge provides an exceptionally pragmatic balance between informal code comments and formal enterprise architecture documentation. Its primary strength lies in its explicit capture of negative knowledge: recording why an approach failed is often ten times more valuable for an AI agent than merely seeing the current code. The operational requirement is discipline: either the developer or the agent must invoke the recording tool when a key technical fork is decided. For software engineering teams leveraging autonomous AI coding assistants, Selvedge represents a high-signal, zero-cost productivity multiplier. By pairing local SQLite data ownership with standardized MCP connectivity, it establishes a reliable architectural memory substrate that preserves hard-won engineering context across agent sessions.

๐Ÿ’ก
Architectural Bottom Line: Selvedge provides the missing memory substrate for AI coding assistants: a local-first, entity-keyed decision ledger that records not just what code was written, but why alternative approaches were rejected.

โ“ Frequently Asked Questions

Editorial Answers
What is Selvedge and how does it help coding agents?โ–พ

Selvedge is a local decision history engine that stores architectural decisions, rationales, and rejected approaches in project-local SQLite. It gives AI coding agents persistent cross-session memory so they don't repeat failed approaches or break unwritten constraints.

How do AI coding agents query Selvedge?โ–พ

Coding agents connect to Selvedge natively via the Model Context Protocol (MCP) or by invoking the local Python CLI. When editing a specific function, class, or route, the agent queries Selvedge for entity-specific decision history.

Does Selvedge replace Architecture Decision Records (ADRs) or agent instruction files?โ–พ

No. Agent instruction files (like AGENTS.md or .cursorrules) suit standing rules, and ADRs suit reviewed high-level architecture milestones. Selvedge complements them by adding queryable entity-level micro-decision history and rejected alternatives.

Is Selvedge free and open source?โ–พ

Yes. Selvedge is 100% free and open source under the permissive MIT license. All data is stored locally on your machine in SQLite with zero cloud telemetry.

How do I install and configure Selvedge?โ–พ

You can install Selvedge via pip (pip install selvedge) or uv. Run 'selvedge init' in your repository root to initialize the local SQLite database and configure the local MCP server.

๐Ÿ›ก๏ธ

Independent Editorial Assessment & Review Guarantee

Fact-Checked

ToolsRadar maintains strict editorial independence. This review of Selvedge was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.

โšก HEAD-TO-HEAD MATRIX

Compare Selvedge vs ADRs / Mem0

Review our 2026 architectural breakdown comparing licensing, self-hosting ease, data sovereignty, and total cost of ownership.

View Comparison Dossier โ†’
๐Ÿ…

Official ToolsRadar Verification Badge

Maintainers of Selvedge and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.

LIVE BADGE PREVIEWSelvedge ToolsRadar Signal Badge
โœ“ Real-time Signal Score (77/100)
โœ“ Clean SVG vector format (Retina & Dark-mode optimized)
โœ“ Permanent backlink to your curated dossier
Markdown (for GitHub README)
[![Featured on ToolsRadar](https://lordorange.top/badge/selvedge.svg)](https://lordorange.top/tool/selvedge)
HTML Embed
<a href="https://lordorange.top/tool/selvedge" target="_blank"><img src="https://lordorange.top/badge/selvedge.svg" alt="Featured on ToolsRadar" /></a>

Top Related Alternatives in AI Agents & Autonomous

Compare other trending developer tools and open-source projects in this space.

Topic Clusters & Architectural Guides

Explore In-Depth Research & Recommended Stacks

Cross-referenced architectural playbooks and category rankings featuring Selvedge.

๐Ÿ† Ranked Category Hub

Top Self-Hostable Alternatives to Popular SaaS (2026)

Take back data ownership by replacing expensive monthly cloud subscriptions with self-hosted software.

Read Curated Rankings โ†’
๐Ÿ† Ranked Category Hub

Top Free & Open AI Coding Agents (2026 Guide)

Command-line agents, local repository indexers, and unconstrained software engineering assistants.

Read Curated Rankings โ†’
๐Ÿ“– Engineering Guide

The 2026 Developer Guide to Autonomous AI Coding Agents: Architectures, Frameworks & Evaluation

From simple autocomplete to multi-agent SWE loops: how autonomous agents read repos, run test suites, and write production software.

Read Comprehensive Playbook โ†’
๐Ÿ“– Engineering Guide

Self-Hosting Developer Tools in 2026: Docker, Privacy & Cloud Cost Optimization

The definitive guide to escaping SaaS subscription sprawl with Coolify, Traefik, Tailscale, and automated S3 backup pipelines.

Read Comprehensive Playbook โ†’