Skip to main content
command CX Codex

/sc:load — Claude Code command: project context loading

A Claude Code command that loads project context via Serena MCP and restores cross-session memory. Runs at session start or when switching between projects.

MIT ★ 23,950 updated 2026-09-27

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/load.md
Open on GitHub

What load does

/sc:load is part of the SuperClaude Framework. When called, it connects to Serena MCP, scans the project structure, pulls stored memories and checkpoints, then locks in the session context. Core operations target under 200 ms; checkpoint creation stays under 1 s.

The command takes an optional project path and flags: --type project|config|deps|checkpoint, --refresh, and --analyze. Combining --type checkpoint with --checkpoint <id> fully restores a specific past session. The --refresh flag forces a fresh dependency map when loading with --type deps.

Serena MCP is a hard requirement. Without it, the command cannot activate a project or read cross-session memory — /sc:load will not function as intended.

What it helps with

  • Load project context at the start of a new Claude Code session
  • Restore a previous session from a specific checkpoint
  • Rebuild the dependency map after project changes
  • Switch between projects while keeping each context intact
  • Preserve and hand off session state across agent runs

Example prompts for the agent

  • Run /sc:load to load context for the current directory
  • Restore a checkpoint: /sc:load --type checkpoint --checkpoint session_123
  • Refresh dependency context: /sc:load --type deps --refresh

How to install load

Manually: put the files in place

.claude/commands/load.md

Call it with /load. For all projects use ~/.claude/commands/

Questions about load

How do I install /sc:load in Claude Code?

Place load.md in your project's .claude/commands/ directory and the command becomes available as /sc:load.

What does /sc:load do?

It activates your project through Serena MCP — scanning structure, retrieving stored memories and checkpoints from prior sessions, and establishing context for the current session.

Does /sc:load work without Serena MCP?

No. Serena MCP is a mandatory integration. Cross-session memory retrieval and checkpoint restoration both depend on it; without a connected Serena instance the command cannot complete project activation.

Source text

load.md · MIT
---
name: load
description: "Session lifecycle management with Serena MCP integration for project context loading"
category: session
complexity: standard
mcp-servers: [serena]
personas: []
---

# /sc:load - Project Context Loading

## Triggers
- Session initialization and project context loading requests
- Cross-session persistence and memory retrieval needs
- Project activation and context management requirements
- Session lifecycle management and checkpoint loading scenarios

## Usage
```
/sc:load [target] [--type project|config|deps|checkpoint] [--refresh] [--analyze]
```

## Behavioral Flow
1. **Initialize**: Establish Serena MCP connection and session context management
2. **Discover**: Analyze project structure and identify context loading requirements
3. **Load**: Retrieve project memories, checkpoints, and cross-session persistence data
4. **Activate**: Establish project context and prepare for development workflow
5. **Validate**: Ensure loaded context integrity and session readiness

Key behaviors:
- Serena MCP integration for memory management and cross-session persistence
- Project activation with comprehensive context loading and validation
- Performance-critical operation with <500ms initialization target
- Session lifecycle management with checkpoint and memory coordination

## MCP Integration
- **Serena MCP**: Mandatory integration for project activation, memory retrieval, and session management
- **Memory Operations**: Cross-session persistence, checkpoint loading, and context restoration
- **Performance Critical**: <200ms for core operations, <1s for checkpoint creation

## Tool Coordination
- **activate_project**: Core project activation and context establishment
- **list_memories/read_memory**: Memory retrieval and session context loading
- **Read/Grep/Glob**: Project structure analysis and configuration discovery
- **Write**: Session context documentation and checkpoint creation

## Key Patterns
- **Project Activation**: Directory analysis → memory retrieval → context establishment
- **Session Restoration**: Checkpoint loading → context validation → workflow preparation
- **Memory Management**: Cross-session persistence → context continuity → development efficiency
- **Performance Critical**: Fast initialization → immediate productivity → session readiness

## Examples

### Basic Project Loading
```
/sc:load
# Loads current directory project context with Serena memory integration
# Establishes session context and prepares for development workflow
```

### Specific Project Loading
```
/sc:load /path/to/project --type project --analyze
# Loads specific project with comprehensive analysis
# Activates project context and retrieves cross-session memories
```

### Checkpoint Restoration
```
/sc:load --type checkpoint --checkpoint session_123
# Restores specific checkpoint with session context
# Continues previous work session with full context preservation
```

### Dependency Context Loading
```
/sc:load --type deps --refresh
# Loads dependency context with fresh analysis
# Updates project understanding and dependency mapping
```

## Boundaries

**Will:**
- Load project context using Serena MCP integration for memory management
- Provide session lifecycle management with cross-session persistence
- Establish project activation with comprehensive context loading

**Will Not:**
- Modify project structure or configuration without explicit permission
- Load context without proper Serena MCP integration and validation
- Override existing session context without checkpoint preservation

© SuperClaude-Org · MIT · SuperClaude-Org/SuperClaude_Framework

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set56

The whole set →

Project sponsors

Companies that keep this analytics open