You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Executing via bunx/npx leads to higher resource consumption #103
From the official Claude CLI documentation, this command can be executed at most every 300ms. Apart from the fact that would be better to use a persistent statusline process, running npx/bunx ccstatusline is more resource intensive than simply running ccstatusline directly due to the way npx/bunx work.
So heads up, running the statusline without npx/bunx would save some resources, i.e.:
I did run benchmarks calling ccstatusline directly or via npx/bunx and the difference is somewhat significant, see here.
Please note that benchmarking ccstatusline is not my main focus; I plugged ccstatusline in the benchmarks once I noticed a large amount of node processes being spawned on a colleague's laptop using multiple Claude CLI instances with ccusage, issue here.
Being ccstatusline a very popular project, I decided to give you guys the heads up by opening an issue.
Reacted by rublev, Nebius Academy Bot and AstroHan
For what it's worth, a pure Bash + jq approach avoids the process spawning issue entirely. I maintain claude-lens which runs at ~10ms per render with ~2MB RSS, since there's no runtime to start up. The tradeoff is fewer features (no TUI config, no themes), but for a 300ms polling loop the execution overhead stays negligible.
Activity
Astro-Han commentedon Mar 28, 2026
For what it's worth, a pure Bash + jq approach avoids the process spawning issue entirely. I maintain claude-lens which runs at ~10ms per render with ~2MB RSS, since there's no runtime to start up. The tradeoff is fewer features (no TUI config, no themes), but for a 300ms polling loop the execution overhead stays negligible.
sirmalloc commentedon May 12, 2026
There is now an option to pin the install in the TUI as part of ed3ce5b
feat: Version pinning install support
feat: Version pinning install support