Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

io.github.catfish-1234/sessionmem

Latest version: v2.3.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
MCP server Transport: stdio Publisher: catfish-1234
9 Stars
1 Forks
1 Versions
TypeScript Repo language

Scan summary

io.github.catfish-1234/sessionmem was last scanned on 27 Nov 2026 at version 2.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 27 Nov 2026.
  • Findings: No rules fired in version 2.3.0.
  • MCP server: Runs over stdio.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
2.3.0 LATEST 27 Nov 2026 No rules fired

No rules fired in 2.3.0

Findings

Findings for v2.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

sessionmem

Project memory between sessions, stored on your machine.

New session. Claude starts fresh.

WITHOUT sessionmem:
  You explain the stack. The JWT bug from last week.
  The Stripe migration that's halfway done. The billing code to stay away from.
  Same questions. Different day.

WITH sessionmem:
  [warning] JWT blacklist must be checked before issuing new tokens. Fixed PR #47.
  [decision] Stripe migration ~50% done. Do NOT use /lib/billing-v1.
  [fact] Stack: TypeScript, Next.js, Postgres.

  Claude: "Looks like you're mid-Stripe migration. Where do you want to pick up?"

sessionmem is an MCP server that stores decisions, warnings, and project context across sessions. Claude Code hooks capture supported tool events and load relevant memories automatically. Other hosts use its MCP tools and installed instructions; session automation depends on the host. It works with Claude Code, Cursor, Cline, Codex, Windsurf, and other MCP hosts.

Default retrieval uses SQLite FTS5 BM25 and entity overlap. An optional local MiniLM model adds semantic candidates. Weights are installed separately; queries make no network calls and fall back to BM25 when local inference is unavailable. See measured comparisons for quality gains, missed questions, and latency costs.

By default, everything stays on your machine. You don't need an account or a cloud service. Data only leaves your computer if you enable sharing or cloud summarization.


Quickstart

You need a terminal (Command Prompt, Terminal, or PowerShell) and Node.js, version 22.13 or newer. Node 24 LTS is recommended. No programming experience is required.

1. Install sessionmem
npm install -g sessionmem
2. Register it with your AI tool

Run this in your project folder after configuring your AI tool (Claude Code, Cursor, etc.):

sessionmem install
# Optional: select one host explicitly, including in automation:
sessionmem install --adapter claude-code
# Other names: cursor, cline, codex, windsurf, antigravity, qcoder, generic

install detects installed hosts from local executables, including from a plain terminal, and configures every host found. Automatic discovery currently supports Claude Code on PATH or in its standard native install locations. Use --adapter <name> for the other adapters or to override discovery. The existing SESSIONMEM_ADAPTER environment override also works; the flag takes precedence. If no supported host is found, the command says so and exits nonzero before creating files. Discovery and configuration work fully offline.

This initializes the database and configures the selected adapters:

  • Registers sessionmem with your AI tool's MCP host so the host can start it automatically.
  • Creates ~/.sessionmem/config.json with secret redaction enabled and a 90-day retention window, if the file doesn't already exist.
  • Adds instructions to the selected host's guidance file, such as ~/.claude/CLAUDE.md for Claude Code or ~/.codex/AGENTS.md for Codex. You can re-run the command without duplicating those instructions.
  • Installs Claude Code's SessionStart, SessionEnd, and PostToolUse hooks and prints what was configured per host. If a host fails, the remaining hosts are still attempted and the command exits nonzero.
  • Enables and starts one per-user login service for sessionmem watch. Re-running install updates that registration in place and restarts capture. Capture continues after closing the terminal and starts again at login.

Login capture uses a LaunchAgent in ~/Library/LaunchAgents on macOS, a systemd --user service on Linux, and a Scheduled Task with a user logon trigger on Windows. Linux requires systemd and an available user service manager; macOS requires a GUI login session. If registration or startup fails, install exits nonzero, preserves completed setup, and prints a repair hint. After fixing the OS service error, run sessionmem autostart enable.

The watcher captures existing and updated Claude Code, Codex CLI, and Cursor history offline, without API keys. It starts immediately after install; no manual scan or watch process is required. Hosts outside these three can use MCP memory tools, but do not have a transcript reader.

3. Restart your AI tool

Restart your editor or agent so it loads the MCP registration. Your host starts sessionmem run automatically; running it directly starts a stdio server that waits for MCP messages, so it can appear to hang in a terminal. For an unknown host (generic), install writes a project-local .mcp.json; if your host uses another format or location, copy its server entry into that host’s MCP config.

After restarting:

  • In Claude Code, the installed PostToolUse, SessionEnd, and SessionStart hooks capture supported tool events, summarize them, and load prior memories automatically.
  • Codex and Cursor use the auto-started watcher for transcript capture. Install does not wire lifecycle capture hooks for these hosts. Their MCP tools and installed instructions provide recall and explicit memory operations.
  • Other MCP hosts use sessionmem's tools and installed instructions; automatic transcript capture requires a supported transcript reader.

