[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73321":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},73321,"CCometixLine","Haleclipse\u002FCCometixLine","Haleclipse","Claude Code statusline tool written in Rust","",null,"Rust",3132,196,9,31,0,29,82,197,87,28.88,false,"master",true,[],"2026-06-12 02:03:11","# CCometixLine\n\n[English](README.md) | [中文](README.zh.md)\n\nA high-performance Claude Code statusline tool written in Rust with Git integration, usage tracking, interactive TUI configuration, and Claude Code enhancement utilities.\n\n![Language:Rust](https:\u002F\u002Fimg.shields.io\u002Fstatic\u002Fv1?label=Language&message=Rust&color=orange&style=flat-square)\n![License:MIT](https:\u002F\u002Fimg.shields.io\u002Fstatic\u002Fv1?label=License&message=MIT&color=blue&style=flat-square)\n\n## Screenshots\n\n![CCometixLine](assets\u002Fimg1.png)\n\nThe statusline shows: Model | Directory | Git Branch Status | Context Window Information\n\n## Features\n\n### Core Functionality\n- **Git integration** with branch, status, and tracking info  \n- **Model display** with simplified Claude model names\n- **Usage tracking** based on transcript analysis\n- **Directory display** showing current workspace\n- **Minimal design** using Nerd Font icons\n\n### Interactive TUI Features\n- **Interactive main menu** when executed without input\n- **TUI configuration interface** with real-time preview\n- **Theme system** with multiple built-in presets\n- **Segment customization** with granular control\n- **Configuration management** (init, check, edit)\n\n### Claude Code Enhancement\n- **Context warning disabler** - Remove annoying \"Context low\" messages\n- **Verbose mode enabler** - Enhanced output detail\n- **Robust patcher** - Survives Claude Code version updates\n- **Automatic backups** - Safe modification with easy recovery\n\n## Installation\n\n### Quick Install (Recommended)\n\nInstall via npm (works on all platforms):\n\n```bash\n# Install globally\nnpm install -g @cometix\u002Fccline\n\n# Or using yarn\nyarn global add @cometix\u002Fccline\n\n# Or using pnpm\npnpm add -g @cometix\u002Fccline\n```\n\nUse npm mirror for faster download:\n```bash\nnpm install -g @cometix\u002Fccline --registry https:\u002F\u002Fregistry.npmmirror.com\n```\n\nAfter installation:\n- ✅ Global command `ccline` is available everywhere\n- ⚙️ Follow the configuration steps below to integrate with Claude Code\n- 🎨 Run `ccline -c` to open configuration panel for theme selection\n\n### Claude Code Configuration\n\nAdd to your Claude Code `settings.json`:\n\n**Cross-Platform (Recommended)**\n```json\n{\n  \"statusLine\": {\n    \"type\": \"command\",\n    \"command\": \"~\u002F.claude\u002Fccline\u002Fccline\",\n    \"padding\": 0\n  }\n}\n```\n\n> **Note for Windows users:** Starting from Claude Code v2.1.47+, Unix-style path parsing is supported on Windows. The `~` symbol is automatically expanded to your user home directory. **Do not use `%USERPROFILE%`** - it no longer works reliably in v2.1.47+.\n> - Recommended: `~\u002F.claude\u002Fccline\u002Fccline` (works on all platforms)\n> - Alternative: `\"ccline\"` (requires npm global installation)\n\n**Fallback (npm installation):**\n```json\n{\n  \"statusLine\": {\n    \"type\": \"command\",\n    \"command\": \"ccline\",\n    \"padding\": 0\n  }\n}\n```\n*Use this if npm global installation is available in PATH*\n\n### Update\n\n```bash\nnpm update -g @cometix\u002Fccline\n```\n\n\u003Cdetails>\n\u003Csummary>Manual Installation (Click to expand)\u003C\u002Fsummary>\n\nAlternatively, download from [Releases](https:\u002F\u002Fgithub.com\u002FHaleclipse\u002FCCometixLine\u002Freleases):\n\n#### Linux\n\n#### Option 1: Dynamic Binary (Recommended)\n```bash\nmkdir -p ~\u002F.claude\u002Fccline\nwget https:\u002F\u002Fgithub.com\u002FHaleclipse\u002FCCometixLine\u002Freleases\u002Flatest\u002Fdownload\u002Fccline-linux-x64.tar.gz\ntar -xzf ccline-linux-x64.tar.gz\ncp ccline ~\u002F.claude\u002Fccline\u002F\nchmod +x ~\u002F.claude\u002Fccline\u002Fccline\n```\n*Requires: Ubuntu 22.04+, CentOS 9+, Debian 11+, RHEL 9+ (glibc 2.35+)*\n\n#### Option 2: Static Binary (Universal Compatibility)\n```bash\nmkdir -p ~\u002F.claude\u002Fccline\nwget https:\u002F\u002Fgithub.com\u002FHaleclipse\u002FCCometixLine\u002Freleases\u002Flatest\u002Fdownload\u002Fccline-linux-x64-static.tar.gz\ntar -xzf ccline-linux-x64-static.tar.gz\ncp ccline ~\u002F.claude\u002Fccline\u002F\nchmod +x ~\u002F.claude\u002Fccline\u002Fccline\n```\n*Works on any Linux distribution (static, no dependencies)*\n\n#### macOS (Intel)\n\n```bash  \nmkdir -p ~\u002F.claude\u002Fccline\nwget https:\u002F\u002Fgithub.com\u002FHaleclipse\u002FCCometixLine\u002Freleases\u002Flatest\u002Fdownload\u002Fccline-macos-x64.tar.gz\ntar -xzf ccline-macos-x64.tar.gz\ncp ccline ~\u002F.claude\u002Fccline\u002F\nchmod +x ~\u002F.claude\u002Fccline\u002Fccline\n```\n\n#### macOS (Apple Silicon)\n\n```bash\nmkdir -p ~\u002F.claude\u002Fccline  \nwget https:\u002F\u002Fgithub.com\u002FHaleclipse\u002FCCometixLine\u002Freleases\u002Flatest\u002Fdownload\u002Fccline-macos-arm64.tar.gz\ntar -xzf ccline-macos-arm64.tar.gz\ncp ccline ~\u002F.claude\u002Fccline\u002F\nchmod +x ~\u002F.claude\u002Fccline\u002Fccline\n```\n\n#### Windows\n\n```powershell\n# Create directory and download\nNew-Item -ItemType Directory -Force -Path \"$env:USERPROFILE\\.claude\\ccline\"\nInvoke-WebRequest -Uri \"https:\u002F\u002Fgithub.com\u002FHaleclipse\u002FCCometixLine\u002Freleases\u002Flatest\u002Fdownload\u002Fccline-windows-x64.zip\" -OutFile \"ccline-windows-x64.zip\"\nExpand-Archive -Path \"ccline-windows-x64.zip\" -DestinationPath \".\"\nMove-Item \"ccline.exe\" \"$env:USERPROFILE\\.claude\\ccline\\\"\n```\n\n\u003C\u002Fdetails>\n\n### Build from Source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FHaleclipse\u002FCCometixLine.git\ncd CCometixLine\ncargo build --release\n\n# Linux\u002FmacOS\nmkdir -p ~\u002F.claude\u002Fccline\ncp target\u002Frelease\u002Fccometixline ~\u002F.claude\u002Fccline\u002Fccline\nchmod +x ~\u002F.claude\u002Fccline\u002Fccline\n\n# Windows (PowerShell)\nNew-Item -ItemType Directory -Force -Path \"$env:USERPROFILE\\.claude\\ccline\"\ncopy target\\release\\ccometixline.exe \"$env:USERPROFILE\\.claude\\ccline\\ccline.exe\"\n```\n\n## Usage\n\n### Theme Override\n\n```bash\n# Temporarily use specific theme (overrides config file)\nccline --theme cometix\nccline --theme minimal\nccline --theme gruvbox\nccline --theme nord\nccline --theme powerline-dark\n\n# Or use custom theme files from ~\u002F.claude\u002Fccline\u002Fthemes\u002F\nccline --theme my-custom-theme\n```\n\n### Claude Code Enhancement\n\n```bash\n# Disable context warnings and enable verbose mode\nccline --patch \u002Fpath\u002Fto\u002Fclaude-code\u002Fcli.js\n\n# Example for common installation\nccline --patch ~\u002F.local\u002Fshare\u002Ffnm\u002Fnode-versions\u002Fv24.4.1\u002Finstallation\u002Flib\u002Fnode_modules\u002F@anthropic-ai\u002Fclaude-code\u002Fcli.js\n```\n\n## Default Segments\n\nDisplays: `Directory | Git Branch Status | Model | Context Window`\n\n### Git Status Indicators\n\n- Branch name with Nerd Font icon\n- Status: `✓` Clean, `●` Dirty, `⚠` Conflicts  \n- Remote tracking: `↑n` Ahead, `↓n` Behind\n\n### Model Display\n\nShows simplified Claude model names:\n- `claude-3-5-sonnet` → `Sonnet 3.5`\n- `claude-4-sonnet` → `Sonnet 4`\n\n### Context Window Display\n\nToken usage percentage based on transcript analysis with context limit tracking.\n\n## Configuration\n\nCCometixLine supports full configuration via TOML files and interactive TUI:\n\n- **Configuration file**: `~\u002F.claude\u002Fccline\u002Fconfig.toml`\n- **Interactive TUI**: `ccline --config` for real-time editing with preview\n- **Theme files**: `~\u002F.claude\u002Fccline\u002Fthemes\u002F*.toml` for custom themes\n- **Automatic initialization**: `ccline --init` creates default configuration\n\n### Available Segments\n\nAll segments are configurable with:\n- Enable\u002Fdisable toggle\n- Custom separators and icons\n- Color customization\n- Format options\n\nSupported segments: Directory, Git, Model, Usage, Time, Cost, OutputStyle\n\n### Model Configuration (`models.toml`)\n\nLocation: `~\u002F.claude\u002Fccline\u002Fmodels.toml` (auto-created on first run)\n\nThis file configures how model IDs are displayed and their context window limits. Claude models (Sonnet, Opus, Haiku) are automatically recognized with version extraction — you only need this file for overrides or third-party models.\n\n```toml\n# Model entries: simple substring matching on the model ID\n# These take priority over built-in Claude model recognition\n[[models]]\npattern = \"glm-4.5\"\ndisplay_name = \"GLM-4.5\"\ncontext_limit = 128000\n\n[[models]]\npattern = \"kimi-k2\"\ndisplay_name = \"Kimi K2\"\ncontext_limit = 128000\n\n# Context modifiers: matched independently and composable with model entries\n# Overrides context_limit and appends display_suffix to the display name\n# e.g., model \"Opus 4\" + modifier \" 1M\" = \"Opus 4 1M\"\n[[context_modifiers]]\npattern = \"[1m]\"\ndisplay_suffix = \" 1M\"\ncontext_limit = 1000000\n```\n\n\n## Requirements\n\n- **Git**: Version 1.5+ (Git 2.22+ recommended for better branch detection)\n- **Terminal**: Must support Nerd Fonts for proper icon display\n  - Install a [Nerd Font](https:\u002F\u002Fwww.nerdfonts.com\u002F) (e.g., FiraCode Nerd Font, JetBrains Mono Nerd Font)\n  - Configure your terminal to use the Nerd Font\n- **Claude Code**: For statusline integration\n\n## Development\n\n```bash\n# Build development version\ncargo build\n\n# Run tests\ncargo test\n\n# Build optimized release\ncargo build --release\n```\n\n## Roadmap\n\n- [x] TOML configuration file support\n- [x] TUI configuration interface\n- [x] Custom themes\n- [x] Interactive main menu\n- [x] Claude Code enhancement tools\n\n## Contributing\n\nContributions are welcome! Please feel free to submit issues or pull requests.\n\n## Related Projects\n\n- [tweakcc](https:\u002F\u002Fgithub.com\u002FPiebald-AI\u002Ftweakcc) - Command-line tool to customize your Claude Code themes, thinking verbs, and more.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=Haleclipse\u002FCCometixLine&type=Date)](https:\u002F\u002Fstar-history.com\u002F#Haleclipse\u002FCCometixLine&Date)\n","CCometixLine 是一个用 Rust 编写的高性能 Claude Code 状态栏工具，集成了 Git 信息、使用跟踪、交互式 TUI 配置和 Claude Code 增强功能。其核心功能包括展示当前模型、目录、Git 分支状态及上下文窗口信息，并通过 Nerd Font 图标实现简洁设计。此外，CCometixLine 提供了交互式的主菜单、TUI 配置界面、多主题系统以及段落自定义等功能，支持用户进行详细的配置管理。该工具还增强了 Claude Code 的用户体验，例如禁用“Context low”警告、启用详细模式等。CCometixLine 适合需要高效代码管理和优化开发环境的开发者使用。",2,"2026-06-11 03:44:59","high_star"]