{"_id":"@abdallahaho/ccline","_rev":"8-c884114c4273a47264c976ce328cd533","name":"@abdallahaho/ccline","dist-tags":{"latest":"1.5.0"},"versions":{"1.0.0":{"name":"@abdallahaho/ccline","version":"1.0.0","keywords":["claude","claude-code","statusline","cli","anthropic","developer-tools"],"author":{"name":"Abdallah Othman"},"license":"MIT","_id":"@abdallahaho/ccline@1.0.0","maintainers":[{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"}],"homepage":"https://github.com/AbdallahAHO/ccline","bugs":{"url":"https://github.com/AbdallahAHO/ccline/issues"},"bin":{"ccline":"bin/install.js"},"dist":{"shasum":"3f452e8214a001eaf49517b7aa09d30ca2107d86","tarball":"https://registry.npmjs.org/@abdallahaho/ccline/-/ccline-1.0.0.tgz","fileCount":5,"integrity":"sha512-DR6zpSVbrL0/CfoPSNbK6INA6pzrcdIvSASQgOTi+Q8V0aEFVpgHCYRkeSUWSBnnWKGp7rPm7K9aceHvdSm+4g==","signatures":[{"sig":"MEYCIQDKkR4As9UwWbWSIsBZ0wpd/TMvI8x5t1GBVUECsS23jwIhAPCuDTWUVFZLJwvn0OotfjYUp0hCAtQDbIEYvO/oxF6d","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24880},"gitHead":"143461027d57f45289fddbaf6cf98b2c6df297ba","_npmUser":{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release v${version}"},"npm":{"publish":true,"publishArgs":["--access","public"]},"hooks":{"before:init":["git log --oneline -5"]},"github":{"release":true,"releaseName":"v${version}"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":"angular"}}},"repository":{"url":"git+https://github.com/AbdallahAHO/ccline.git","type":"git"},"_npmVersion":"11.6.2","description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection","directories":{},"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ccline_1.0.0_1774851889637_0.09217854063842346","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@abdallahaho/ccline","version":"1.1.0","keywords":["claude","claude-code","statusline","cli","anthropic","developer-tools"],"author":{"name":"Abdallah Othman"},"license":"MIT","_id":"@abdallahaho/ccline@1.1.0","maintainers":[{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"}],"homepage":"https://github.com/AbdallahAHO/ccline","bugs":{"url":"https://github.com/AbdallahAHO/ccline/issues"},"bin":{"ccline":"bin/install.js"},"dist":{"shasum":"9ea8c2de9b02001b73e043fb5b9468830fc8ae5c","tarball":"https://registry.npmjs.org/@abdallahaho/ccline/-/ccline-1.1.0.tgz","fileCount":5,"integrity":"sha512-eKkk2PgT0RtIniOAqIZYLgt3kL5AOZyUaGv7WT3ZWIe3lNvoUBZ7BWMKcc5H+g8F2Jczh0mMPXyqOxrqdePWBg==","signatures":[{"sig":"MEQCIHoQKF2vWmP5WljCaSJ2A//+i2wYoU8M1yFjks6jWaaOAiBnk/GZbKvQ3RpivTbcvNNEnMScDv/g+oj3IQmg35kTXA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abdallahaho%2fccline@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":24906},"gitHead":"eafbed026c4bc73fd2df139d547a34711cb41b45","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:86b37ceb-d140-4841-b7ba-5f8408f78b11"}},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release v${version}"},"npm":{"publish":true,"skipChecks":true,"publishArgs":["--access","public"]},"hooks":{"before:init":["git log --oneline -5"]},"github":{"release":true,"releaseName":"v${version}"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":"angular"}}},"repository":{"url":"git+https://github.com/AbdallahAHO/ccline.git","type":"git"},"_npmVersion":"11.12.1","description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ccline_1.1.0_1774852304045_0.9237336084665349","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@abdallahaho/ccline","version":"1.1.1","keywords":["claude","claude-code","statusline","cli","anthropic","developer-tools"],"author":{"name":"Abdallah Othman"},"license":"MIT","_id":"@abdallahaho/ccline@1.1.1","maintainers":[{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"}],"homepage":"https://github.com/AbdallahAHO/ccline","bugs":{"url":"https://github.com/AbdallahAHO/ccline/issues"},"bin":{"ccline":"bin/install.js"},"dist":{"shasum":"479dd99bd95a2dee48be9f5043538f7ef6cb000e","tarball":"https://registry.npmjs.org/@abdallahaho/ccline/-/ccline-1.1.1.tgz","fileCount":5,"integrity":"sha512-4A7XD3IbJ6Cuv/GKTDDhRn0M/JDf0mjns0IwWzNC14NAktz4aQtbD936I0LchI7v6CwOQJ9D24INnsjd5lNerA==","signatures":[{"sig":"MEQCICFGjS6rLPUtnQBnmQJ3WmiQjnUe4+CmLDnV3PNLT4KGAiAox4cnD/vjlqCxZscbRxcqs52Ygxd2m17NnJNmkiOPWg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abdallahaho%2fccline@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":24920},"gitHead":"8208f8a432a832bc015d807a3e494c68f11f18a1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:86b37ceb-d140-4841-b7ba-5f8408f78b11"}},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release v${version}"},"npm":{"publish":true,"skipChecks":true,"publishArgs":["--access","public"]},"hooks":{"before:init":["git log --oneline -5"]},"github":{"release":true,"releaseName":"v${version}"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":"angular"}}},"repository":{"url":"git+https://github.com/AbdallahAHO/ccline.git","type":"git"},"_npmVersion":"11.12.1","description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ccline_1.1.1_1774852502861_0.7981137531038263","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@abdallahaho/ccline","version":"1.3.0","keywords":["claude","claude-code","statusline","cli","anthropic","developer-tools"],"author":{"name":"Abdallah Othman"},"license":"MIT","_id":"@abdallahaho/ccline@1.3.0","maintainers":[{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"}],"homepage":"https://github.com/AbdallahAHO/ccline","bugs":{"url":"https://github.com/AbdallahAHO/ccline/issues"},"bin":{"ccline":"bin/install.js"},"dist":{"shasum":"7f106e9ca786745a498ae44254a55ef1ba2f4bd3","tarball":"https://registry.npmjs.org/@abdallahaho/ccline/-/ccline-1.3.0.tgz","fileCount":5,"integrity":"sha512-i9NTC2enI+2KPdP3rL8rpeRATn4HLBKPzoRl6ByapMkxV8n2eVuK9uyRxrIBxj5ZTnXD2DWFc0yC45OgGmRnnw==","signatures":[{"sig":"MEQCIAohfwjslMMLxwNnLHA5jzqI338E61y5U1uUWHloqb0tAiBrngaidBsb6AWHAeqg+iUCyMEJsSYUNrrIxfOHBUWx9A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abdallahaho%2fccline@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":34679},"gitHead":"433015e746376862ee381b21fb62226b48b58d6d","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:86b37ceb-d140-4841-b7ba-5f8408f78b11"}},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release v${version}"},"npm":{"publish":true,"skipChecks":true,"publishArgs":["--access","public"]},"hooks":{"before:init":["git log --oneline -5"]},"github":{"release":true,"releaseName":"v${version}"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":"angular"}}},"repository":{"url":"git+https://github.com/AbdallahAHO/ccline.git","type":"git"},"_npmVersion":"11.12.1","description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection. Works on macOS, Linux, and Windows (Git Bash / WSL).","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ccline_1.3.0_1776451353824_0.1170633858411223","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@abdallahaho/ccline","version":"1.3.1","keywords":["claude","claude-code","statusline","cli","anthropic","developer-tools"],"author":{"name":"Abdallah Othman"},"license":"MIT","_id":"@abdallahaho/ccline@1.3.1","maintainers":[{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"}],"homepage":"https://github.com/AbdallahAHO/ccline","bugs":{"url":"https://github.com/AbdallahAHO/ccline/issues"},"bin":{"ccline":"bin/install.js"},"dist":{"shasum":"4e116e028f327283137bb2a0224b79114e690295","tarball":"https://registry.npmjs.org/@abdallahaho/ccline/-/ccline-1.3.1.tgz","fileCount":5,"integrity":"sha512-dmJlKw/hSLYay4rezoNSAa1y2NULj5Bg9dacbSauTtXNg4VFXoM/+Wl2jgCYgfiP4aHPYJTJb0LKwzdc/GPYSg==","signatures":[{"sig":"MEYCIQC5S775nVGxeAy2yt1slcyKOBCuxqSC3ybZZMS3UWw7hgIhANIuywrzmOJ19oBTxJAXgG9VWRp7/EJI6HFi/qNx2I44","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abdallahaho%2fccline@1.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":34904},"gitHead":"fd9a632b90ca8a184fbe6545b99c1745c65d61a7","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:86b37ceb-d140-4841-b7ba-5f8408f78b11"}},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release v${version}"},"npm":{"publish":true,"skipChecks":true,"publishArgs":["--access","public"]},"hooks":{"before:init":["git log --oneline -5"]},"github":{"release":true,"releaseName":"v${version}"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":"angular"}}},"repository":{"url":"git+https://github.com/AbdallahAHO/ccline.git","type":"git"},"_npmVersion":"11.13.0","description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection. Works on macOS, Linux, and Windows (Git Bash / WSL).","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ccline_1.3.1_1776936509679_0.243136293193841","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@abdallahaho/ccline","version":"1.4.0","keywords":["claude","claude-code","statusline","cli","anthropic","developer-tools"],"author":{"name":"Abdallah Othman"},"license":"MIT","_id":"@abdallahaho/ccline@1.4.0","maintainers":[{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"}],"homepage":"https://github.com/AbdallahAHO/ccline","bugs":{"url":"https://github.com/AbdallahAHO/ccline/issues"},"bin":{"ccline":"bin/install.js"},"dist":{"shasum":"6e4502eec34f40c1d4097442beed8b1c91fd82ef","tarball":"https://registry.npmjs.org/@abdallahaho/ccline/-/ccline-1.4.0.tgz","fileCount":5,"integrity":"sha512-Ox6tG5M9u7hOadQm8gdUCvAM2+Nu7MNghgvbR4J0Lb5CrpVci6py/evW5ztSMdq5Ps0n6iQ9L3jCBv2MgfA54w==","signatures":[{"sig":"MEQCIBeuR6Q1E8SGp5+rzwb0QYqcd2T+OIlWAng2k4yxbmPcAiBry1t/Qec6ZZVw48KYBgYe7kAwiJOAcDvzj+ukZ/Nf5Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abdallahaho%2fccline@1.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":35982},"gitHead":"9355a40529a6a338b52648312c7d6b6ebab5fe05","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:86b37ceb-d140-4841-b7ba-5f8408f78b11"}},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release v${version}"},"npm":{"publish":true,"skipChecks":true,"publishArgs":["--access","public"]},"hooks":{"before:init":["git log --oneline -5"]},"github":{"release":true,"releaseName":"v${version}"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":"angular"}}},"repository":{"url":"git+https://github.com/AbdallahAHO/ccline.git","type":"git"},"_npmVersion":"11.13.0","description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection. Works on macOS, Linux, and Windows (Git Bash / WSL).","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ccline_1.4.0_1776941011490_0.34325896852204796","host":"s3://npm-registry-packages-npm-production"}},"1.4.1":{"name":"@abdallahaho/ccline","version":"1.4.1","keywords":["claude","claude-code","statusline","cli","anthropic","developer-tools"],"author":{"name":"Abdallah Othman"},"license":"MIT","_id":"@abdallahaho/ccline@1.4.1","maintainers":[{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"}],"homepage":"https://github.com/AbdallahAHO/ccline","bugs":{"url":"https://github.com/AbdallahAHO/ccline/issues"},"bin":{"ccline":"bin/install.js"},"dist":{"shasum":"12675c068b3836e5bc1a96b508351c6ea0cd8704","tarball":"https://registry.npmjs.org/@abdallahaho/ccline/-/ccline-1.4.1.tgz","fileCount":5,"integrity":"sha512-8XdceGM4KVo/QXmu+VWS8aHzRS/3OjPepNQFNrfGiMVjWb93/Yd20MgYt0eXhfnhwVrIHFGeGg501G5dZ91oWA==","signatures":[{"sig":"MEUCIQDwG23hK/wSGnCCYTeSbjcCB07jnWnF/ZAxWkrc1lg+hwIgW8F9GO/kgtUDKzf+En3fn7GbTwqDQ3Cie1mORg3tcVU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abdallahaho%2fccline@1.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":35972},"gitHead":"c3d8c9aa176bfa976f194a5e8db9388e4c52e30d","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:86b37ceb-d140-4841-b7ba-5f8408f78b11"}},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release v${version}"},"npm":{"publish":true,"skipChecks":true,"publishArgs":["--access","public"]},"hooks":{"before:init":["git log --oneline -5"]},"github":{"release":true,"releaseName":"v${version}"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":"angular"}}},"repository":{"url":"git+https://github.com/AbdallahAHO/ccline.git","type":"git"},"_npmVersion":"11.14.1","description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection. Works on macOS, Linux, and Windows (Git Bash / WSL).","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/ccline_1.4.1_1778483848323_0.6683449523390996","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"@abdallahaho/ccline","version":"1.5.0","description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection. Works on macOS, Linux, and Windows (Git Bash / WSL).","bin":{"ccline":"bin/install.js"},"keywords":["claude","claude-code","statusline","cli","anthropic","developer-tools"],"author":{"name":"Abdallah Othman"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AbdallahAHO/ccline.git"},"homepage":"https://github.com/AbdallahAHO/ccline","release-it":{"git":{"commitMessage":"chore: release v${version}","tagName":"v${version}"},"github":{"release":true,"releaseName":"v${version}"},"npm":{"publish":true,"skipChecks":true,"publishArgs":["--access","public"]},"plugins":{"@release-it/conventional-changelog":{"preset":"angular","infile":"CHANGELOG.md"}},"hooks":{"before:init":["git log --oneline -5"]}},"gitHead":"40752355c2b38d96f91d449838145771d9bde9b3","_id":"@abdallahaho/ccline@1.5.0","bugs":{"url":"https://github.com/AbdallahAHO/ccline/issues"},"_nodeVersion":"22.23.1","_npmVersion":"11.18.0","dist":{"integrity":"sha512-x+g4rgBcIekxc4thkn84ANrAA30se6h3up6scp1AeUs/xseLTz4TlzF3/T/bk/8hXwb4JOd9ALBXY3CdInSmpg==","shasum":"27ac71a1425a88c3cd7ae26b479b74628998ef6f","tarball":"https://registry.npmjs.org/@abdallahaho/ccline/-/ccline-1.5.0.tgz","fileCount":5,"unpackedSize":40909,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abdallahaho%2fccline@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA6xvHX9rBsd6jYPFThHZFO6msHwDCidaEX9NI3G85IfAiAA/15KnUiTe+I5+B5rsAB4p5Aqk+Y09pOCt0xLlWTIFw=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:86b37ceb-d140-4841-b7ba-5f8408f78b11"}},"directories":{},"maintainers":[{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ccline_1.5.0_1783171054029_0.8641799332390263"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-30T06:24:49.563Z","modified":"2026-07-04T13:17:34.466Z","1.0.0":"2026-03-30T06:24:49.819Z","1.1.0":"2026-03-30T06:31:44.192Z","1.1.1":"2026-03-30T06:35:03.009Z","1.3.0":"2026-04-17T18:42:33.991Z","1.3.1":"2026-04-23T09:28:29.827Z","1.4.0":"2026-04-23T10:43:31.631Z","1.4.1":"2026-05-11T07:17:28.452Z","1.5.0":"2026-07-04T13:17:34.188Z"},"bugs":{"url":"https://github.com/AbdallahAHO/ccline/issues"},"author":{"name":"Abdallah Othman"},"license":"MIT","homepage":"https://github.com/AbdallahAHO/ccline","keywords":["claude","claude-code","statusline","cli","anthropic","developer-tools"],"repository":{"type":"git","url":"git+https://github.com/AbdallahAHO/ccline.git"},"description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection. Works on macOS, Linux, and Windows (Git Bash / WSL).","maintainers":[{"name":"abdallahaho","email":"abdallah.ali.hassan@gmail.com"}],"readme":"# ccline\n\nA feature-rich statusline for [Claude Code](https://docs.anthropic.com/en/docs/claude-code) that helps you track session health, manage quota, and avoid burning through your Max plan.\n\n![demo](.github/demo.png)\n\n## What you get\n\n**Line 1 — Identity & Project**\n```\nO4.7 1M ◉ xhigh 🛡 plan | 📂 really-app (main*) 📝+147 -38 | @code-reviewer | ⎇ feat-x | → src/features/search\n```\n- Compact model name with effort level — the full ladder is rendered distinctly:\n\n  | effort | glyph | color   | notes                                      |\n  |--------|-------|---------|--------------------------------------------|\n  | low    | `◔`   | dim     | minimal reasoning                          |\n  | medium | `◑`   | white   |                                            |\n  | high   | `●`   | magenta |                                            |\n  | xhigh  | `◉`   | red     | default on Opus 4.7 (v2.1.117+)            |\n  | max    | `⚡`   | red     | deepest reasoning, session-only by default |\n\n  The badge reflects the **live session** effort — including mid-session `/effort` changes — read from the input JSON's `effort.level`, falling back to the saved `settings.json` default.\n\n- Permission mode badge — `🛡 plan`, `✎ auto` (acceptEdits), or `⚡ bypass` (bypassPermissions). Hidden in default mode.\n- Output-style badge (e.g., `◎ Learning`) when not `default`\n- Vim mode indicator (`[N]` / `[I]`) when vim mode is on\n- Project root with git branch and dirty indicator (single `git status` call)\n- Lines changed this session\n- Subagent name (`@code-reviewer`) and worktree (`⎇ feat-x`) when active\n- `⚠ 200k+` flag when the latest response crosses the fixed 200k-token threshold (long-context 2× pricing on 1M models — not a downgrade; the flag is independent of context-window size)\n- Current working directory (relative to project, fish-style abbreviation if outside)\n\n**Line 2 — Session Health**\n```\n#84 turns | ⏱ 2h14m | 72% 720k/1m ctx compact soon | $12.41 | api 66%\n```\n- Real user-turn counter (yellow at 30, red at 50 — tool results no longer inflate the count)\n- Session duration (cross-platform — uses birthtime on macOS/Linux with mtime fallback on filesystems that don't track it)\n- Context window usage with `compact soon` / `compacting…` / `⛔ blocked` warnings matching Claude Code's actual autocompact thresholds (20k / 13k / 3k below the context limit)\n- Running session cost (yellow at $5, red at $10)\n- API-latency ratio — what fraction of total wall time was spent waiting on the model\n\n**Lines 3+ — Quota & Rate Limits**\n```\ncurrent ●●●●●●●○○○  68% resets 3:42pm  🔥 PEAK til 8pm\nweekly  ●●●●●●●●○○  81% resets apr 3, 7:00pm  ~22%/day ⚡\nfable   ●●●●○○○○○○  46% resets apr 3, 7:00pm  ⚠ plan ends jul 7\nextra   ●○○○○○○○○○  €0.95/€40.00 resets aug 1\n```\n- Rate limits read directly from Claude Code's input JSON (freshest data); OAuth API serves as a fallback when input is empty (cached 60s at `${TMPDIR:-/tmp}/claude-$UID/`)\n- Peak hour detection (05:00–11:00 PT) with local end time — only shows when active\n- Weekly burn rate projection — green if on pace, yellow if tight, red if you'll hit the limit\n- `⚡ burning fast` on either window when you're tracking ahead of schedule\n- **Per-model weekly meters** — Max plans cap each premium model's weekly usage separately from the overall weekly bucket. Any model the API scopes (`weekly_scoped` in `limits[]`) gets its own row labelled by name (e.g. `fable`, `opus`). Rendered only from fresh API data, so the row disappears cleanly when the API stops returning it (e.g. after a plan window ends) or is unreachable.\n- **Fable plan-window badge** — while Fable is plan-included (through Jul 7, 2026), the `fable` row carries a `⚠ plan ends jul 7` reminder; afterward the scoped bucket leaves the API and the row disappears on its own, with usage shifting to the credit-based `extra` line.\n- **`extra` credit line** follows the account's billing currency reported by the API (`$`/`€`/`£`/`¥`, else the ISO code) instead of assuming USD\n\n## Install\n\n```bash\nnpx @abdallahaho/ccline@latest\n```\n\nThis copies the statusline script to `~/.claude/statusline.sh` and configures your `~/.claude/settings.json`. Restart Claude Code to see it.\n\nIf you already have a custom statusline, it's backed up to `statusline.sh.bak` first.\n\n## Requirements\n\n- `bash`, `jq`, `curl`, `git`\n- Claude Code with an active Max/Pro subscription (for rate limit bars)\n\n```bash\n# macOS\nbrew install jq\n\n# Ubuntu / Debian / WSL\nsudo apt install jq curl git\n\n# Windows (Git Bash / MSYS2)\npacman -S jq curl git\n# or with Chocolatey from PowerShell:\nchoco install jq curl git\n```\n\n### Windows notes\nccline runs under **Git Bash**, **MSYS2**, or **WSL** — it is a bash script, not a native PowerShell one. Make sure Claude Code itself is launched from one of those shells so that the statusline command resolves `bash` correctly. PowerShell users can point the `statusLine` entry at `bash -c \"$HOME/.claude/statusline.sh\"` but running Claude Code under Git Bash or WSL is simpler.\n\n## Uninstall\n\n```bash\nnpx @abdallahaho/ccline@latest --uninstall\n```\n\nRestores your previous statusline if a backup exists, or removes it and cleans up settings.json.\n\n## How it works\n\nClaude Code pipes a JSON blob to the statusline script on every render. The script does a single `jq` parse via `eval`, then pulls rate limits directly from that blob when present — that data is always fresher than anything we could re-fetch. If the input JSON doesn't carry `rate_limits` (rare — only the very first render after launch), we fall back to the OAuth usage API, cached for 60s at `${TMPDIR:-/tmp}/claude-$UID/statusline-usage-cache.json` with `0700` perms.\n\nAutocompact thresholds (`compact soon` / `compacting…` / `⛔ blocked`) mirror `src/services/compact/autoCompact.ts` in the Claude Code source: 20k / 13k / 3k below the model's context window.\n\nThe OAuth token (only needed for the API fallback and the `extra` line) is resolved from (in order):\n1. `$CLAUDE_CODE_OAUTH_TOKEN` environment variable\n2. macOS Keychain\n3. `~/.claude/.credentials.json` (works on every platform)\n4. Linux `secret-tool`\n\nFor a line-by-line walkthrough of the script, see [how-it-works.md](./how-it-works.md). For contribution and release guidelines, see [CLAUDE.md](./CLAUDE.md).\n\n## Credits\n\nHeavily inspired by [kamranahmedse/claude-statusline](https://github.com/kamranahmedse/claude-statusline) by Kamran Ahmed.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}