@cometix/ccline

中文文档
2.0.1发布于 2026/10/25MIT零依赖构建来源已验证近 30 天下载 2526

CCometixLine - High-performance Claude Code StatusLine tool

原始使用文档
文档目录3 节
  1. Install
  2. Set up
  3. More

@cometix/ccline

A fast, composable status line for Claude Code, written in Rust, with a full-screen configurator.

CCometixLine in Claude Code

  • Model and effort, directory, git, context use, prompt cache countdown and hit ratio, 5-hour and weekly limits with your pace, cost, PR and more: 30+ metrics
  • Text, bars, gauges, sparklines and pace bars, on as many lines as you like, wrapping to fit the terminal
  • Four skins, 13 palettes, Nerd Font, Unicode or ASCII glyphs, and eight presets to start from
  • A configurator with a live preview that also points Claude Code at ccline for you

Install

npm install -g @cometix/ccline

In China, the npm mirror is faster:

npm install -g @cometix/ccline --registry https://registry.npmmirror.com

The binary goes to ~/.claude/ccline/ccline, and ccline is on your PATH.

Set up

Run ccline in a terminal: the first run picks a preset and connects Claude Code. Or add this to ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/ccline/ccline",
    "padding": 0
  }
}

Requires Claude Code 2.1.153 or newer. Update with npm update -g @cometix/ccline.

More

版本与发布记录

@cometix/ccline 共发布 15 个版本,首次发布于 2025/08/16;过去 12 个月发布了 6 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.0.1latest2026/10/2516 天前
2.0.02026/10/2417 天前
1.1.22026/03/157 个月前
1.1.12026/02/108 个月前
1.1.02026/01/269 个月前
1.0.92025/12/2110 个月前

关于 @cometix/ccline 的常见问题

@cometix/ccline 是什么?

CCometixLine - High-performance Claude Code StatusLine tool

如何安装 @cometix/ccline?

在项目目录运行 npm install @cometix/ccline,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 ccline,可以用 npx ccline 直接运行。

@cometix/ccline 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cometix__ccline 是否存在。

@cometix/ccline 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=14.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cometix/ccline 可以商用吗?

@cometix/ccline 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cometix/ccline 的下载量有多少?

根据 npm 官方下载统计,@cometix/ccline 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,526 次,日均约 84 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cometix/ccline 还在维护吗?

最新版本 2.0.1 发布于 2026/10/25(16 天前);至今共发布 15 个版本,其中过去 12 个月发布了 6 个;首次发布于 2025/08/16。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。