/pensyve:session-memoryfrom pensyve
Captures end-of-session decisions, outcomes, and patterns worth remembering, then stores confirmed items via Pensyve memory. Use when ending a work session.
Ships in pensyve. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze the current session for memorable decisions, outcomes, and patterns, then store confirmed items in Pensyve memory.
Note: As of the working-memory substrate update, most memorable items are already captured in-flight during the session by memory-woven skills (memory-informed-debug, memory-informed-design, memory-informed-longitudinal-work) and by the signal buffer's in-flight triggers. This skill handles residuals — items that weren't captured in-flight and still deserve to be saved. Before presenting candidates, call
pensyve_inspectto see what's already been captured this session and skip duplicates.
When this skill is invoked (typically at the end of a coding session), follow these steps:
Review the current session conversation for three categories of memorable content:
Decisions (confidence: 0.9):
Outcomes (confidence: 0.8):
Patterns (confidence: 0.7):
Skip routine, low-signal content that does not warrant long-term storage:
Check for duplicates via recall. For each candidate, call pensyve_recall with query: <candidate fact text>, entity: <candidate's entity>, limit: 3. If any returned memory has a score ≥0.85 against the candidate, skip it as a likely duplicate. Note: pensyve_inspect cannot filter by episode_id (its params are entity, memory_type?, limit? only), so this dedup check uses semantic similarity against the entity's full memory set rather than true session-scoped filtering. Consequence: very similar items captured in prior sessions will also trigger the skip — acceptable for avoiding genuine duplicates, but may miss newly-phrased variants of old memories.
Simple typo fixes or formatting changes
Routine file edits with no architectural significance
Standard boilerplate or scaffolding without decisions
Repeated application of known patterns (unless the pattern itself is new)
Content that is already stored in Pensyve (check via pensyve_recall with targeted queries)
Present the candidate memories to the user in a structured format:
Session Memory Candidates
Decisions (confidence: 0.9):
auth-service: Chose RS256 over HS256 for JWT signing to support key rotationapi-design: POST endpoints return 201 with the created resource, not 200Outcomes (confidence: 0.8): 3.
database: Migration script fails silently when Python < 3.11 -- added version checkPatterns (confidence: 0.7): 4.
testing: Integration tests that touch the filesystem need tmpdir cleanupWhich items should I store? (e.g., "all", "1,3", "none")
For each confirmed item, decide the storage type:
Episodic (observations) -- things that happened this session. Call pensyve_observe with:
episode_id: From the session state (set by SessionStart hook)content: The observation textsource_entity: "claude-code"about_entity: The inferred entity name (lowercase, hyphenated)content_type: "text" for decisions/patterns, "code" for code-related outcomesUse for: bug fixes, failed approaches, debugging outcomes, performance findings, session-specific events.
Semantic (durable facts) -- truths that persist beyond this session. Call pensyve_remember with:
entity: The inferred entity name (lowercase, hyphenated)fact: The memory textconfidence: 0.9 for decisions, 0.8 for outcomes, 0.7 for patternsUse for: architecture decisions, technology choices, user preferences, project conventions.
When in doubt, prefer pensyve_observe -- the consolidation engine promotes recurring patterns to semantic facts automatically.
Before storing, run pensyve_recall with a query matching the candidate fact to check for duplicates. If a highly similar memory already exists (score > 0.85), skip it and inform the user.
After storing, summarize what was saved:
Stored 3 memories:
auth-service: Chose RS256 over HS256 for JWT signing (confidence: 0.9)database: Migration script fails silently when Python < 3.11 (confidence: 0.8)testing: Integration tests need tmpdir cleanup (confidence: 0.7)
pensyve_remember. This is a hard requirement..claude/ memory files. All memory operations go through the Pensyve MCP tools exclusively.pensyve_remember fails, display the error and continue with remaining items.pensyve_recall (duplicate check) fails, proceed with storage but note that duplicate checking was skipped.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
session-memory, memory-capture, pensyve, knowledge-management
7 skills in this plugin
/context-loaderSession start context priming -- loads relevant memories from Pensyve at the beginning of a session to provide continuity across sessions. Use when switching projects or needing historical context./memory-informed-debugDebug with working memory -- before diagnosing, recall prior root causes and known-good diagnostic procedures; when a root cause is confirmed, capture it immediately. Use whenever debugging a non-trivial failure./memory-informed-designArchitecture/design decisions with working memory -- before recommending, recall prior decisions and tradeoffs; when a decision is made, capture it immediately. Use for any substantive design question.npx claudepluginhub major7apps/pensyve --plugin pensyveOther plugins' skills for the same job