Quick Start
Get started with tui-delta in 5 minutes.
Prerequisites
syslog-ng Required
tui-delta requires syslog-ng to be installed. See the Installation Guide for detailed setup instructions.
Installation
Recommended (automatically installs syslog-ng):
Alternative (requires manual syslog-ng installation):
Basic Usage
Test with Simple Commands
To understand how tui-delta works, you can test with simple commands:
The minimal profile passes input through with minimal processing.
List Available Profiles
See what profiles are available:
This shows the built-in profiles: claude_code, generic, and minimal.
Log an AI Assistant Session
The primary use case - wrap Claude Code and capture the session:
This:
- Runs Claude Code normally (you can interact with it)
- Captures all terminal output
- Processes it to remove duplicates and cleared lines
- Streams clean output to
session.log
See AI Assistant Logging for complete examples.
View Captured Logs
Logs preserve terminal formatting:
The -R flag preserves colors and formatting.
Plain Text Logs (Strip ANSI Formatting)
For clean plain text logs without colors or formatting, pipe through a filter:
Using sed (most portable):
# Create a named pipe for post-processing
mkfifo /tmp/tui-pipe
tui-delta into /tmp/tui-pipe --profile claude_code -- claude &
sed 's/\x1b\[[0-9;]*[a-zA-Z]//g' < /tmp/tui-pipe > clean.log
Using ansifilter (recommended if available):
# Install
brew install ansifilter # macOS
apt install ansifilter # Ubuntu/Debian
# Create a named pipe for post-processing
mkfifo /tmp/tui-pipe
tui-delta into /tmp/tui-pipe --profile claude_code -- claude &
ansifilter < /tmp/tui-pipe > clean.log
Common Patterns
Save to File
Use with Different Profiles
Start with generic profile for non-Claude-Code applications, then customize as needed. See Custom Profiles for creating profiles tailored to your TUI.
Debugging
If you need to understand how tui-delta processes output or debug pipeline issues:
Capture stage outputs:
$ tui-delta into out.log --stage-outputs --profile claude_code -- claude
# Creates: out.log-0-script.bin, out.log-1-clear_lines.bin, etc.
Decode escape sequences:
$ tui-delta decode-escapes session.log-0-script.bin
# Shows readable text like [clear_line] instead of escape codes
See the CLI Reference for complete details.
Next Steps
- Basic Concepts - Understand how tui-delta works
- AI Assistant Logging - Examples with Claude Code and other AI assistants
- CLI Reference - Complete command-line options
- Custom Profiles - Create profiles for your TUI apps