@runloop/agent-axon-client
    Preparing search index...

    Type Alias ListSessionsOptions

    Options for listing sessions.

    type ListSessionsOptions = {
        dir?: string;
        includeWorktrees?: boolean;
        limit?: number;
        offset?: number;
    }
    Index

    Claude SDK

    dir?: string

    Directory to list sessions for. When provided, returns sessions for this project directory (and optionally its git worktrees). When omitted, returns sessions across all projects.

    includeWorktrees?: boolean

    When dir is provided and the directory is inside a git repository, include sessions from all git worktree paths. Defaults to true.

    limit?: number

    Maximum number of sessions to return.

    offset?: number

    Number of sessions to skip from the start of the sorted result set. Use with limit for pagination. Defaults to 0.