Session list

From the-agency-ai/the-agency · View interactive version

Session list is an AI agent skill from the GitHub repository the-agency-ai/the-agency. List past Claude Code sessions with metadata (date, branch, directory, size, first message)

How to use this skill

Skill file

<!--

Flag #62/#63: allowed-tools removed. Inherits Bash(*) from

.claude/settings.json. Restricting to specific subcommand patterns at the

skill level silently blocks agents on permission prompts the agent cannot

see — see dispatch #171 for the devex incident that surfaced this trap.

-->

Session List

List all Claude Code sessions for this project with metadata.

Arguments

Steps

  1. Find session files: Glob ~/.claude/projects/*/*.jsonl (exclude subagent files).
  1. Extract metadata from each file's first user message line:
  1. Filter by --branch or --since if specified.
  1. Display as table sorted by date (newest first):

```

| Date | Branch | Directory | Size | First Message | Session ID |

|------------|---------------------|------------------------------|-------|------------------------|------------|

| 2026-03-20 | proto/proto-tooling | .worktrees/proto-tooling/ | 3.5MB | resume | abc123... |

```

  1. Show the session ID so the user can pass it to /session-read.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.