Check the installation offline:

sessionmem doctor
# For an explicitly selected host:
sessionmem doctor --adapter claude-code

Table of Contents

  • What problem does this solve?
  • How is sessionmem different?
  • Benchmark results
  • How it works (in plain English)
  • CLI command reference
  • Privacy, secrets, and your data
  • Memory rot: keeping memory accurate over time
  • Team mode (optional)
  • Cloud summarization (optional, off by default)
  • Supported tools
  • Further documentation
  • Troubleshooting
  • FAQ
  • Security
  • Contributing
  • License

What problem does this solve?

Most AI coding assistants rely on the current conversation for context. Start a new session and you may need to explain the project's setup, libraries, fixed bugs, and design decisions again.

sessionmem keeps short notes between sessions:

  1. While you work, it captures session events.
  2. At session end, it summarizes decisions, warnings, and useful facts into stored memories.
  3. At the next session start, it loads the most relevant memories within a small token budget.

Claude Code runs these steps through the installed hooks. Other hosts need their agent to call the MCP memory and lifecycle tools; the installed guidance explains how to do that.


How is sessionmem different?

Compared with projects such as claude-mem and other cloud or Claude-only memory tools, sessionmem focuses on local storage and support for multiple MCP hosts:

sessionmem Typical cloud/Claude-only memory tools
Where is data stored? A single SQLite file on your computer (~/.sessionmem/memories.db) Often a hosted service, a cloud vector database, or a separate server process you have to run
Account / sign-up required? No Sometimes
Which AI tools does it work with? Claude Code, Cursor, Codex, Cline, Windsurf, Antigravity, QCoder, and any other MCP-compatible host Usually just one specific tool (commonly Claude Code only)
Secret redaction Built in, on by default. Common credential shapes (API keys, tokens, password=... assignments, password is ... prose, private keys) are scrubbed before saving. Best-effort pattern matching, not a guarantee. Often not handled, or left to the user
Token budget control Injected memories are trimmed to a small, fixed token budget (see benchmarks below) Varies, often unbounded
Entity boost (optional) Case-insensitive names and explicit aliases add a bounded score boost alongside relevance, recency and importance. Local only, defaults off. Varies
Scopes Optional local context labels on sessions, memories and entity associations. Capture detects a directory or project label; queries can filter or boost a selected scope. All scopes by default. Varies
Old/stale memory cleanup Built-in retention policy automatically prunes old memories (configurable, on by default) Often no automatic cleanup ("memory rot")
Team sharing Optional, via a shared folder you already control (network drive, synced directory). No server needed. Usually requires a shared hosted backend
Offline-capable Yes. Works with no network connection by default. Usually requires network access to the memory service

The SQLite file is easy to inspect, back up, or delete, and you can use it across AI tools from different vendors.


Benchmark results

npm run benchmark evaluates conversational retrieval on the committed LoCoMo corpus: 10 conversations, 272 sessions, 5,882 turns, and 1,527 scored questions. It captures dialogue through the public storeMemory API and asks the original questions through retrieveMemories, fully offline with no API keys.

The evaluation reports hit rate, precision, recall, complete-evidence retrieval, and latency. Production retrieval uses offline BM25 ranking with English stemming; conversational questions test recall beyond exact copies of memory text. See benchmark results and the methodology, dataset license, and metric definitions.

npm run build
npm run benchmark
npm run benchmark -- --output benchmarks/results/locomo.json

How it works (in plain English)

        ┌──────────────────────────────────────────────┐
        │                  Your AI tool                 │
        │   (Claude Code, Cursor, Codex, Cline, ...)    │
        └───────────────────────┬──────────────────────┘
                                 │
                     ┌───────────▼───────────┐        ┌──────────────┐
                     │   sessionmem adapter   │        │ sessionmem   │
                     │ (translates for your   │        │     CLI      │
                     │   specific AI tool)    │        │ (you type    │
                     └───────────┬───────────┘        │  commands)   │
                                 │                     └──────┬───────┘
                                 ▼                            │
                     ┌──────────────────────────────────────────────┐
                     │              sessionmem core engine           │
                     │  watches sessions · writes summaries ·        │
                     │  finds relevant memories · trims to fit       │
                     └───────────────────────┬──────────────────────┘
                                              │
                                              ▼
                     ┌──────────────────────────────────────────────┐
                     │         One SQLite file on your computer      │
                     │     ~/.sessionmem/memories.db                 │
                     └──────────────────────────────────────────────┘
  • Adapters connect each AI tool to sessionmem. Supporting another tool doesn't require changing the memory engine.
  • The core engine stores memories, ranks their relevance, and selects what fits in the next session's context budget. Every adapter uses the same engine.
  • The database is a local file. You can back it up, move it, inspect it, or delete it.

See docs/architecture.md for the technical overview.


CLI command reference

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.catfish-1234/sessionmem

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229