Sign in
Explore
Prompts · PromptEveryday codingReviewed

sessions

Manage Claude Code session history, aliases, and session metadata.

Kind
Prompt
Works with
Claude Code, Codex
Source
affaan-m/ECC @ d3b8a3e90890
Path
commands/sessions.md
License
MIT
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Sessions Command

Manage Claude Code session history - list, load, alias, and edit sessions stored in `~/.claude/session-data/` with legacy reads from `~/.claude/sessions/`.

## Usage

`/sessions [list|load|alias|info|help] [options]`

## Actions

### List Sessions

Display all sessions with metadata, filtering, and pagination.

Use `/sessions info` when you need operator-surface context for a swarm: branch, worktree path, and session recency.

```bash
/sessions                              # List all sessions (default)
/sessions list                         # Same as above
/sessions list --limit 10              # Show 10 sessions
/sessions list --date 2026-02-01       # Filter by date
/sessions list --search abc            # Search by session ID
```

**Script:**
```bash
node -e "
…