-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Save current context window with rlm remember (no args) #38
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
When rlm remember is called with no arguments (via MCP rlm_remember with no content), it should archive the current active Claude Code session — essentially an on-demand version of what the PreCompact and SessionEnd hooks already do.
Motivation
Users sometimes want to explicitly save the current conversation context before it gets compacted or the session ends. This gives manual control over what gets preserved in memory.
Proposed Behavior
rlm rememberwith no content → detect the active session JSONL file, run the same two-tier archival pipeline (summary + compressed transcript + fact extraction)- Should reuse the existing
archive_session()logic inrlm/archive.py - MCP:
rlm_remembercalled with empty/missingcontentparameter triggers this behavior - Output should confirm what was saved (session ID, summary size, transcript size)
Acceptance Criteria
-
rlm rememberwith no args archives the current session - Reuses existing archival pipeline (no duplicate logic)
- Deduplication works (re-running doesn't create duplicate entries)
- MCP tool works the same way
- Tests cover the new code path
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request