# Repository Briefing: Haleclipse/CCometixLine
> Source: https://repoforai.com/repo/Haleclipse/CCometixLine (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Haleclipse/CCometixLine
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Rust
- **License**: See repository
- **Engineering Health**: B+ (68/100 · Maintenance 26/35 · Adoption 16/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v2.0.1 (2026-10-24) — https://github.com/Haleclipse/CCometixLine/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: CLI
- **Momentum**: 3,582 ★ total (+2 24h / +9 7d) · 229 forks
- **When to Use**: Best for: Claude Code users who want context, cache, Git, and quota signals in the terminal, especially across changing terminal widths or third-party model IDs. Skip if: A short shell script already covers your status line, you cannot upgrade to the required Claude Code version, or you need an MCP server or centralized telemetry rather than a local display.

## Overview
```text
### Architecture & Core Mechanics
CCometixLine is a local Rust CLI that plugs into Claude Code’s command-based status-line interface, not an MCP server. Claude Code pipes session data to `ccline`, which renders the configured items as terminal output. Run the same binary interactively to open the full-screen configurator. Its preview uses the same renderer as the live status line, and the optional `subagentStatusLine` setting uses the same binary for task-level display.

The crate targets Rust 1.88 and edition 2024. It uses `serde` and `serde_json` for structured data, `toml` for configuration, `clap` for CLI parsing, and `ratatui` with `crossterm` for the terminal UI. `unicode-width` and `unicode-segmentation` support terminal text handling. Configuration defaults to `~/.claude/ccline/`, with `CCLINE_HOME` as an override. Git collection runs in the background rather than on the render path.

### Key Capabilities & Differentiators
The renderer exposes 30+ metrics, including model and effort, Git state, context usage and growth, prompt-cache behavior, cost, and five-hour and weekly quota pace. The default two-row quota display compares consumption with elapsed time. Items can render as text, bars, gauges, sparklines, or pace bars. Lines wrap between items when space runs out, and right-hand groups stay flush right. Eight presets provide starting points, and `ccline preview` renders sample sessions without waiting for live data.

`models.toml` corrects the display name and context limit when Claude Code does not recognize a model ID and assumes a 200k window. These rules change reporting, not model routing or inference. A cached `cmd` item can display the first line of a local shell command. On Claude Code 2.1.287+, the optional mod fills gaps in session input, including time to first token, output speed, tool and agent activity, and the exact auto-compaction point.

### Trade-offs & Limitations
A small shell status-line script is easier to own if all you need is a model label and one or two counters. ccline earns its place when you would otherwise have to maintain width-aware layout, quota pacing, model metadata overrides, and previews yourself. tweakcc is a nearby but different tool: it targets Claude Code presentation settings such as themes and thinking verbs, not a metrics dashboard. ccline can only show fields available from Claude Code or supplied by the mod; it cannot make missing telemetry appear through configuration alone.

The optional mod adds a version dependency, and timed refreshes invoke the status line more often. Background execution and caching keep Git and custom commands off the immediate render path, but custom commands still run locally: review shared configuration before enabling `cmd` items. The Cargo package declares MIT, while repository-level license metadata is unspecified. Verify the license and notices in the artifacts you plan to redistribute.

### Hardware & Deployment Guide
Install with `npm install -g @cometix/ccline`, unpack a release archive, or build with `cargo build --release` using Rust 1.88 or newer. Release archives cover Linux x64 and arm64, Intel and Apple Silicon macOS, and Windows x64. Linux has static options; the standard x64 archive requires glibc 2.35+. The status line runs as a local process, not a hosted service. Base integration requires Claude Code 2.1.153+; Git is needed for its metric, and Unicode or ASCII can replace Nerd Font glyphs.

The configurator previews changes to Claude Code’s `settings.json` and keeps a backup when writing them. Cache and quota spend-rate metrics require Claude Code 2.1.251+. For live mod telemetry, set `refreshInterval` to two seconds. Version 2.0.0 added wrapping, layout-fit diagnostics, and custom command items; its rewrite does not read v1 layouts or themes, though `models.toml` carries over. Version 2.0.1 fixes visible console windows for child processes on Windows.
```

## Key Capabilities
```text
- Integration: One Rust binary handles piped session input, interactive configuration, and optional subagent status lines.
- Layout: Left and right groups, wrapping between items, and full, compact, and minimal text templates handle changing terminal widths.
- Quota pacing: Five-hour and weekly indicators compare the share of quota consumed with the share of the window elapsed.
- Model registry: Exact, prefix, substring, or regex rules override names and context limits for unrecognized model IDs.
- Custom signals: The `cmd` item displays a shell command’s first output line, runs it in the background, and supports a configurable cache duration.
- Compatibility: The base integration requires Claude Code 2.1.153+; context breakdown, tool and agent activity, and token timing require the optional mod and 2.1.287+.
```

## Quick Start / Clone
```bash
npm install -g @cometix/ccline
```
