Skip to content

[Feature] Add kbot sessions CLI command to list saved sessions #13

@fuleinist

Description

@fuleinist

Problem

The /sessions command only works inside the interactive REPL. Users cannot list saved sessions from the command line without entering interactive mode first.

Proposed Solution

Add a kbot sessions CLI command that lists all saved sessions (similar to how /sessions works in REPL mode).

Example Usage

# List all saved sessions from command line
kbot sessions

# Could also support JSON output for scripting
kbot sessions --json

Alternatives Considered

Currently, users must start the REPL with kbot and then type /sessions to see saved sessions. This is fine for interactive use but inconvenient for quick checks or scripting.

Additional Context

The sessions.ts module already has listSessions() and formatSessionList() functions that the REPL uses. This would expose the same functionality as a top-level CLI command, following the pattern of other CLI commands like kbot vitals, kbot status, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions