Skip to content
Agentmart
Submit a tool

list-session

List Claude Code sessions in current directory (use -a for all)

Skill by chungchihhan

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/chungchihhan-list-session

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

List Claude Code sessions in current directory (use -a for all)

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/list-session

What's inside

Skill name
list-session
Description
List Claude Code sessions in current directory (use -a for all)
License
MIT
Instructions
65 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# List Sessions

List Claude Code sessions. By default, shows sessions in the current directory only.

## Task

List sessions with arguments: $ARGUMENTS

## Steps

1. Parse $ARGUMENTS:
   - `-a` = all directories (not just current)
   - `-N` = limit to N results (e.g., `-10`)
   - Default: current directory, 5 results

2. Note the current session ID: `$CLAUDE_SESSION_ID` (this is the session you're in right now)

3. Run the list command with `--json`:

```bash
${CLAUDE_PLUGIN_ROOT}/bin/super-resume list --json [parsed flags]
```

3. Parse the JSON response and format a table like this:

```
┌────┬────┬──────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────┬──────────────┐
│ #  │ 📌 │ Name                                                                                                 │ Tags         │ Time         │
├────┼────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────┼──────────────┤
│ 1  │ 📌 │ Fix authentication bug in the login flow that was causing users to be logged out unexpectedly        │ work, urgent │ Mar 09 14:30 │
│ 2  │    │ Add dark mode toggle to settings page with system preference detection                               │ feature      │ Mar 08 10:15 │
│ 3  │    │ Refactor database layer for better performance and connection pooling                                │ -            │ Mar 07 09:00 │
└────┴────┴──────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────┴──────────────┘
```

**Table rules:**

- Use box-drawing characters (┌ ┬ ┐ ├ ┼ ┤ └ ┴ ┘ │ ─)
- Name column: 100 characters wide, truncate with "..." if longer
- Tags column: show "-" if no tags, otherwise comma-separated
- Time column: format as "Mon DD HH:MM" (e.g., "Mar 09 14:30")
- Show 📌 emoji for pinned sessions, empty for unpinned
- **Highlight current session**: If a session's ID matches `$CLAUDE_SESSION_ID`, add " ← current" after the row

4. After the table, show:

```
Showing X of Y sessions.

Commands:
  /go <n>        Resume session (e.g., /go 1)
  /pin <n>       Pin a session
  /tag <n> <tag> Add tag to session
```

5. Remember the session list for subsequent `/go` commands.

## Examples

- `/list-session` - List 5 sessions in current directory
- `/list-session -a` - List 5 sessions from all directories
- `/list-session -10` - List 10 sessions in current directory
- `/list-session -a -10` - List 10 sessions from all directories

From chungchihhan/super-resume, MIT.

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Mar 9, 2026 (7 months ago)
Last release
Mar 15, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from chungchihhan

Cite this page

list-session skill. Agent Mart. https://agentmart.dev/skills/chungchihhan-list-session (last updated 2026-10-24)