Quoting Thariq Shihipar
Most people’s mental model of Claude Code is that “it’s just a TUI” but it should really be closer to “a small game engine”.
For each frame our pipeline constructs a scene graph with React then
-> layouts elements
-> rasterizes them to a 2d screen
-> diffs that against the previous screen
-> finally uses the diff to generate ANSI sequences to drawWe have a ~16ms frame budget so we have roughly ~5ms to go from the React scene graph to ANSI written.
Tags: react, claude-code
Like
0
Liked
Liked