AgentKits Memory

AgentKits Memory

aitytech

Gives AI coding assistants persistent memory across sessions by storing decisions, patterns, and context locally in SQLite. Your AI remembers previous conversations and learns from past interactions.

A local, persistent memory system for AI coding assistants that stores decisions, patterns, and session context via MCP tools. It enables cross-session memory management using SQLite and optional vector search without external dependencies or cloud storage.

55154 views4Local (stdio)

What it does

  • Store coding decisions and patterns across sessions
  • Search previous AI conversations and context
  • Manage session-based memory with SQLite storage
  • Retrieve relevant past interactions automatically
  • Export and import memory data
  • Browse stored memories via web interface

Best for

Developers using AI coding assistants regularlyTeams wanting consistent AI behavior across sessionsLong-term projects requiring context retention
No cloud dependencies - fully localWorks with multiple AI coding platformsOptional vector search capabilities

About AgentKits Memory

AgentKits Memory is a community-built MCP server published by aitytech that provides AI assistants with tools and capabilities via the Model Context Protocol. AgentKits Memory — local, persistent memory for AI coding assistants. On-premise SQLite with optional vector search for It is categorized under ai ml, developer tools.

How to install

You can install AgentKits Memory in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

AgentKits Memory is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

AgentKits Logo

AgentKits Memory

by AityTech

npm License Claude Code Cursor Windsurf Cline OpenCode
Tests Coverage

Persistent Memory System for AI Coding Assistants

Your AI assistant forgets everything between sessions. AgentKits Memory fixes that.
Decisions, patterns, errors, and context — all persisted locally via MCP.

WebsiteDocsQuick StartHow It WorksPlatformsCLIWeb Viewer

English · 简体中文 · 日本語 · 한국어 · Español · Deutsch · Français · Português · Tiếng Việt · Русский · العربية


Features

FeatureBenefit
100% LocalAll data stays on your machine. No cloud, no API keys, no accounts
Blazing FastNative SQLite (better-sqlite3) = instant queries, zero latency
Zero ConfigWorks out of the box. No database setup required
Multi-PlatformClaude Code, Cursor, Windsurf, Cline, OpenCode — one setup command
MCP Server9 tools: save, search, timeline, details, recall, list, update, delete, status
Auto-CaptureHooks capture session context, tool usage, summaries automatically
AI EnrichmentBackground workers enrich observations with AI-generated summaries
Vector Searchsqlite-vec semantic similarity with multilingual embeddings (100+ languages)
Web ViewerBrowser UI to view, search, add, edit, delete memories
3-Layer SearchProgressive disclosure saves ~87% tokens vs fetching everything
Lifecycle MgmtAuto-compress, archive, and clean up old sessions
Export/ImportBackup and restore memories as JSON

How It Works

Session 1: "Use JWT for auth"          Session 2: "Add login endpoint"
┌──────────────────────────┐          ┌──────────────────────────┐
│  You code with AI...     │          │  AI already knows:       │
│  AI makes decisions      │          │  ✓ JWT auth decision     │
│  AI encounters errors    │   ───►   │  ✓ Error solutions       │
│  AI learns patterns      │  saved   │  ✓ Code patterns         │
│                          │          │  ✓ Session context        │
└──────────────────────────┘          └──────────────────────────┘
         │                                      ▲
         ▼                                      │
    .claude/memory/memory.db  ──────────────────┘
    (SQLite, 100% local)
  1. Setup oncenpx @aitytech/agentkits-memory configures your platform
  2. Auto-capture — Hooks record decisions, tool usage, and summaries as you work
  3. Context injection — Next session starts with relevant history from past sessions
  4. Background processing — Workers enrich observations with AI, generate embeddings, compress old data
  5. Search anytime — AI uses MCP tools (memory_searchmemory_details) to find past context

All data stays in .claude/memory/memory.db on your machine. No cloud. No API keys required.


Design Decisions That Matter

Most memory tools scatter data across markdown files, require Python runtimes, or send your code to external APIs. AgentKits Memory makes fundamentally different choices:

