cross-session-memory

Maintain project context across AI sessions using file-based memory files.

Updated Sep 1, 2025
One-click install
npx skills add https://github.com/mathur-exe/annotation-notes --skill cross-session-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cross-session-memory
Source: https://github.com/mathur-exe/annotation-notes/tree/main/PaperNotes/dotfiles/codex/skills/cross-section-memory
Command: npx skills add https://github.com/mathur-exe/annotation-notes --skill cross-session-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

Maintain a persistent project context across AI sessions and platforms by using a simple file-based context store that preserves important state and decisions.

Core Features & Use Cases

  • Cross-session context tracking using a dedicated docs/ directory and memory files.
  • Session resume and state summarization across tools (Cursor, Claude Code, Codex, etc.).
  • Easy onboarding via templates for AGENT.md, project.md, session.md, and memory.md to centralize knowledge.

Quick Start

Create the docs/ directory with AGENT.md, project.md, session.md, and memory.md, then start your first session by summarizing the current state from docs/session.md.

Frequently Asked Questions about cross-session-memory

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

FAQPage Schema
How do I maintain project context across AI coding sessions?

You can maintain project context across AI coding sessions by using a file-based context store with a dedicated docs/ directory containing AGENT.md, project.md, session.md, and memory.md files to preserve state and decisions.

Does cross-session memory work with Cursor and Claude Code?

Yes, cross-session memory supports multi-session AI coding tasks across tools like Cursor, Claude Code, and Codex by guiding session start, progress tracking, and memory accumulation through a file-based context system.

What's the best way to resume an AI coding session after closing it?

The best way to resume an AI coding session is to summarize the current state from docs/session.md, which tracks progress and operational instructions to seamlessly continue work across different platforms.

How do I set up a file-based context system for AI coding projects?

To set up a file-based context system, create a docs/ directory with AGENT.md, project.md, session.md, and memory.md templates, then start your first session by summarizing the current state from docs/session.md.

Why does my AI coding tool lose project state between sessions?

AI coding tools lose project state between sessions because they lack persistent context tracking, which can be resolved by implementing a file-based memory system that accumulates decisions and state in a docs/ directory.

Do I need any dependencies to track context across AI sessions?

No dependencies are required to track context across AI sessions; the system uses a YAML frontmatter with name and description fields, a body with operational instructions, and optional assets/scripts/references directories to extend functionality.