{"id":47857019,"url":"https://github.com/abdallahaho/ccline","last_synced_at":"2026-04-06T00:01:25.347Z","repository":{"id":347952795,"uuid":"1195861431","full_name":"AbdallahAHO/ccline","owner":"AbdallahAHO","description":"A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection","archived":false,"fork":false,"pushed_at":"2026-03-30T06:37:17.000Z","size":260,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T22:56:36.020Z","etag":null,"topics":["anthropic","claude-code","cli","developer-tools","statusline"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@abdallahaho/ccline","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbdallahAHO.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-30T06:14:54.000Z","updated_at":"2026-04-01T08:29:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/AbdallahAHO/ccline","commit_stats":null,"previous_names":["abdallahaho/ccline"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AbdallahAHO/ccline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdallahAHO%2Fccline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdallahAHO%2Fccline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdallahAHO%2Fccline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdallahAHO%2Fccline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbdallahAHO","download_url":"https://codeload.github.com/AbdallahAHO/ccline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdallahAHO%2Fccline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31418286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anthropic","claude-code","cli","developer-tools","statusline"],"created_at":"2026-04-03T22:56:35.069Z","updated_at":"2026-04-04T23:00:45.512Z","avatar_url":"https://github.com/AbdallahAHO.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"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 \u0026 Project**\n```\nO4.6 1M ● high | 📂 really-app (main*) 📝+147 -38 | → src/features/search\n```\n- Compact model name with effort level\n- Project root with git branch and dirty indicator\n- Lines changed this session\n- Current working directory (relative to project, fish-style if outside)\n\n**Line 2 — Session Health**\n```\n#84 turns | ⏱ 2h14m | 72% 720k/1m ctx compact? | $12.41\n```\n- Turn counter (yellow at 30, red at 50 — time to start fresh)\n- Session duration\n- Context window usage with absolute tokens and compaction nudge at 60%+\n- Running session cost (yellow at $5, red at $10)\n\n**Lines 3-4 — Quota \u0026 Rate Limits**\n```\ncurrent ●●●●●●●○○○  68% resets 3:42pm  🔥 PEAK til 8pm\nweekly  ●●●●●●●●○○  81% resets apr 3, 7:00pm  ~22%/day\n```\n- 5-hour and 7-day rate limit bars via Anthropic OAuth API (cached, 60s TTL)\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\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- `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\nsudo apt install jq curl git\n```\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 extracts model info, context usage, session cost, and workspace data from that JSON. Rate limit data is fetched from the Anthropic OAuth API and cached for 60 seconds at `/tmp/claude/statusline-usage-cache.json`.\n\nThe OAuth token is resolved from (in order):\n1. `$CLAUDE_CODE_OAUTH_TOKEN` environment variable\n2. macOS Keychain\n3. `~/.claude/.credentials.json`\n4. Linux `secret-tool`\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdallahaho%2Fccline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdallahaho%2Fccline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdallahaho%2Fccline/lists"}