slm-session

Solid

Manage SuperLocalMemory session lifecycle — call session_init once at the start of every fresh session to load relevant project context and get a session_id; call close_session when work is meaningfully complete to commit temporal summaries. Correct lifecycle hygiene is what makes SLM's learning loop work.

AI & Automation 199 stars 34 forks Updated today AGPL-3.0

Install

View on GitHub

Quality Score: 88/100

Stars 20%
77
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# slm-session — Session Lifecycle Hygiene Session lifecycle is the mechanism that makes SuperLocalMemory's learning loop work. Without it, recall signals are not attributed and temporal summaries are not written. This is not optional housekeeping — it is load-bearing. --- ## The lifecycle in one diagram ``` Session starts | v session_init(project_path, query) |--- returns session_id, context, memories | v Use session_id in every recall() and remember() call | v Work completes | v close_session(session_id) |--- writes temporal summaries to DB ``` --- ## session_init — call once per fresh session ### When to call Call `session_init` exactly once at the start of every fresh session, before any `recall` or `remember`. Never call it twice in a session — the second call would generate a new `session_id` and break signal attribution for any prior recalls or remembers in that session. ### Signature ``` session_init( project_path: str = "", # working directory path, e.g. "/Users/me/projects/foo" query: str = "", # topic override; if omitted, derived from project_path max_results: int = 10, # max memories to return (default: 10) max_age_days: int = 30, # suppress memories older than N days unless score >= 0.7 # set to 0 to disable the age gate entirely ) ``` ### What it does 1. Derives a search query from `project_path` (or uses your explicit `query`). 2. Runs a 2-tier recall: f...

Details

Author
qualixar
Repository
qualixar/superlocalmemory
Created
5 months ago
Last Updated
today
Language
Python
License
AGPL-3.0

Similar Skills

Semantically similar based on skill content — not just same category