Skip to main content
CLI/pd sessions
CLI command · v3.30.6

pd sessions

List active or historical sessions.

Syntax

Run pd sessions like this

pd sessions
API spec

Command contract

Canonical command

pd sessions

Reference route

/docs/cli/sessions

Reference group

Sessions, Notes, Recovery, And Evidence

Runtime path

Daemon client with direct-mode fallback where supported

Source

cli/commands/sugar.ts, cli/commands/sessions.ts, cli/commands/say.ts, cli/commands/look.ts, cli/commands/sitrep.ts, cli/commands/resurrection.ts

Aliases

none

Output mode

human display plus --json machine output

Page type

generated API spec from the source-backed catalog

See the command surfaces this reference keeps in play

This clip shows the daemon health check, command discovery, and message-loop patterns that recur across the CLI reference. Here it grounds the pd sessions reference: daemon health, discovery, and message-loop patterns these pages keep pointing back to.

Usage patterns

Common ways this command shows up in practice

pd sessions belongs to Sessions, Notes, Recovery, And Evidence. Create the audit trail: sessions, file claims, notes, activity, briefing, salvage, and catch-up commands.

Daemon client with direct-mode fallback where supported. Validate live behavior from the daemon and handler source when changing this command.

Use this page as the stable public contract for pd sessions; aliases resolve to the same contract.

Flags

Options that change command behavior

--all

Include all available rows instead of the default active subset.

--status

Filter rows by lifecycle status.

--all-worktrees

Include active sessions from every known worktree.

--json

Return machine-readable JSON instead of the human display.

Examples

Example 01

Run pd sessions from a coordinated checkout

CLI
pd sessions
Output
Prints the changed record or lookup result; use --json when you need the exact machine-readable shape.
Example 02

Find this command from the full CLI reference

CLI
pd help sessions
open /docs/cli/sessions
Output
The help topic and docs route both describe pd sessions, including aliases, flags, and source provenance.