{"id":47997396,"url":"https://github.com/yurukusa/cc-project-stats","last_synced_at":"2026-04-04T12:01:37.712Z","repository":{"id":341266140,"uuid":"1169424147","full_name":"yurukusa/cc-project-stats","owner":"yurukusa","description":"Time spent per project in Claude Code — ranked by hours, you vs AI","archived":false,"fork":false,"pushed_at":"2026-02-28T19:32:25.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-28T22:50:25.313Z","etag":null,"topics":["ai","claude","claude-code","developer-tools","productivity"],"latest_commit_sha":null,"homepage":"https://yurukusa.github.io/cc-project-stats/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yurukusa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-28T17:06:03.000Z","updated_at":"2026-02-28T21:23:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yurukusa/cc-project-stats","commit_stats":null,"previous_names":["yurukusa/cc-project-stats"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yurukusa/cc-project-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurukusa%2Fcc-project-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurukusa%2Fcc-project-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurukusa%2Fcc-project-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurukusa%2Fcc-project-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yurukusa","download_url":"https://codeload.github.com/yurukusa/cc-project-stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurukusa%2Fcc-project-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31398770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","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":["ai","claude","claude-code","developer-tools","productivity"],"created_at":"2026-04-04T12:01:35.619Z","updated_at":"2026-04-04T12:01:37.234Z","avatar_url":"https://github.com/yurukusa.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cc-project-stats\n\nWhere are you actually spending your Claude Code time? This tool breaks down your hours by project — ranked by total time, split between you and AI.\n\n## Usage\n\n```bash\nnpx cc-project-stats             # last 7 days\nnpx cc-project-stats --days=30   # last 30 days\nnpx cc-project-stats --all       # all time\nnpx cc-project-stats --json      # raw JSON output\n```\n\n## Output\n\n```\n  cc-project-stats  —  last 7 days\n  2026-02-22 → 2026-03-01\n  ──────────────────────────────────────────────────────────────────\n\n  Project                               You       AI       Total\n  ──────────────────────────────────────────────────────────────────\n  cc-loop                ██████████████   24.6h    11.1h    35.7h\n  ~                      ████████░░░░░░    4.8h    11.1h    15.9h\n\n  ──────────────────────────────────────────────────────────────────\n  Total                              29.3h    22.2h    51.5h\n\n  Top: cc-loop — 69% of total, human-led (69% interactive)\n```\n\nThe bar chart shows cyan (█) for your interactive hours and yellow (█) for AI autonomous hours within each project.\n\n## Options\n\n| Flag | Description |\n|------|-------------|\n| `--days=\u003cN\u003e` | Look back N days (default: 7) |\n| `--all` | Show all-time stats |\n| `--json` | Print raw JSON for scripting |\n| `--help` | Show help |\n\n## How it works\n\nReads session files directly from `~/.claude/projects/`. Uses the same methodology as [cc-agent-load](https://www.npmjs.com/package/cc-agent-load):\n- **Your hours** (cyan): direct conversation sessions\n- **AI hours** (yellow): autonomous subagent sessions in `*/subagents/`\n- **Duration**: time between first and last message in each session file\n\n## Requirements\n\n- Node.js 18+\n- Claude Code with `~/.claude/projects/` session history\n\nNo external dependencies needed. Works independently of cc-agent-load.\n\n## Part of cc-toolkit\n\nThis tool is part of the [cc-toolkit](https://yurukusa.github.io/cc-toolkit/) collection of Claude Code utilities.\n\n**Zero dependencies. No data sent anywhere. Runs entirely local.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyurukusa%2Fcc-project-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyurukusa%2Fcc-project-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyurukusa%2Fcc-project-stats/lists"}