@fbincon/claude-code-statusline

中文文档
3.16.3发布于 2026/11/05MIT AND Unicode-3.0ES Module构建来源已验证近 30 天下载 8196

Configurable Claude Code statusline and terminal editors

原始使用文档
文档目录18 节
  1. Features
  2. Screenshots
  3. In-session TUI
  4. External TUI
  5. Supported platforms
  6. Quick installation
  7. Install the package
  8. Integrate with Claude Code
  9. Common configuration
  10. Interface language
  11. Statusline language
  12. Native configuration editor
  13. External and standalone terminal TUI
  14. Upgrading and uninstalling
  15. Project structure
  16. Documentation and help
  17. Contributing and security
  18. License

Claude Code Statusline

English | 简体中文

CI npm · MIT License

A configurable Claude Code status line for Linux, WSL, Windows and macOS. See model and reasoning effort, project, Git, context, usage and task timing at a glance. Configure the main line and individual subagent rows in the current Claude session, a terminal editor or the CLI.

Demonstrations · Quick installation · Common configuration · User guide · Troubleshooting

Features

  • Choose what to see: 65 main metrics and 15 subagent metrics, plus text and flexible spacers. Search names, IDs and descriptions across twelve languages. Metric definitions.
  • Compose a readable display: independent component copies, linked groups, explicit rows, left/right layout, conditional visibility, colors, gradients and adaptive percentage indicators. Composition · Appearance.
  • Start from a scheme: eight complete display schemes and six original presets remain editable. Save named schemes, bind projects and reuse selected styles or whole groups. Schemes · Project bindings.
  • Review before saving: sample scenarios, width previews, import differences, shared undo/redo and current-file comparison help inspect a draft. Draft history and reuse.
  • Follow tasks and agents: separate session and per-agent metrics, task timing through agent work and main wrap-up, and a searchable task-evidence viewer. Task details.
  • Add explicit data sources: local JSON, GitHub checks and command values, with separately reviewed activation, refresh and optional links. Extensions.
  • Choose interface and output languages independently: English, 简体中文, 繁體中文(台灣), 繁體中文(香港), 日本語, 한국어, Español, Français, Deutsch, Português (Brasil), Русский and Bahasa Indonesia.
  • Diagnose and recover: inspect supplied input, review package changes and restore compatible configuration backups explicitly. Input diagnosis · Package management.

Rendering reads Claude Code input and local state without network requests or model tokens. Optional source refresh is separate; the question-and-answer wizard uses Claude model turns. Missing observations remain distinguishable from zero.

Screenshots

The complete demonstrations pair scene configurations with reproducible steps for setup, editing, tasks, sources and version review. The visual baseline uses classic separators and soft, bright foreground gradients without Powerline. A component keeps its colors across main and subagent rows; the light scene uses darker shades of the same hues. Each asset's package, input and capture type is recorded in the showcase image index; fixed samples are identified separately from recorded task observations.

Daily development statusline with classic separators and distinct foreground gradients

Configuration workflow with a colored statusline preview and reviewed changes

The clip copies one metric, then demonstrates Undo, Redo, Save and reopening. The duplicate belongs only to this exercise; the original daily scene is restored afterward.

In-session TUI

Run /statusline-configure-native inside Claude Code and click the Client region once before using the keyboard. Editor workflow.

External TUI

Run claude-statusline configure in a terminal, or /statusline-configure from Claude Code to open a supported external terminal. Terminal workflow.

All current and historical images retain their original provenance. Historical cross-platform screenshots do not establish acceptance of a newer package; the six existing issue #96 gaps remain unverified.

Supported platforms

PlatformSupported environment
Linux / WSLNode 22.x or 24.x, x64
Windows 10/11Node 22.x or 24.x, x64
macOS 14+Node 22.x or 24.x, Intel / Apple Silicon

Windows ARM devices use x64 Node under emulation; native Windows ARM64 and 32-bit runtimes are outside the support contract. Git fields require Git. Claude Code requirements vary by feature: subagent rows 2.1.205+, local slash arguments/external entry 2.1.258+, in-session editor 2.1.287+, native timing/live metrics 2.1.289+. Requirements and limitations.

Quick installation

Install Node 22.x or 24.x with npm and Claude Code CLI. The package bundles its supported native dependencies and needs no Python or compiler.

Install the package

In an interactive terminal, npx @fbincon/claude-code-statusline reviews a persistent installation before opening setup. Alternatively, install the package explicitly:

npm install --global --ignore-scripts @fbincon/claude-code-statusline

Integrate with Claude Code

Ensure the npm command directory is on PATH, then run:

claude-statusline --version
claude-statusline setup --dry-run
claude-statusline setup
claude-statusline doctor

