Fix Claude Code's Terminal Flicker with claude-chill
Job to be done: Improve Claude Code's terminal output performance by reducing flicker and lag
🇳🇬 Ways to use this in Nigeria
Ideas to get you started, adapt to your situation.
- Student
When debugging your final year project's Python code, use claude-chill to get flicker-free suggestions from Claude Code, making it easier to review long AI-generated blocks and fix errors quickly.
- 9-5 employee
As a software engineer, integrate claude-chill into your development setup to eliminate terminal flicker from Claude Code, allowing you to focus on refactoring legacy code or implementing new features without distraction.
- Entrepreneur
As a solo founder building your MVP, use claude-chill to ensure a smooth coding experience with Claude Code, especially when generating complex API integrations, reducing eye strain during long coding sessions.
What you’ll get
This workflow will help you eliminate the flickering and lag often experienced when using Claude Code in your terminal. You’ll get a much smoother, more responsive coding experience, making it easier to focus on your work.
This approach works by having claude-chill act as a proxy, intercepting Claude Code’s large terminal updates and intelligently rendering only the necessary changes, rather than redrawing the entire screen each time.
Tools you need
- Claude Code (paid): An AI coding assistant that integrates with your terminal.
- claude-chill (free): A command-line utility that optimizes Claude Code’s terminal output by reducing flicker and lag.
- Rust / Cargo (free): The Rust programming language and its package manager, required to install
claude-chill.
Steps
-
Install Rust and Cargo:
claude-chillis written in Rust, so you need the Rust toolchain, which includes Cargo (the Rust package manager).macOS or Linux
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shFollow the on-screen instructions. When prompted, choose option
1for default installation. After installation, you might need to restart your terminal or runsource $HOME/.cargo/envto ensure Cargo is in your PATH.Windows (PowerShell)
# Download the Rust installer Invoke-WebRequest -Uri "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe" -OutFile "$HOME\rustup-init.exe" # Run the installer (this will open a new window) Start-Process -FilePath "$HOME\rustup-init.exe" -Wait # Clean up the installer Remove-Item -Path "$HOME\rustup-init.exe"Follow the prompts in the installer window, choosing the default installation option. After installation, restart your PowerShell terminal to ensure Cargo is correctly added to your system’s PATH.
You should see a message confirming Rust and Cargo are installed, and running
cargo --versionshould display the version number. -
Install claude-chill: Once Rust and Cargo are set up, you can install
claude-chilldirectly from its GitHub repository.cargo install --git https://github.com/davidbeesley/claude-chillYou should see compilation progress, followed by a message indicating
claude-chillwas successfully installed. Runningclaude-chill --versionshould display its version. -
Run Claude Code with claude-chill: Instead of running
claudedirectly, you’ll now run it throughclaude-chill.claude-chill claudeYou should see Claude Code start as usual, but its output will now be processed by
claude-chill, resulting in a much smoother, flicker-free display. If you pass arguments to Claude Code, use--to separate them, for example:claude-chill -- claude --verbose. -
Use Lookback Mode:
claude-chillincludes a lookback feature that allows you to pause Claude Code’s output and scroll through the full history buffer.Press
Ctrl+6(orCtrl+Shift+6on some macOS terminals) while Claude Code is running.You should see Claude Code’s output pause, and the full history buffer will be dumped to your terminal, allowing you to scroll freely. Press
Ctrl+6again (orCtrl+C) to exit lookback mode and resume Claude Code’s live output. -
Customize the Lookback Key (Optional): If
Ctrl+6is inconvenient or doesn’t work well on your system, you can change the key.claude-chill -k "[f12]" claudeReplace
[f12]with your desired key. Remember to quote the key to prevent shell glob expansion. You should now be able to toggle lookback mode using your chosen key. -
Adjust History Buffer Size (Optional): By default,
claude-chillstores 100,000 lines for lookback. You can adjust this limit.claude-chill -H 50000 claudeReplace
50000with your preferred maximum number of history lines. You should notice that the lookback buffer now respects your new size limit. -
Disable Auto-Lookback (Optional):
claude-chillautomatically enters lookback mode after 15 seconds of inactivity. You can disable this feature.claude-chill -a 0 claudeYou should observe that the terminal no longer automatically dumps the history buffer after a period of inactivity.
Original source
This workflow is based on a discussion by behnamoh on Hacker News, where they shared the claude-chill tool as a solution to Claude Code’s terminal flickering issues. The tool itself is developed by davidbeesley.
Notes & variations
- Common Mistake: Forgetting to install Rust and Cargo first will lead to
cargocommands not being found. Ensure you’ve completed Step 1 and restarted your terminal if necessary. - macOS Lookback Key: If
Ctrl+6doesn’t work on macOS, tryCtrl+Shift+6or customize the key using the-kflag. For example:claude-chill -k "[f12]" claude - Tip for Better Results: Experiment with the history line limit (
-H) to find a balance between memory usage and the amount of scrollback you need. A lower number might be better for older devices or if you rarely need to review extensive history.