Session Save

Capture session context into foxctl memory before compaction.

3|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/joshka0/foxctl --skill session-save-joshka0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Session Save
Source: https://github.com/joshka0/foxctl/tree/main/configs/skills-condensed/session-save
Command: npx skills add https://github.com/joshka0/foxctl --skill session-save-joshka0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents losing important thinking and task context by capturing your session state in foxctl memory right before compaction happens.

Core Features & Use Cases

  • Pre-Compaction Session Capture: Automatically records session state via a pre-compaction hook to preserve continuity.
  • Decision & Learning Preservation: Stores gotchas, learnings, and key decisions so future work doesn’t repeat mistakes.
  • Status & Summary Retention: Captures active task/todos and an optional session summary to maintain an accurate “where we are” snapshot.
  • Use Case: Before a long-running session is compacted, record what you’re working on and the important discoveries so your next step resumes with full context.

Quick Start

Run the skill with a manual trigger and a short summary of what you were working on and why.

Frequently Asked Questions about Session Save

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

FAQPage Schema
How do I preserve session context before context compaction in AI planning?

To preserve session context before context compaction, capture active tasks, plans, gotchas, decisions, and summaries into persistent memory. This prevents losing important thinking and task state by recording your session snapshot right before compaction happens.

What is session memory compaction and when do I need to save my workflow context?

Session memory compaction reduces context size in long-running AI sessions. You need to save workflow context when you are tracking tasks, plans, and decisions across a lifecycle and want to avoid losing key learnings before the session state is compacted.

How do I record active tasks and decisions before a development session compacts?

Record active tasks and decisions by running a pre-compaction hook mechanism that stores your active todos, plans from the Claude plans directory, gotchas, and key decisions into foxctl memory. You provide a manual trigger and a short summary of your work.

Can I maintain workflow continuity by saving gotchas and learnings across compaction?

Yes, you can maintain workflow continuity by saving gotchas and learnings. This approach stores key decisions and discoveries in memory so future work resumes with full context and does not repeat mistakes made in previous sessions.

Does saving session context before compaction require a pre-compaction hook mechanism?

Yes, saving session context before compaction requires a pre-compaction hook mechanism. This hook records your active task list, plans, gotchas, and user-provided summary with a trigger parameter into foxctl memory to preserve continuity.

What should I not expect from session context saving when dealing with context compaction?

Session context saving does not automatically restore your compacted session. It only captures an accurate where we are snapshot into memory before compaction, requiring you to manually retrieve the stored tasks, plans, and decisions for your next step.