Input Pane Usage Guide
How to Type in the Textual CLI
The Textual CLI provides a persistent input pane at the bottom of the screen where you can always type, even while the agent is responding. This guide covers all input features and capabilities.
π― Interface Layout
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π€ Agent Output (π’ Ready) β β Agent responses
β β
β [10:30:45] π€ Agent: I'll help you create that Kubernetes deployment. β
β Let me analyze your requirements... β
β β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π§ User Input β β You type here
β β
β > create a kubernetes deployment for[β] β β Active cursor
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π€ DevOps Agent | π§ Session: abc123... | π‘ Tab:complete Enter:submit β β Status bar
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β¨οΈ Input Methods
Basic Input
- Start typing immediately - The input pane is always focused and ready
- Type your message - All keyboard input goes to the input pane by default
- Press Enter - Submit your message to the agent
- Alt+Enter - Add a new line for multi-line messages
Multi-line Input
For complex requests, use multi-line input:
> Create a comprehensive CI/CD pipeline that includes:
[Alt+Enter]
> - GitHub Actions workflow
[Alt+Enter]
> - Docker containerization
[Alt+Enter]
> - Kubernetes deployment
[Alt+Enter]
> - Monitoring and alerting
[Enter to submit]
π Auto-completion Features
Categorized Commands
Press Tab
to access categorized command completions organized by functional areas:
π Infrastructure & DevOps
create a dockerfile
create docker-compose.yml
write kubernetes manifests
create helm chart for
write terraform code for
setup CI/CD pipeline
configure github actions
setup monitoring for
add logging to
create health checks
setup load balancer
configure autoscaling
list the k8s clusters and indicate the current one
list all the user applications in the qa- namespaces
π Code Analysis
analyze this code
review the codebase
find security vulnerabilities
optimize performance of
refactor this function
add error handling to
add type hints to
add documentation for
write unit tests for
write integration tests for
fix the bug in
debug this issue
π¦ Deployment & Operations
deploy to production
deploy to staging
rollback deployment
check service status
troubleshoot deployment
scale the service
update dependencies
backup the database
restore from backup
π§ Development Workflow
create new feature branch
merge pull request
tag new release
update changelog
bump version number
execute regression tests
run security scan
run performance tests
generate documentation
summarize, commit, and push changes to main using https://www.conventionalcommits.org/en/v1.0.0/#specification
βοΈ CLI Commands
exit
,quit
,bye
help
clear
theme toggle
,theme dark
,theme light
Completion Interface
When you press Tab
, a modal completion interface appears:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Command Completions β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π Infrastructure & DevOps β
β β’ create a dockerfile β
β β’ create docker-compose.yml β
β β’ write kubernetes manifests β
β β
β π Code Analysis β
β β’ analyze this code β
β β’ review the codebase β
β β
β π¦ Deployment & Operations β
β β’ deploy to production β
β β’ deploy to staging β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β/β Navigate | Enter Select | Esc Cancel β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Navigation:
β/β
orj/k
: Navigate through optionsEnter
: Select highlighted optionEsc
: Cancel completion- Type to filter options
π Keyboard Shortcuts
Essential Input Controls
| Key Combination | Action | Description | |ββββββ|βββ|ββββ-| | Enter | Submit input | Send your command to the agent | | Alt+Enter | Insert newline | Add line break for multi-line input | | Tab | Auto-complete | Show categorized command completions | | β/β | History navigation | Navigate through command history | | Ctrl+P/N | History navigation | Alternative history navigation |
Agent Control
| Key Combination | Action | Description | |ββββββ|βββ|ββββ-| | Ctrl+C | Interrupt agent | Stop running agent operations | | Ctrl+D | Exit CLI | Quit the application | | Ctrl+L | Clear output | Clear the output pane |
Interface Control
| Key Combination | Action | Description | |ββββββ|βββ|ββββ-| | Ctrl+T | Toggle theme | Switch between dark/light themes | | Ctrl+Y | Toggle thoughts | Show/hide agent thought pane |
π― Usage Patterns
Interactive Development
# Start with partial command
> create dockerfile[Tab]
# Select from completions
> create a dockerfile
# Add context
> create a dockerfile for my python web application
# Submit and continue
[Enter]
# While agent responds, prepare next command
> now create docker-compose.yml[Tab]
Complex Multi-step Requests
# Use structured input for complex tasks
> I need help setting up a complete DevOps pipeline:
[Alt+Enter]
>
[Alt+Enter]
> 1. Create Dockerfile for my Python FastAPI app
[Alt+Enter]
> 2. Set up GitHub Actions for CI/CD
[Alt+Enter]
> 3. Configure Kubernetes deployment
[Alt+Enter]
> 4. Add monitoring and logging
[Alt+Enter]
>
[Alt+Enter]
> Please create each component step by step.
[Enter to submit]
Quick Commands
# Use completions for quick access
> setup monitoring[Tab]
# Select: "setup monitoring for"
> setup monitoring for my microservices
[Enter]
# Chain related commands
> check service status[Tab]
> troubleshoot deployment[Tab]
> scale the service[Tab]
π‘ Advanced Features
Command History
- Persistent History: Commands saved across sessions
- Smart Suggestions: Recent commands appear in completions
- Navigation: Use
β/β
to browse history - Search: Type partial command to filter history
Context-Aware Completions
The completion system adapts to your project:
- Project Detection: Discovers your project type and suggests relevant commands
- File Context: Suggests commands based on files in your project
- Git Integration: Includes git-aware suggestions
- Environment Detection: Adapts to your development environment
Intelligent Filtering
- Fuzzy Matching: Type partial words to find commands
- Category Filtering: Focus on specific functional areas
- Recent Commands: Prioritizes recently used commands
- Project Context: Shows project-specific suggestions
π¨ Visual Feedback
Input States
The interface provides clear visual cues about the current state:
Ready State:
π§ User Input (Enter to send, Alt+Enter for newline)
> β
Agent Running:
π User Input (Ctrl+C to interrupt agent)
> your next command hereβ
Multi-line Mode:
π§ User Input (Alt+Enter for more lines, Enter to send)
> line 1
> line 2β
Status Indicators
- π’ Ready: Agent waiting for input
- π‘ Thinking: Agent processing with thinking animation
- β‘ Running: Agent executing tools or operations
- π΄ Error: Error state requiring attention
π§ Customization
Theme Support
- Dark Theme: Professional interface with syntax highlighting
- Light Theme: Clean interface for bright environments
- Dynamic Switching: Use
Ctrl+T
to toggle themes instantly
Input Behavior
- Auto-focus: Input pane automatically receives focus
- Persistent State: Input state maintained during agent operations
- Smart Clearing: Input cleared after successful submission
- Error Recovery: Input preserved on errors for easy correction
π Troubleshooting
Common Issues
Canβt Type:
- Check that the TUI started successfully
- Press
Tab
to ensure focus is on input pane - Verify terminal compatibility
Completions Not Showing:
- Press
Tab
explicitly to trigger completions - Ensure you have typing focus in input pane
- Try typing a few characters before pressing
Tab
Enter Not Working:
- Enter only submits when agent is ready (π’)
- If agent is running, press
Ctrl+C
first to interrupt - Use
Alt+Enter
for newlines, notEnter
History Not Working:
- Use
β/β
arrows to navigate history - Try
Ctrl+P/N
as alternative - Ensure commands were successfully submitted
Debug Tips
# Enable debug mode for troubleshooting
adk run agents/devops --tui --log_level DEBUG
# Check terminal capabilities
echo $TERM
echo $COLORTERM
# Test with explicit theme
adk run agents/devops --tui --ui_theme dark
π― Best Practices
Efficient Workflows
- Use Tab Completion: Discover available commands quickly
- Multi-line Planning: Structure complex requests clearly
- Command Chaining: Prepare next commands while agent responds
- History Navigation: Reuse and modify previous commands
- Interrupt Wisely: Use
Ctrl+C
when needed, then continue
Performance Tips
- Categorized Approach: Use functional categories to find commands faster
- Partial Typing: Type partial commands before Tab for better filtering
- History Usage: Leverage command history for repeated tasks
- Multi-line Structure: Break complex requests into clear sections
The input pane transforms the CLI from a simple command interface into a powerful, responsive workspace that adapts to your DevOps workflow patterns and keeps you productive at all times.