Skip to main content

/save & /resume - Session Persistence

Save and restore work context between Claude Code sessions, preserving tasks, files, notes, and next steps.

Commands

/save

Save current session context

/resume

Restore previous session context

/save Command

Syntax

No parameters required. Command is interactive.

What Gets Saved

Execution Flow

1

Read Current Session

2

Prompt User for Context

3

Update Session Files

Saves to two locations:CURRENT-SESSION.md (human-readable):
CONTEXT.json (machine-readable):
4

Confirm to User

Example Interaction

/resume Command

Syntax

No parameters required.

What Gets Loaded

Execution Flow

1

Load Session Files

2

Display Summary

3

Await User Confirmation

User can:
  • Proceed with suggested next steps
  • Do something else
  • Update the context

Example Interaction

Storage Location

Only the most recent session is kept in CURRENT-SESSION.md. Previous sessions are archived to history/ by date.

Session Status Values

Best Practices

1. Save at Natural Break Points

Good times to save:

2. Be Specific in Notes

Good vs bad notes:

3. List Important Files

Include files you’ll need to reference:

4. Clear Next Steps

Make it easy to resume:

5. Update Status Regularly

If task status changes:

Use Cases

Multi-Session Projects

Blocked Workflows

Handoff Between Sessions

Troubleshooting

”No session to resume”

Issue: /resume finds no saved context Solution:

“Session is stale”

Issue: Last save was weeks ago, context outdated Solution:

“Context doesn’t match reality”

Issue: Session says “pending” but files are actually processed Solution:

Advanced: Session Hooks

Mega Brain includes session hooks that auto-save/restore:
  • SessionStart hook - Offers to resume if session exists
  • Stop hook - Reminds to save before closing
These run automatically. You can also manually /save anytime.

Session Persistence Tips

1. One Session Per Goal

2. Archive Completed Sessions

3. Session Templates

For recurring workflows:

Next Steps

JARVIS Briefing

Check system state after resuming

Workflow Guide

Learn optimal processing workflows

Session Hooks

Understand auto-save/restore behavior

Logging System

Explore comprehensive logging