session-memory

Store and load AI agent decisions, mistakes, and context across sessions.

Updated May 24, 2026
One-click install
npx skills add https://github.com/haJ1t/senior-dev-squad-skills --skill session-memory-haj1t
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-memory
Source: https://github.com/haJ1t/senior-dev-squad-skills/tree/main/plugins/senior-dev-squad/skills/session-memory
Command: npx skills add https://github.com/haJ1t/senior-dev-squad-skills --skill session-memory-haj1t

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill ensures that AI agents retain knowledge and context across sessions, reducing errors and improving decision-making.

Core Features & Use Cases

  • Cross-Session Memory: Stores decisions, mistakes, and repository context to prevent repetition and enhance learning.
  • Context Loading: Loads previous session information at the start of a new session.
  • Continuous Recording: Records decisions, mistakes, and discoveries during work.
  • Session End Processing: Compacts memory, creates session summaries, and verifies records.
  • Use Case: Ideal for long-running projects where agents need to remember project standards and avoid repetitive mistakes.

Quick Start

At the end of your session, run the command 'session-memory/session-end' to process your session memory.

Frequently Asked Questions about session-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I maintain cross-session memory for AI agents?

Cross-session memory for AI agents is maintained by reading and writing persistent session files to the file system, storing decisions, mistakes, and context to prevent repetition and enhance learning. You load previous context at session start and process it at the end.

Why does my AI agent repeat mistakes in long-running projects?

Your AI agent repeats mistakes because it lacks persistent cross-session memory. By recording decisions and discoveries to file system memory files during work, the agent loads this context at the start of a new session to avoid repetitive errors.

What's the best way to retain context across AI agent sessions?

The best way to retain context is to use a continuous recording mechanism that logs decisions during work and compacts memory at session end. This creates persistent session summaries that can be loaded when starting a new session.

Do I need file system access to manage persistent memory for AI agents?

Yes, you need file system access to manage persistent memory for AI agents. The session memory mechanism requires reading and writing access to store and load session memory files that contain decisions, mistakes, and repository context.

How do I process and compact memory at the end of an AI agent session?

To process and compact memory at the end of an AI agent session, run the session-end command. This compacts memory, creates session summaries, and verifies records to ensure that context is properly retained for future sessions.