Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By runtimenoteslabsv4.0.1MIT
Recalls memories from earlier coding sessions and ranks those that worked before higher, while setting aside ones that keep failing. Claims memories stay on your machine unless you enable Claude extraction, which needs an ANTHROPIC_API_KEY.
Trending plugins
7-day copy clicks
Connected while the plugin is enabled; Claude calls their tools.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Persistent memory for AI coding agents with outcome-based learning.
New to Runtime Memory? See the User Guide for an introduction to using Runtime Memory with Claude Code.
Runtime Memory stores knowledge from your coding sessions and records how often each memory worked and how often it failed. Among the memories relevant to a query, those with a better record rank higher. A memory that keeps failing is left out of retrieval until its failures fade.
pip install "runtime-memory[all]"
The base package stores and searches memories by keyword. Each extra adds a part:
| Extra | Adds | Without it |
|---|---|---|
embedding | Semantic search, with sentence-transformers | Search is keyword-only |
extraction | Extracting memories from sessions with Claude | No extraction |
server | The MCP server, the REST API and the web UI | mem serve is unavailable |
all | All three |
mem stats shows which search mode is in use. With embedding, the first search
downloads an embedding model of about 100 MB and caches it.
Or from source:
pip install "runtime-memory[all] @ git+https://github.com/runtimenoteslabs/memory-layer.git"
For development:
git clone https://github.com/runtimenoteslabs/memory-layer.git
cd memory-layer
pip install -e ".[dev]"
The distribution is runtime-memory and the import is runtime_memory. The
repository is still named memory-layer, which is where the project started; the
package was renamed in 3.0. An unrelated package holds memory-layer on PyPI,
so pip install memory-layer fetches that one instead of this project.
from runtime_memory.sdk import MemoryClient
async with MemoryClient() as client:
# Store a memory
memory = await client.add(
content="Use async/await for I/O operations",
category="pattern",
)
# Search memories
results = await client.search("async patterns", limit=5)
# Record feedback
await client.record_outcome(memory.id, "worked")
# Get context for your project
context = await client.get_context()
from runtime_memory.sdk import SyncMemoryClient
with SyncMemoryClient() as client:
client.add("Always validate user input", category="convention")
results = client.search("input validation")
# Add a memory
mem add "Use type hints for better IDE support" -c convention
# Search memories
mem search "type hints"
# See why a search returns what it does, and why the rest were left out
mem why "type hints"
# Store statistics: outcome records, search mode, and the Hermes trace if present
mem stats
# Record outcome
mem outcome <memory-id> worked
# Get context
mem context
# Start REST API server
mem serve --rest --port 8080
# Start MCP server
mem serve --mcp
# Start server
mem serve --rest --port 8080
# Add a memory
curl -X POST http://localhost:8080/memories \
-H "Content-Type: application/json" \
-d '{"content": "Always use pytest", "category": "convention"}'
# Search
curl -X POST http://localhost:8080/memories/search \
-H "Content-Type: application/json" \
-d '{"query": "testing"}'
For multi-agent setups, Runtime Memory provides an MCP server:
mem serve --mcp
Configure in your MCP client:
{
"memory-layer": {
"command": "mem",
"args": ["serve", "--mcp"]
}
}
All agents share the same memory store. Memories created in Claude Code appear in Cursor, feedback from OpenCode improves results everywhere.
OpenCode (~/.opencode/config.json):
{
"mcpServers": {
"memory-layer": {
"command": "mem",
"args": ["serve", "--mcp"]
}
}
}
Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"memory-layer": {
"command": "mem",
"args": ["serve", "--mcp"]
}
}
}
Windsurf (~/.windsurf/mcp.json):
{
"mcpServers": {
"memory-layer": {
"command": "mem",
"args": ["serve", "--mcp"]
}
}
}
Runtime Memory integrates with Claude Code via hooks and skills. For a beginner-friendly walkthrough, see the User Guide.
Installation:
pip install "runtime-memory[all]"
# Go to your project directory
cd your-project
# Install Claude Code plugin
mem install-plugin
# Start Claude Code
claude
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: author: Invalid input: expected object, received string, dependencies: Invalid input: expected array, received object
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Plugins from other owners that cover similar ground