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.1.tar.gz (36.5 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.1-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

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

Hashes for session_engram-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c74e63e4463cbdc2b5e21e3c910949ace9cd4d0cc77117a5cc2ff7b933508e0b
MD5 f8d2c1cf3053b8b8c963e54bc48a1b38
BLAKE2b-256 8e1ecf3a74585b5c7489cc415b6f48e14d6f34d2becd027cea0f77dd1fa3ebf2

See more details on using hashes here.

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

Hashes for session_engram-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40bc28d52369936f675c74f50d9e5c4d3fbc93a7cfd257d0c922dfe8d4e97c4b
MD5 6d328483278c505e3a5249fcf0278eee
BLAKE2b-256 4d9ce65c12ea8aa621c973960596a7b010da5efeeaceda0a5f0ca2a92ae88860

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