slm-remember

Save content to SuperLocalMemory with intelligent indexing and knowledge graph integration. Use when the user wants to remember information, save context, store coding decisions, or persist knowledge for future sessions. Automatically indexes, graphs, and learns patterns.

84 stars

Best use case

slm-remember is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Save content to SuperLocalMemory with intelligent indexing and knowledge graph integration. Use when the user wants to remember information, save context, store coding decisions, or persist knowledge for future sessions. Automatically indexes, graphs, and learns patterns.

Teams using slm-remember should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/slm-remember/SKILL.md --create-dirs "https://raw.githubusercontent.com/qualixar/superlocalmemory/main/ide/skills/slm-remember/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/slm-remember/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How slm-remember Compares

Feature / Agentslm-rememberStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Save content to SuperLocalMemory with intelligent indexing and knowledge graph integration. Use when the user wants to remember information, save context, store coding decisions, or persist knowledge for future sessions. Automatically indexes, graphs, and learns patterns.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# SuperLocalMemory: Remember

Save content to your local memory system with automatic indexing, knowledge graph integration, and pattern learning.

## Usage

```bash
slm remember "<content>" [--tags tag1,tag2] [--project name] [--importance 1-10]
```

## Examples

### Example 1: Basic Memory
```bash
slm remember "We use FastAPI for REST APIs"
```

**What happens:**
- Content saved to SQLite database
- TF-IDF vectors generated for semantic search
- Entities extracted and added to knowledge graph
- Pattern learning analyzes for coding preferences
- Memory ID returned (e.g., 42)

### Example 2: With Tags
```bash
slm remember "JWT tokens expire after 24 hours" --tags security,auth,jwt
```

**Tags help with:**
- Organization
- Filtering
- Related memory discovery

### Example 3: With Project
```bash
slm remember "Database uses PostgreSQL 15 with UUID primary keys" --project myapp --tags database,postgresql
```

**Project isolation:**
- Separate memories per project
- Switch profiles with `slm switch-profile`
- No context bleeding

### Example 4: Important Memory
```bash
slm remember "CRITICAL: Production deploy requires approval from @lead" --importance 10 --tags deployment,production
```

**Importance (1-10):**
- 1-3: Low priority (notes, ideas)
- 4-6: Normal (coding patterns, decisions)
- 7-9: High priority (critical info, warnings)
- 10: Critical (blockers, security issues)

## Arguments

| Argument | Type | Required | Default | Description |
|----------|------|----------|---------|-------------|
| `<content>` | string | Yes | - | The text to remember |
| `--tags` | string | No | None | Comma-separated tags |
| `--project` | string | No | "default" | Project name |
| `--importance` | integer | No | 5 | Priority level (1-10) |

## Output

```
Memory added with ID: 42

✅ Memory saved successfully

Next steps:
  • Use `slm recall <query>` to search this memory
  • Use `slm list` to see recent memories
```

## What Happens Behind the Scenes

1. **Content Storage:** Saved to SQLite (`~/.superlocalmemory/memory.db`)
2. **Semantic Indexing:** TF-IDF vectors generated for similarity search
3. **Knowledge Graph:** Entities extracted and nodes/edges created
4. **Pattern Learning:** Analyzes content for coding preferences (frameworks, style, testing)
5. **Full-Text Index:** FTS5 index updated for fast keyword search
6. **Timestamp:** Created timestamp recorded

## Advanced Usage

### Natural Language (in AI chat)

Most AI assistants will automatically invoke this skill when you say:
- "Remember that..."
- "Save this for later..."
- "I want to store..."
- "Keep track of..."

**Example in Cursor/Claude:**
```
You: "Remember that we decided to use React hooks over class components"
AI: [Automatically invokes slm-remember skill]
✓ Memory saved
```

### Bulk Import

Save multiple memories from a file:
```bash
# From text file (one memory per line)
while IFS= read -r line; do
  slm remember "$line" --project bulk-import
done < memories.txt

# From CSV (content,tags,project)
while IFS=',' read -r content tags project; do
  slm remember "$content" --tags "$tags" --project "$project"
done < memories.csv
```

### Integration with Git Hooks

**Pre-commit hook** (save commit messages):
```bash
#!/bin/bash
# .git/hooks/post-commit

commit_msg=$(git log -1 --pretty=%B)
commit_hash=$(git log -1 --pretty=%H)

slm remember "Commit: $commit_msg (${commit_hash:0:7})" \
  --tags git,commit \
  --project "$(basename $(git rev-parse --show-toplevel))"
```

## Error Handling

