Skip to content

Implement slash command system for Ink TUI #123

Description

@randomm

Phase 3 of Ink TUI Rewrite

Objective

Port existing slash command system to Ink architecture.

Commands to Implement

CommandDescription
/helpShow help
/clearClear screen
/agent [name]Switch agent
/model [name]Switch model
/submodel [name]Switch model for subagents only
/session [id]Switch session
/sessionsList sessions
/newNew session
/compactToggle compact mode
/quitExit

Tasks

  • Create src/cli/ink/commands/registry.ts
  • Create command handlers
  • Implement help command
  • Implement agent/model/submodel switching with SelectMenu
  • Implement session management commands
  • Wire up command execution in InputLine

Acceptance Criteria

  • All 10 commands work
  • /help shows all commands
  • /agent, /model, /submodel show selection menus
  • Unknown commands show error

Estimated: 1 day

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