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
Engram: The physical trace of memory in the brain.
Cross-dialogue session memory system — persistent context, reusable experience, AI automatic recall.
What is Session-Engram?
Session-Engram is a cross-session memory system for AI coding assistants. It solves two fundamental problems:
-
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.
-
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.mdis 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
- Full English Documentation: README_EN.md
- 完整中文文档: README_CN.md
License
MIT - See LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file session_engram-1.0.1.tar.gz.
File metadata
- Download URL: session_engram-1.0.1.tar.gz
- Upload date:
- Size: 36.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c74e63e4463cbdc2b5e21e3c910949ace9cd4d0cc77117a5cc2ff7b933508e0b
|
|
| MD5 |
f8d2c1cf3053b8b8c963e54bc48a1b38
|
|
| BLAKE2b-256 |
8e1ecf3a74585b5c7489cc415b6f48e14d6f34d2becd027cea0f77dd1fa3ebf2
|
File details
Details for the file session_engram-1.0.1-py3-none-any.whl.
File metadata
- Download URL: session_engram-1.0.1-py3-none-any.whl
- Upload date:
- Size: 44.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40bc28d52369936f675c74f50d9e5c4d3fbc93a7cfd257d0c922dfe8d4e97c4b
|
|
| MD5 |
6d328483278c505e3a5249fcf0278eee
|
|
| BLAKE2b-256 |
4d9ce65c12ea8aa621c973960596a7b010da5efeeaceda0a5f0ca2a92ae88860
|