Design ChoiceWhy It Matters
Single SQLite databaseOne file (memory.db) holds everything — memories, sessions, observations, embeddings. No scattered files to sync, no merge conflicts, no orphaned data. Backup = copy one file
Native Node.js, zero PythonRuns wherever Node runs. No conda, no pip, no virtualenv. Same language as your MCP server — one npx command, done
Token-efficient 3-layer searchSearch index first (~50 tokens/result), then timeline context, then full details. Only fetch what you need. Other tools dump entire memory files into context, burning tokens on irrelevant content
Auto-capture via hooksDecisions, patterns, and errors are recorded as they happen — not after you remember to save them. Session context injection happens automatically on next session start
Local embeddings, no API callsVector search uses a local ONNX model (multilingual-e5-small). Semantic search works offline, costs nothing, and supports 100+ languages
Background workersAI enrichment, embedding generation, and compression run asynchronously. Your coding flow is never blocked
Multi-platform from day oneOne --platform=all flag configures Claude Code, Cursor, Windsurf, Cline, and OpenCode simultaneously. Same memory database, different editors
Structured observation dataTool usage is captured with type classification (read/write/execute/search), file tracking, intent detection, and AI-generated narratives — not raw text dumps
No process leaksBackground workers self-terminate after 5 minutes, use PID-based lock files with stale-lock cleanup, and handle SIGTERM/SIGINT gracefully. No zombie processes, no orphaned workers
No memory leaksHooks run as short-lived processes (not long-running daemons). Database connections close on shutdown. Embedding subprocess has bounded respawn (max 2), pending request timeouts, and graceful cleanup of all timers and queues

Web Viewer

View and manage your memories through a modern web interface.

npx @aitytech/agentkits-memory web

Then open http://localhost:1905 in your browser.

Session List

Browse all sessions with timeline view and activity details.

Session List

Memory List

Browse all stored memories with search and namespace filtering.

Memory List

Add Memory

Create new memories with key, namespace, type, content, and tags.

Add Memory

Memory Details

View full memory details with edit and delete options.

Memory Detail

Manage Embeddings

Generate and manage vector embeddings for semantic search.

Manage Embeddings


Quick Start

Option 1: Claude Code Plugin Marketplace (Recommended for Claude Code)

Install as a plugin with one command — no manual configuration needed:

/plugin marketplace add aitytech/agentkits-memory
/plugin install agentkits-memory@agentkits-memory

This installs hooks, MCP server, and memory workflow skill automatically. Restart Claude Code after installation.

Option 2: Automated Setup (All Platforms)

npx @aitytech/agentkits-memory

This auto-detects your platform and configures everything: MCP server, hooks (Claude Code/OpenCode), rules files (Cursor/Windsurf/Cline), and downloads the embedding model.

Target a specific platform:

npx @aitytech/agentkits-memory --platform=cursor
npx @aitytech/agentkits-memory --platform=windsurf,cline
npx @aitytech/agentkits-memory --platform=all

Option 3: Manual MCP Configuration

If you prefer manual setup, add to your MCP config:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "@aitytech/agentkits-memory", "server"]
    }
  }
}

Config file locations:

  • Claude Code: .claude/settings.json (embedded in mcpServers key)
  • Cursor: .cursor/mcp.json
  • Windsurf: .windsurf/mcp.json
  • Cline / OpenCode: .mcp.json (project root)

3. MCP Tools

Once configured, your AI assistant can use these tools:

ToolDescription
memory_statusCheck memory system status (call first!)
memory_saveSave decisions, patterns, errors, or context
memory_search[Step 1] Search index — lightweight IDs + titles (~50 tokens/result)
memory_timeline[Step 2] Get temporal context around a memory
memory_details[Step 3] Get full content for specific IDs
memory_recallQuick topic overview — grouped summary
memory_listList recent mem

README truncated. View full README on GitHub.

Alternatives

Related Skills

Browse all skills
reverse-engineering-tools

Guide for reverse engineering tools and techniques used in game security research. Use this skill when working with debuggers, disassemblers, memory analysis tools, binary analysis, or decompilers for game security research.

47
ui-design-system

UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.

18
ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

6
memory-mcp

Use and troubleshoot the Memory MCP server for episodic memory retrieval and pattern analysis. Use this skill when working with MCP server tools (query_memory, analyze_patterns, advanced_pattern_analysis), validating the MCP implementation, or debugging MCP server issues.

5
api-documenter

Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.

4
memory-forensics

Master memory forensics techniques including memory acquisition, process analysis, and artifact extraction using Volatility and related tools. Use when analyzing memory dumps, investigating incidents, or performing malware analysis from RAM captures.

4