Textual widgets for deepagents-cli.
Import directly from submodules, e.g.:
from deepagents_cli.widgets.chat_input import ChatInput
from deepagents_cli.widgets.messages import AssistantMessageMessage widgets for deepagents-cli.
Read-only MCP server and tool viewer modal.
Autocomplete system for @ mentions and / commands.
This is a custom implementation that handles trigger-based completion for slash commands (/) and file mentions (@).
Enhanced diff widget for displaying unified diffs.
Loading widget with animated spinner for agent activity.
Approval widget for HITL - using standard Textual patterns.
Status bar widget for deepagents-cli.
Interactive model selector screen for /model command.
Command history manager for input persistence.
Ask user widget for interactive questions during agent execution.
Tool-specific approval widgets for HITL display.
Interactive thread selector screen for /threads command.
Tool renderers for approval widgets - registry pattern.
Chat input widget for deepagents-cli with autocomplete and history support.
Message store for virtualized chat history.
This module provides data structures and management for message virtualization, allowing the CLI to handle large message histories efficiently by keeping only a sliding window of widgets in the DOM while storing all message data as lightweight dataclasses.
The approach is inspired by Textual's Log widget, which only keeps N lines
in the DOM and recreates older ones on demand.
Welcome banner widget for deepagents-cli.