Skip to main content

Persistent memory layer for AI coding agents (Cursor / VS Code). Auto-summarizes sessions to Markdown / Obsidian.

Project description

agent-mem

Persistent memory layer for AI coding agents (Cursor, VS Code + Claude Code, etc.)

Tired of repeating context every time you start a new chat? agent-mem automatically maintains a clean project memory file so your agent always knows what happened before - without bloating the context window.

Features

  • Simple local fallback: .agent-memory/memory.md
  • Optional Obsidian vault support (with full graph view, backlinks, Canvas)
  • Auto-generates strong agent instruction rules
  • Zero extra models or API keys needed
  • Works with any MCP-compatible IDE (Cursor, VS Code, etc.)
  • Extremely lightweight

Installation

pip install easy-agent-mem

Quick Start

# 1. One-time setup
agent-mem init

# 2. (Recommended) Add the generated rules to your IDE
#    - Cursor: Settings -> Custom Instructions
#    - VS Code: Create CLAUDE.md or .claude/instructions.md in project root

During init you can:

  • Provide an Obsidian vault path (optional)
  • Or just press Enter to use the simple local .agent-memory/memory.md fallback

How It Works

  1. agent-mem init creates:

    • AGENT-MEM-RULES.md (strong instructions for the agent)
    • .agent-memory/memory.md (or Obsidian notes)
  2. Add the rules from AGENT-MEM-RULES.md to your IDE's custom instructions.

  3. From then on, your agent will:

    • Read memory first in every new chat
    • Summarize sessions when context gets long
    • Keep a clean, persistent project history

Example Usage in Chat

Tell your agent:

"Summarize this session for memory"

It will create a clean summary and append it to memory. Then start a fresh chat - the agent will automatically load the latest memory.

Commands

agent-mem init          # Setup (Obsidian optional)
agent-mem status        # Show current config
agent-mem --help        # Full help

Project Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy_agent_mem-0.3.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easy_agent_mem-0.3.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file easy_agent_mem-0.3.0.tar.gz.

File metadata

  • Download URL: easy_agent_mem-0.3.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for easy_agent_mem-0.3.0.tar.gz
Algorithm Hash digest
SHA256 60b7bff3d12484e92c8b4e98cfd2cebfc6da3eb92e91caff2503482f5f811215
MD5 e3810e786310e9d95579651818f4c4f3
BLAKE2b-256 a8bc26bfb672c6e9ff84ce4042fb5b26d6b14dfb9e75c9592cd9b8d7501d83b7

See more details on using hashes here.

File details

Details for the file easy_agent_mem-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: easy_agent_mem-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for easy_agent_mem-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c07162b32f23f26b1b869e6c7004a3794f4f8c48a657771918b39bda740191d1
MD5 38fd1f4f4f56e85d4bf22d45d81d649f
BLAKE2b-256 23571bf3d58fc1d5811723181e612916174093a5978781be6cc240e4ca30a762

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page