Skip to main content

Cross-session memory system for AI coding assistants. Persists conversation context, task progress, and reusable experiences across sessions via Markdown files. Features Hook-powered auto-recall, interactive knowledge graph visualization, chronological timeline, and global experience library. Supports Claude Code, Cursor, and OpenCode.

Project description

Session-Engram

License: MIT Python 3.9+

Engram: The physical trace of memory in the brain.

Cross-dialogue session memory system — persistent context, reusable experience, AI automatic recall.

English | 中文


What is Session-Engram?

Session-Engram is a cross-session memory system for AI coding assistants. It solves two fundamental problems:

  1. Cross-Session Memory Loss — When a conversation gets too long, starting a new session yields better results. But the new session cannot reuse the previous session's memory.

  2. Experience Doesn't Carry Over — Effective solutions and lessons learned during programming live only in the current session and are lost when it ends.

How It Works

Session-Engram stores session memory and experiences as structured Markdown files, then uses a Hook mechanism to make the AI automatically read them at the start of each new session.

  • Storage layer: Sessions and Experiences stored as Markdown files — human-readable, AI-readable, Git-trackable
  • Index layer: index.md is a lightweight summary, avoiding stuffing all memory into context (saves tokens)
  • Activation layer: Hook + rule injection makes AI "passively triggered" rather than "actively remembering"

Quick Start

pip install session-engram

# Initialize .engram directory (auto-installs AI platform integration)
sengram init

# Generate memory map (relationship graph)
sengram map

# Generate timeline (log view)
sengram timeline

# Generate memory index (AI entry point)
sengram index

Documentation

License

MIT - See LICENSE

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

session_engram-1.0.0.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

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

session_engram-1.0.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file session_engram-1.0.0.tar.gz.

File metadata

  • Download URL: session_engram-1.0.0.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for session_engram-1.0.0.tar.gz
Algorithm Hash digest
SHA256 582392d4ffe8ec8defa8e86136d17592310e5e87b47f867e981deff8d50bede1
MD5 0682181966dcb8b9a6288bf334d39947
BLAKE2b-256 cd567d1c417ffff8f9940bdc98fffe3a14be1e744defa9d82434e60688306371

See more details on using hashes here.

File details

Details for the file session_engram-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: session_engram-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for session_engram-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75cea4310a19cc554747a299fce6dd64c6d687c6ea8349dddd10a5aac31a4846
MD5 79a8863b1ad72011d4365b1971cb1afa
BLAKE2b-256 ccf42cebe638e94d43653ab4ac468794579510f152bf84804a0e9bc23b12ac84

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