Skip to content

Keep the why
with your code.

Save project decisions and rejected approaches, so your next coding session can pick up where you left off.

selvedge — demo

$ selvedge demo

One decision. Two sessions.

Session 1 · save a rejected approach

Rejected storing API keys in users.api_key: plaintext credentials would be exposed in a database leak. Store a hash instead.

Session 2 · ask prior_attempts

rejected · confidence: exact

Revisit when: the credential storage and threat model change.

Temporary database removed.
Your project is untouched.

$

A shortened view of the included demo. Run it locally below.

WORKS WITH Claude Code · Codex · Copilot · Cursor · Gemini CLI · Windsurf

Open a terminal in your project folder. Pick your agent, copy the commands, and follow the setup prompts.

Choose an agent above to see its setup commands.

MCP and CLI work across these agents. Session-start reminders and the edit gate are currently Claude Code features. Agents must call Selvedge to record decisions.

Want to see it work first? The demo saves a rejection and reads it back through a fresh database connection. It uses a temporary database, so your project stays untouched.

terminal — install and try
uv tool install --upgrade selvedge
selvedge demo

Requires uv and Python 3.10+. Prefer pip? Installation instructions →

The decision

What changed and why. Find it by the function, table, dependency or endpoint it belongs to.

The rejected approach

What you considered or rolled back, with the reason. Your next session can check before trying it again.

When to revisit it

What would change your mind. Add a review date or supported expiry condition so a past decision can be reconsidered.

Explore memory across coding sessions, try a recorded rejection and retrieval, or learn how to keep a decision audit trail.

Selvedge is a local MCP server for AI coding agents. Decisions live in .selvedge/selvedge.db, a local SQLite file. Selvedge makes no LLM calls and needs no account or subscription. It’s open source under the MIT license.

Connect agents to the same project and database to share the history. Moving to another machine? Carry the database with the project, or export a readable decision log. Your chosen coding agent still follows its own data policy.

Selvedge records what you or your agent explicitly save. The installed instructions help the agent use it; they don’t guarantee that every decision is captured.

Available through the package registry and MCP directories you already use.