| Error | Cause | Solution |
|-------|-------|----------|
| "Database locked" | Another process accessing DB | Wait or `killall python3` |
| "Content cannot be empty" | Empty string passed | Provide content |
| "Invalid importance" | Value not 1-10 | Use number between 1-10 |
| "Database not found" | SuperLocalMemory not installed | Run `./install.sh` |

## Notes

- **100% local:** Nothing leaves your machine
- **Cross-tool sync:** All AI tools access same database (Cursor, ChatGPT, Claude, etc.)
- **Unlimited:** No memory limits, no quotas
- **Privacy:** Your data stays on your computer
- **Profiles:** Use `slm switch-profile` for profile isolation

## Related Commands

- `slm recall "<query>"` - Search memories semantically
- `slm list` - List recent memories
- `slm status` - Check system health
- `slm build-graph` - Rebuild knowledge graph
- `slm switch-profile <name>` - Switch memory profile

## Technical Details

**Database Schema:**
- Table: `memories`
- Fields: id, content, tags, project_name, importance, created_at, etc.
- Indexes: Full-text search (FTS5), TF-IDF vectors, timestamps

**Performance:**
- Add memory: ~50ms
- With knowledge graph: ~300ms
- Large content (10KB): ~1s

**Limits:**
- Max content size: 1MB
- Max tags: 50 per memory
- Max project name: 64 characters

---

**Created by:** [Varun Pratap Bhardwaj](https://github.com/varun369) (Solution Architect)
**Project:** SuperLocalMemory V3
**License:** AGPL-3.0 (see [LICENSE](../../LICENSE))
**Repository:** https://github.com/qualixar/superlocalmemory

*Open source doesn't mean removing credit. Attribution must be preserved per AGPL-3.0 terms.*

Related Skills

slm-switch-profile

84
from qualixar/superlocalmemory

Switch between memory profiles for context isolation and management. Use when the user wants to change profile context, separate work/personal memories, or manage multiple independent memory spaces. Each profile has its own database, graph, and patterns.

slm-status

84
from qualixar/superlocalmemory

Check SuperLocalMemory system status, health, and statistics. Use when the user wants to know memory count, graph stats, patterns learned, database health, or system diagnostics. Shows comprehensive system health dashboard.

slm-show-patterns

84
from qualixar/superlocalmemory

Show what SuperLocalMemory has learned about your preferences, workflow patterns, and project context. Use when the user asks "what have you learned about me?" or wants to see their coding identity patterns. Shows tech preferences, workflow sequences, and engagement health.

slm-recall

84
from qualixar/superlocalmemory

Search and retrieve memories using semantic similarity, knowledge graph relationships, and full-text search. Use when the user asks to recall information, search memories, find past decisions, or query stored knowledge. Returns ranked results with relevance scores.

slm-list-recent

84
from qualixar/superlocalmemory

List most recent memories in chronological order. Use when the user wants to see what was recently saved, review recent conversations, check what they worked on today, or browse memory history. Shows memories sorted by creation time (newest first).

slm-build-graph

84
from qualixar/superlocalmemory

Build or rebuild the knowledge graph from existing memories using TF-IDF entity extraction and Leiden clustering. Use when search results seem poor, after bulk imports, or to optimize performance. Automatically discovers relationships between memories and creates topic clusters.

superlocalmemory

84
from qualixar/superlocalmemory

AI agent memory with mathematical foundations. Store, recall, search, and manage memories locally with zero cloud dependency.

remember

28865
from github/awesome-copilot

Transforms lessons learned into domain-organized memory instructions (global or workspace). Syntax: `/remember [>domain [scope]] lesson clue` where scope is `global` (default), `user`, `workspace`, or `ws`.

remember-interactive-programming

28865
from github/awesome-copilot

A micro-prompt that reminds the agent that it is an interactive programmer. Works great in Clojure when Copilot has access to the REPL (probably via Backseat Driver). Will work with any system that has a live REPL that the agent can use. Adapt the prompt with any specific reminders in your workflow and/or workspace.

remember

9958
from alirezarezvani/claude-skills

Explicitly save important knowledge to auto-memory with timestamp and context. Use when a discovery is too important to rely on auto-capture.

remember

3891
from openclaw/skills

Explicitly save important knowledge to auto-memory with timestamp and context. Use when a discovery is too important to rely on auto-capture.

remember-me

3891
from openclaw/skills

Remember-this trigger: memory updates + recall for preferences, goals, boundaries, prior work, decisions, dates, and todos. Use whenever user asks to remember, continue previous context, personalize behavior, or retrieve what was decided earlier.