On Windows, use claude-statusline.cmd, or invoke the installed JavaScript entry with Node. Restart Claude Code in a trusted terminal after integration. Package installation, display Save and Claude integration are separate stages; setup reports partial completion if a later stage fails.

Both editors default on for compatible hosts and preserve saved choices. Native timing and advanced live metrics require explicit opt-in. See first-use setup, offline/fixed-version installation, conflict handling and Python migration.

Common configuration

Entry pointUse
/statusline-configure-nativeEdit in the current Claude session
/statusline-configureLaunch an editor in a supported external terminal
claude-statusline configureEdit in the current terminal, including SSH
/statusline-configClaude question-and-answer wizard; supported argument commands run locally
claude-statusline config ...Inspect settings or set exact values from scripts

In either editor, Ctrl+P opens Quick setup to select a scheme, inspect requirements and preview the draft. Save applies it to the displayed user/profile/project target; cancel discards pending display changes. Walkthroughs and reusable scenes · All schemes.

Interface language

Set the shared interface preference, or override it for one invocation:

claude-statusline config language set zh-CN
claude-statusline --language en configure

An interface-language change saves immediately and survives cancellation of display edits. Language choices.

Statusline language

Set output language independently:

claude-statusline config set statusline-language zh-CN

In an editor, this choice changes the preview and takes effect in the actual main/subagent output only after display Save. Technical IDs, paths and custom text retain their values. Output language.

Native configuration editor

Click the Client region once. Tab changes pages, Space toggles, Ctrl+E opens item details, / searches and Ctrl+F filters categories. S saves and stays, F saves and closes, and Q discards the draft. Ctrl+G cancels field input. Controls and recovery.

External and standalone terminal TUI

Tab changes pages, Space toggles, and Ctrl+S saves after field input is finished. Esc cancels a field first, then the editor; Ctrl+C interrupts without saving. The minimum size is 64×18. Controls and terminal launchers.

To start from a built-in scheme with classic separators:

claude-statusline config preset daily-development --dry-run
claude-statusline config preset daily-development
claude-statusline config set separator-style classic

Review before applying: a preset replaces display selections and layout. Recipes · CLI reference.

Upgrading and uninstalling

Review and apply a package change, then restart Claude Code:

claude-statusline update --check
claude-statusline update
claude-statusline doctor

Package management explains exact versions, prefixes, rollback and separate configuration restoration. Remove Claude integration before uninstalling the package:

claude-statusline uninstall --dry-run
claude-statusline uninstall
npm uninstall --global @fbincon/claude-code-statusline

Display settings and backups remain. Uninstalling.

Project structure

The TypeScript workspace separates pure rules (packages/core), platform effects (packages/platform), application services (packages/cli) and the terminal editor (packages/tui). mods contains the official-host integrations; tools contains generation, packaging and acceptance tooling. archive/python preserves the frozen historical implementation. Architecture · Development setup.

Documentation and help

GoalStart here
Try a complete workflowDemonstrations · First-use setup
Configure a displayUser guide · Schemes · Appearance · Composition
Reuse settingsProfiles and projects · Draft history and reuse
Understand dataMetric definitions · Task details · Extensions
Diagnose or automateTroubleshooting · Input diagnosis · CLI reference
Develop or review evidenceDevelopment guide · Image provenance
Follow plans or releasesRoadmap · Development plan · Changelog

GitHub Issues accepts reproducible bugs, questions and feature ideas. Include versions, steps and relevant diagnostics; remove private paths and session content.

Contributing and security

See Contributing for development, translations and feedback. Report vulnerabilities privately through the security policy.

License

MIT License. Copyright (c) 2026 fbincon.

Bundled Unicode data retains the Unicode License v3 and the wcwidth MIT notice.

版本与发布记录

@fbincon/claude-code-statusline 共发布 28 个版本,首次发布于 2026/10/18;过去 12 个月发布了 28 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.16.3latest2026/11/059 天前
3.16.22026/11/0113 天前
3.16.12026/10/3114 天前
3.16.02026/10/3015 天前
3.15.02026/10/3015 天前
3.14.02026/10/3015 天前

其他发布通道:beta → 3.0.0-beta.1。

关于 @fbincon/claude-code-statusline 的常见问题

@fbincon/claude-code-statusline 是什么?

Configurable Claude Code statusline and terminal editors

如何安装 @fbincon/claude-code-statusline?

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

@fbincon/claude-code-statusline 支持 TypeScript 吗?

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

@fbincon/claude-code-statusline 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@fbincon/claude-code-statusline 需要什么版本的 Node.js?

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

@fbincon/claude-code-statusline 可以商用吗?

@fbincon/claude-code-statusline 使用 MIT AND Unicode-3.0 许可。声明的许可为 MIT AND Unicode-3.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@fbincon/claude-code-statusline 的下载量有多少?

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

@fbincon/claude-code-statusline 还在维护吗?

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