-
-
Notifications
You must be signed in to change notification settings - Fork 177
Description
I did notice that the installer configures Claude CLI to execute npx/bunx ccstatusline as the Claude Code CLI statusline, i.e.:
{
"statusLine": {
"type": "command",
"command": "npx/bunx ccstatusline"
}
}
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.:
{
"statusLine": {
"type": "command",
"command": "ccusage statusline"
}
}
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.