Claude Code Memory: Stop Losing Context Between Sessions

    by Kapish Bansal

    1

    Your coding agent remembers decisions, gotchas and where it left off, across sessions and tools. Local, signed, no account needed.

    $25

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude Code Memory: Stop Losing Context Between Sessions

    Example session with this skill installed

    Continue on the orders service.

    • Read your context and instructions
    • Compiled the claude code memory

    Summary

    A new session (here Cursor, on Wednesday) recalls what Monday's Claude Code session left in memory, then picks up exactly where it stopped. Tool outputs are real, captured from meridianos mcp start.

    Step 1: recall the last handoff

    memory_latest  {"stream": "handoff", "n": 1}
    → Agent: f1af6f18-…
      Time: 2026-11-29T17:02:11+00:00
      Handoff: orders service database.
      Done: Postgres in docker-compose.yml, schema + migration 001 in services/orders/migrations, tests passing with -n 4.
      In progress: nothing half-done.
      Next step: add the order_items table and the GET /orders/{id} endpoint.
      Open questions: soft-delete or hard-delete for cancelled orders? (asked user)
    

    Step 2: search for related decisions and gotchas

    memory_search  {"query": "Postgres orders"}
    → Agent: d92a3f38-…
      Decision: use Postgres (not MongoDB) for the orders service.
      Why: reporting needs multi-table joins (user, 2026-11-29).
      ---
      Agent: d92a3f38-…
      Finding: pytest-xdist with more than 4 workers exhausts Postgres connections.
      Fix / workaround: scope the engine fixture to session.
    

    What the agent tells you

    Memory: Monday's session set up Postgres for orders (chosen for reporting joins) and left off before order_items and GET /orders/{id}. One open question: soft- or hard-delete for cancelled orders? Also noting tests must run with -n 4.

    Next steps

    • Answer the open question, and the agent continues with order_items and the endpoint
    • At the end of the session it writes a new handoff, so the next session (any agent) can resume the same way

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Claude Code forgets your decisions, gotchas and progress every new session or after /compact. This skill gives it persistent memory: it recalls where you left off, records decisions with the reason, and writes a handoff any agent (Claude Code, Cursor, Windsurf) can pick up. Local, signed, no account. Works over MCP.

    What you get:

    • One-command installer (scripts/install.sh) that installs MeridianOS from PyPI and registers its MCP server with Claude Code
    • scripts/doctor.py: checks the install, MCP server, tools and storage, and prints the exact fix for anything wrong
    • A memory protocol: what to recall at session start, which decisions and gotchas to record, how to write entries that search finds, and an end-of-session handoff note
    • Entry templates (decision, finding, preference, handoff), a full MCP tool reference with real outputs, Python SDK reference and troubleshooting
    • A worked two-session example (Claude Code hands off to Cursor) and a runnable Python example

    Requirements: Python 3.11+. Memory is stored locally in ~/.meridianos/ (SQLite + blob files); nothing leaves your machine.

    Open source (MIT). MeridianOS is on PyPI as meridianos.

    Search requires literal keywords, not paraphrases. Requires local MeridianOS MCP server installation. Does not support secrets or personal data storage.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Software
    Python 3.11+

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill addresses 'agent amnesia' by creating a persistent, local database that stores architecture decisions, task progress, and handoffs, allowing agents to retain context even after a session ends or the context window resets.

    Agent Context Memory works with any AI agent that supports the Model Context Protocol (MCP), including popular tools like Claude Code, Cursor, and Windsurf.

    The skill uses MeridianOS to store data in a local, Ed25519-signed event stream on your machine, ensuring your project context remains private and under your control rather than on a third-party cloud.

    Run `scripts/install.sh`. It installs MeridianOS from PyPI and registers its MCP server with Claude Code. Then run `scripts/doctor.py`, which checks the install, the MCP server, its tools and storage, and prints the exact fix for anything wrong. Requires Python 3.11+.

    Unlike basic prompting, this skill uses a structured schema and protocol to filter and save only high-value information, preventing your context window from being flooded with irrelevant logs or conversation history.

    The SKILL.md memory protocol, a one-command installer (`scripts/install.sh`), a health check (`scripts/doctor.py`), entry templates, a full MCP tool reference with real outputs, a Python SDK reference, troubleshooting notes, and worked examples. MeridianOS itself is installed from PyPI by the installer. The skill is free.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.