Skip to content

feat: interactive TUI for agent execution and session management #8

Description

@Cloud370

Motivation

The current kuku REPL (bare kuku without arguments) is minimal: no session management, only y/n permissions, no subagent visibility, no completion. Users need an interactive interface to fully leverage the SDK's capabilities.

Proposal

Build a TUI with ratatui + crossterm, replacing the bare REPL when kuku is invoked without arguments:

  • Session management: auto-continue latest session, session switching panel
  • Structured streaming output: collapsible thinking blocks, turn markers, highlighted tool calls/results
  • Permission interaction: all four PermissionChoice options (Once/Session/Project/Deny)
  • Subexec views: Tab into agent/tool sub-execution for real-time observation
  • Tab completion: built-in commands + skill names
  • Extensible architecture: model switching, theme customization (future)

Non-TUI modes (kuku run "prompt", piped, --json, --stream-json) are unaffected.

Alternatives considered

  • crossterm-only line mode (original plan): simpler but can't do view switching for subagents, no fixed input area, no structured output navigation. Rejected because subagent observation is a core requirement.
  • reedline standalone: excellent line editor but no output rendering capability at all.
  • iocraft: promising declarative API but small ecosystem (1.3k stars), tokio compatibility uncertain.
  • cursive: widget model oriented toward forms/menus, not REPL-style interfaces.

Affected scope

SDK + CLI

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions