| ▲ | Claude Chill: Fix Claude Code's Flickering in Terminal(github.com) |
| 89 points by behnamoh 3 hours ago | 38 comments |
| |
|
| ▲ | prodigycorp an hour ago | parent | next [-] |
| I have used Claude Code in a couple months. THEY HAVEN’T FIXED THIS YET? I’m starting to think that the reason why anthropic doesn’t open source Claude code isn’t due to competitive reasons, it’s because they don’t want people to see what a mess their code base is. Maybe they bought Bun to increase the rate of flickering so that the text looks solid again |
| |
| ▲ | EMM_386 an hour ago | parent | next [-] | | The problem is they are using the Ink library which clears and redraws for each update. https://github.com/anthropics/claude-code/issues/769 I locally patched the closed-source CLI npm package but it's not perfect. They would have to switch how their TUI is rendered on their side. Apparently OpenAI Codex is rust+ratatui which does not have this issue. | | |
| ▲ | jschlatter 16 minutes ago | parent | next [-] | | They started with Ink but have since switched to their own renderer: > We originally built Claude Code on Ink, a React renderer for the terminal. [...] Over the past few months, we've rewritten our rendering system from scratch (while still using React). https://github.com/anthropics/claude-code/issues/769#issueco... | | |
| ▲ | cududa 14 minutes ago | parent [-] | | Thanks for sharing. Very … interesting. Just trying to understand why the heck would React be the best tool here? | | |
| ▲ | anematode 2 minutes ago | parent [-] | | I genuinely thought this was satire until I looked it up. I guess it's just to make us webdevs feel at home in the Terminal (ooh, spooky!) |
|
| |
| ▲ | thomasahle 30 minutes ago | parent | prev | next [-] | | I'm always surprised that Python doesn't have as good TUI libraries as Javascript or Rust. With the amount of CLI tooling written in Python, you'd think it had better libraries than any other language. | | |
| ▲ | behnamoh 29 minutes ago | parent [-] | | it has, but python being single threaded (until recently) didn't make it an attractive choice for CLI tools. example: `ranger` is written in python and it's freaking slow. in comparison, `yazi` (Rust) has been a breeze. Edit: Sorry, I meant GIL, not single thread. | | |
| ▲ | ashirviskas 16 minutes ago | parent [-] | | > it has, but python being single threaded (until recently) didn't make it an attractive choice for CLI tools. You probably mean GIL, as python has supported multi threading for like 20 years. Idk if ranger is slow because it is written in python. Probably it is the specific implementation. |
|
| |
| ▲ | behnamoh an hour ago | parent | prev [-] | | then maybe they should've bought and fixed Ink instead of bun, just saying! | | |
| ▲ | reissbaker 20 minutes ago | parent [-] | | FWIW, Ink is working on an incremental rendering system: they have a flag to enable it. It's currently pretty buggy though unfortunately. Definitely wish Anthropic would commit some resources back to the project they're built on to help fix it... |
|
| |
| ▲ | behnamoh an hour ago | parent | prev | next [-] | | > it’s because they don’t want people to see what a mess their code base is. if Amodei hadn't said "90% of code will be written by AI", at least I wouldn't call them hypocrites, but the fact that the company that makes such wild claims can't fix a freaking flicker and scroll issue until an indie-dev steps in just shows how far behind their product is from their claims. I have CC and use many models with it (Codex in CC, try it!), but I won't let Anthropic "lecture" us about how "the roots of the problem go deep". Literally no other CLI tool has these issues: opencode, codex, gemini, droid, etc. | |
| ▲ | f311a an hour ago | parent | prev | next [-] | | Imagine the amount of slop PRs if it was open source. They don’t want to taste their own medicine | | |
| ▲ | prodigycorp an hour ago | parent [-] | | Reading their GitHub issues already is like reading through the diary entries of spurned lovers. I can only imagine the PRs. |
| |
| ▲ | artursapek 30 minutes ago | parent | prev [-] | | The biggest strength in OpenAI’s codex vs claude code is that it’s written in Rust and smooth as butter |
|
|
| ▲ | esafak 3 minutes ago | parent | prev | next [-] |
| I don't know if this is my problem but formatting has been completely broken recently. It feels ... vibe coded. I wish they had not blocked opencode :( |
|
| ▲ | benzible an hour ago | parent | prev | next [-] |
| I would love to use this but it breaks Ghostty's native scrollback (two-finger scroll), which I want more than I want to solve the flickering. The PTY proxy intercepts the output stream so Ghostty can't access its internal scrollback buffer anymore. |
| |
| ▲ | foltik 17 minutes ago | parent [-] | | Maybe try tmux? There’s no smooth scrolling, but there’s lots of other bells and whistles I wouldn’t give up for that. |
|
|
| ▲ | LowLevelBasket 9 minutes ago | parent | prev | next [-] |
| I guess it's not hard to use AI to improve your productivity by 10x when your code is written by 0.1x devs. It's embarrassing an OSS fixed their problem before they did after all that money they raised |
|
| ▲ | badlogic 2 hours ago | parent | prev | next [-] |
| It is very 2026, that this exists for the product by a company that goes all in on vibe coding. Kudos for the creative solution. |
| |
| ▲ | donw an hour ago | parent [-] | | I mentioned this to Claude and this was the response: Ha! The irony is not lost on anyone. "We've built the world's most advanced AI coding assistant. It can refactor entire codebases, debug complex issues, and ship production features autonomously. Anyway, here's a terminal bug that makes your screen look like a slot machine. We'll get to it eventually." |
|
|
| ▲ | internet2000 an hour ago | parent | prev | next [-] |
| The readme.md format and conventions being a tell that this got written by Claude Code itself makes the whole thing Chef's kiss. I love the future. |
| |
| ▲ | behnamoh 31 minutes ago | parent [-] | | > this got written by Claude Code nit but CC itself doesn't write anything, much like a body w/o brain doesn't program anything. it's possible the OP was using other models like codex/gemini/etc. in CC. | | |
| ▲ | roywiggins 29 minutes ago | parent [-] | | It's possible it's from some other model or even a human, but it reads like every other Claude Code readme I've seen. | | |
| ▲ | behnamoh 27 minutes ago | parent [-] | | so then it could be written by a claude model inside opencode before anthropic got angry about it :) | | |
| ▲ | Aurornis 3 minutes ago | parent [-] | | OpenCode still works fine with Claude models. You just can’t use their private APIs, which isn’t really surprising. |
|
|
|
|
|
| ▲ | laughingcurve an hour ago | parent | prev | next [-] |
| Possibly the greatest contribution to Claude code in months. I am rushing to my terminal to install, test, and update. |
|
| ▲ | headcanon an hour ago | parent | prev | next [-] |
| THANK YOU! that flickering is giving me a headache. You're doing the lords work! Anthropic: Please fix this ASAP |
|
| ▲ | bearjaws an hour ago | parent | prev | next [-] |
| Damn I had assumed it was that simple of a problem just based on how the scrolling messed up, and thought "surely it's not that simple"... |
|
| ▲ | meursault334 an hour ago | parent | prev | next [-] |
| I tried this in the cursor terminal and it now flickers periodically but not like crazy. |
|
| ▲ | whh an hour ago | parent | prev | next [-] |
| You are a legend. Thank you. |
|
| ▲ | alva an hour ago | parent | prev | next [-] |
| Excellent, thank you. This had be causing me headaches! |
| |
| ▲ | dionian an hour ago | parent [-] | | yeah its like im being hypnotized and im forced to wait until programming is over |
|
|
| ▲ | janoelze an hour ago | parent | prev | next [-] |
| amazing, thanks |
|
| ▲ | Der_Einzige an hour ago | parent | prev [-] |
| Did this get written mostly by human hands, or did AI also write this? I would hope something like this was primarily made by humans... |
| |