Skip to content

Interactive CLI chat client with Bubble Tea TUI #11

Closed

Description

@pavelanni

Summary

Add an interactive CLI chat client for talking to DocsClaw agents, built with Bubble Tea for a polished terminal UI.

Motivation

Currently the only way to interact with DocsClaw agents is via curl and raw JSON-RPC. For demos and day-to-day use, we need a user-friendly chat interface that showcases the A2A protocol without requiring a web UI.

Implementation

  • Add as a subcommand: docsclaw chat --agent <url>
  • Use Bubble Tea for the TUI framework
  • Use Lip Gloss for styling
  • Use Glamour for Markdown rendering of agent responses
  • Reuse the existing A2A client code from internal/bridge/

Features

  • Readline-style input with history
  • Streaming SSE output (show tokens as they arrive)
  • Conversation history within a session
  • Agent Card display on connect (name, description, capabilities)
  • Markdown rendering of agent responses (code blocks, lists, etc.)
  • Optional --agent-card flag to discover agent via Agent Card URL

Design considerations

  • Keep it in cmd/docsclaw/ as a Cobra subcommand, not a separate binary
  • Charm libraries are well-maintained and widely used in the Go ecosystem
  • Consider Huh for any form-style inputs (e.g., agent URL prompt on first run)

Long-term

Once OpenWebUI ships A2A support (tracked upstream: open-webui/open-webui#14470), that becomes the web UI story. This CLI client remains the lightweight, developer-friendly option.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions