Skip to main content
Glama
slashml-memory
by slashml-ai

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.

  • Inline Redaction & Per-Agent Access Scoping (redact_memory, X-SlashML-Agent-Id): Mask sensitive spans across 7 compliance buckets (tier1_secrets, soc2_coding, gdpr, hipaa, enterprise_strict) and enforce per-agent read_write / read_only access modes.

  • 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.


Related MCP server: Sugar

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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding agents to read and write persistent, local-first memory across sessions and projects, with semantic search, global guidelines, and optional autonomous task execution.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding agents to store and retrieve persistent project and cross-project memories via semantic search, so decisions, preferences, error patterns, and guidelines survive across sessions. Optionally supports autonomous task execution built on the same local-first knowledge store.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding agents to read and write persistent project-scoped and cross-project memory during sessions, using local semantic search to surface relevant decisions, preferences, error patterns, and guidelines across sessions. It also optionally exposes an autonomous task queue that draws on that same stored context.
      -