mcpField
S
SlashML (/ ml) Persistent Agent Memory & Code Localization

SlashML (/ ml) Persistent Agent Memory & Code Localization

Remote
slashml.aiMemory & Knowledge0Updated 2d ago

About SlashML (/ ml) Persistent Agent Memory & Code Localization

SlashML Memory is a plugin, skill and MCP server for AI coding agents, providing persistent memory, behavioral code search and bug localization. It also uses lifecycle hooks to capture standing instructions and check tool calls against active rules.

Key features

  1. 01Persistent cross-session memory
  2. 02Behavior-based repository code search
  3. 03Bug candidate ranking
  4. 04Hooks for instruction capture and rule checks

Use cases

  1. 01Recall project decisions in a later session
  2. 02Find code by its behavior
  3. 03Narrow down files related to a bug
  4. 04Apply standing rules during tool use

MCP support

The README identifies SlashML as an MCP server but does not specify its MCP connection details or exposed tools.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://api.slashml.ai/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

SlashML Memory (slashml-memory)

Official SlashML (/ ml) plugin, skill, and MCP server for sub-millisecond persistent memory, ambient lifecycle hooks, behavioral code search, and bug localization.


Overview

SlashML provides persistent conversational memory, repository symbol recall, and automatic rule enforcement for AI coding agents:

  • Persistent Memory (search_memories, add_memory, get_memories, forget_memory): Store and retrieve architectural decisions, user preferences, and standing project rules across sessions.
  • Behavioral Code Search (search_code_by_behavior, index_repository): Locate functions, classes, and modules by runtime or architectural behavior.
  • Bug Localization (find_bug_candidates): Rank candidate functions and files most likely responsible for a symptom or stack trace.
  • Ambient Lifecycle Hooks (hooks/hooks.json): Automatically assimilate new standing instructions on UserPromptSubmit and check tool calls against active rules on PreToolUse, PostToolUse, and Stop.

Configuration

Install directly in Claude Code:

/plugin install slashml-memory --marketplace slashml-ai/ml-memory

When installing the plugin in Claude Code, provide your SlashML API key (sml_live_... from https://app.slashml.ai) when prompted for the api_key plugin option.


Python & TypeScript SDK Usage

Python (slashml-memory)
from slashml import SlashMLMemory

memory = SlashMLMemory(api_key="sml_live_...")
memory.add("User prefers dark mode and strict TypeScript.", user_id="u_123")
hits = memory.search("What are the user's coding preferences?", user_id="u_123")
TypeScript (@slashml/memory)
import { SlashMLMemory } from "@slashml/memory";

const memory = new SlashMLMemory({ apiKey: "sml_live_..." });
await memory.add("We migrated auth from JWT to session cookies", { userId: "team_backend" });
const results = await memory.search("How does auth work?", { userId: "team_backend" });

License

Apache-2.0. See LICENSE for details.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.