🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

session-forge

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

session-forge

Session intelligence for AI coding assistants. Persistent memory, decisions, dead ends, crash recovery. Zero infrastructure.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
46
-23.33%
Maintainers
1
Weekly downloads
 
Created
Source

session-forge

Never start from zero. Persistent session intelligence for AI coding assistants.

Session-forge gives your AI coding assistant memory that survives across sessions. It tracks decisions, dead ends, user preferences, and session state — so every conversation builds on the last one instead of starting from scratch.

Works with Claude Code, Cursor, Windsurf, and any MCP-compatible client.

What it does

  • Session crash recovery — checkpoint your work, pick up where you left off
  • Decision logging — record why you chose X over Y, search it later
  • Dead end tracking — never repeat the same debugging mistake twice
  • User profile — AI remembers your name, preferences, and projects
  • Session journal — capture the journey, not just the task
  • Full context recall — bootstrap a new session with everything in one call

Quick start

Claude Code

claude mcp add session-forge -- npx session-forge

Cursor / Windsurf

Add to your MCP settings:

{
  "mcpServers": {
    "session-forge": {
      "command": "npx",
      "args": ["-y", "session-forge"]
    }
  }
}

That's it. No database, no Docker, no config files.

The 12 tools

Sessions

ToolDescriptionRequired
session_checkpointSave work-in-progress state for crash recoverytask, intent, next_steps
session_restoreCheck for interrupted work from a previous session
session_completeArchive session and mark complete

Profile

ToolDescriptionRequired
profile_getGet the current user profile
profile_updateUpdate name, preferences, projects, or notes

Journal

ToolDescriptionRequired
journal_entryRecord session summary with breakthroughs and frustrationssummary
journal_recallRetrieve recent session journals

Decisions

ToolDescriptionRequired
decision_recordLog a significant decision with alternatives and reasoningchoice, reasoning
decision_searchSearch past decisions by keywordquery

Dead Ends

ToolDescriptionRequired
dead_end_recordLog a failed approach and the lesson learnedattempted, why_failed
dead_end_searchSearch past dead ends to avoid repeating mistakesquery

Context

ToolDescriptionRequired
full_context_recallGet everything — profile, journals, decisions, dead ends

Why session-forge?

session-forgeBasic memory MCPsEnterprise tools
Setupnpx session-forgeVariesDocker + databases
Dead end trackingYesNoNo
Decision loggingYesNoSome
Session crash recoveryYesSomeYes
User profileYesSomeNo
Dependencies2 (SDK + zod)Varies5-10+
InfrastructureZero (plain JSON)SQLite/ONNX/Vector DBPostgreSQL + Redis
Tools12 focused4-937+

Storage

All data is stored locally as plain JSON files:

PlatformLocation
Linux / macOS~/.session-forge/
Windows%APPDATA%\session-forge\

Override with the SESSION_FORGE_DIR environment variable:

SESSION_FORGE_DIR=/custom/path npx session-forge

Files:

~/.session-forge/
  profile.json        # User preferences and projects
  journal.json        # Session summaries (last 100)
  decisions.json      # Decision log (last 200)
  dead-ends.json      # Failed approaches (last 100)
  sessions/
    active.json       # Current checkpoint
    history/          # Archived sessions

CLAUDE.md template

Add this to your project's CLAUDE.md to teach the AI when to call each tool:

## Session Flow

### Fresh session
1. Call `full_context_recall` — get profile, journals, decisions, dead ends
2. Call `session_restore` — check for interrupted work

### During work
- `decision_record` — when making a significant architectural choice
- `dead_end_record` — when something fails and we learn why
- `session_checkpoint` — every 10-15 tool calls during long sessions

### Session end
1. Call `journal_entry` — record what happened
2. Call `session_complete` — archive the checkpoint

License

MIT

Built by Jacob Terrell

Keywords

mcp

FAQs

Package last updated on 07 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts