Skip to content

Feature: In-TUI session management commands (/sessions list, browse, delete, etc.) #56280

Description

@c936637238

Feature Description

Currently, the Hermes TUI has great slash commands for session control within a conversation (/new, /resume, /branch, /title, /compress, /history, etc.). But when you want to browse all sessions, delete old ones, rename them, or export them, you have to exit the TUI entirely and drop back to the WSL/terminal CLI:

hermes sessions list
hermes sessions browse
hermes sessions delete <id>
hermes sessions rename <id> <name>
hermes sessions export <path>
hermes sessions prune

This breaks the experience — it feels like using a software where you have to quit to the OS terminal just to manage your files.

Motivation

  • Hermes is already an application; session management should be doable inside it
  • The TUI already has a rich slash-command system — this is a natural extension
  • /sessions would make Hermes feel like a complete standalone tool, not a CLI wrapper

Proposed Solution

A /sessions slash command that opens an interactive TUI panel (similar to hermes sessions browse but inside the current TUI session), supporting:

  1. List view — all sessions sorted by date, showing title, message count, date, model
  2. Arrow-key navigation — ↑↓ to select, Enter to switch into that session
  3. Keyboard shortcutsd to delete, r to rename, e to export
  4. Search/filter — type to filter session list by keyword
  5. Subcommands for quick operations without opening the panel:
    • /sessions list — inline list in chat
    • /sessions delete <id> — quick delete
    • /sessions prune — cleanup old sessions

Alternatives Considered

  1. Keep using hermes sessions CLI → breaks the TUI immersion
  2. Ask the agent to run CLI commands for you → works, but not interactive/visual enough

Mockup

┌─ Sessions ──────────────────────────────────────────┐
│ 🔍 Filter: [                                          ] │
│                                                       │
│  ▶ 2026-07-01  hermes setup           42 msgs  deep  │
│    2026-06-30  debug cron job         18 msgs  claude │
│    2026-06-28  research GRPO           8 msgs  claude │
│                                                       │
│  [Enter] Open  [d] Delete  [r] Rename  [e] Export     │
│  [Esc] Back                                           │
└───────────────────────────────────────────────────────┘

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havearea/sessionsSession lifecycle, resume, persistence, historycomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions