[Feature Request] Expose quota/rate limit data to status line JSON

Resolved 💬 3 comments Opened Jan 23, 2026 by exalted Closed Jan 23, 2026

Bug Description
Feature Request: Expose quota/rate limit data to status line scripts

Users would benefit from seeing their usage quota percentages (the same data shown in /status → "Usage" tab):

  1. Session quota - percentage used, reset time
  2. Weekly quota (all models) - percentage used, reset time

Use case: I want to permanently display my session and weekly usage quotas in the status line while working, so I can pace my usage without repeatedly running /status.

Suggested fields to add to status line JSON:

{
  "quota": {
    "session": {
      "used_percentage": 26,
      "resets_at": "2025-01-23T15:00:00+01:00"
    },
    "weekly": {
      "used_percentage": 42,
      "resets_at": "2025-01-28T15:00:00+01:00"
    }
  }
}

Environment Info

  • Platform: darwin
  • Terminal: zed
  • Version: 2.1.14
  • Feedback ID: 0f282a5f-bf03-4422-adf2-5c6853855663

Errors

[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:1903)\n    at e3 (/$bunfs/root/claude:11:34695)\n    at readdirSync (/$bunfs/root/claude:12:1864)\n    at n6R (/$bunfs/root/claude:1465:380)\n    at n6R (/$bunfs/root/claude:1465:1350)\n    at <anonymous> (/$bunfs/root/claude:1465:4440)\n    at <anonymous> (/$bunfs/root/claude:1465:5171)\n    at A (/$bunfs/root/claude:11:7245)\n    at zC8 (/$bunfs/root/claude:4096:4342)","timestamp":"2026-01-23T10:17:57.578Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Users/someuser/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:1903)\n    at e3 (/$bunfs/root/claude:11:34695)\n    at readdirSync (/$bunfs/root/claude:12:1864)\n    at n6R (/$bunfs/root/claude:1465:380)\n    at n6R (/$bunfs/root/claude:1465:1350)\n    at <anonymous> (/$bunfs/root/claude:1465:4483)\n    at <anonymous> (/$bunfs/root/claude:1465:5171)\n    at A (/$bunfs/root/claude:11:7245)\n    at zC8 (/$bunfs/root/claude:4096:4342)","timestamp":"2026-01-23T10:17:57.578Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:582)\n    at e3 (/$bunfs/root/claude:11:34695)\n    at readFileSync (/$bunfs/root/claude:12:541)\n    at Iv_ (/$bunfs/root/claude:4504:27166)\n    at call (/$bunfs/root/claude:1474:945)\n    at call (/$bunfs/root/claude:1470:6496)\n    at dd7 (/$bunfs/root/claude:2612:19024)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-23T10:28:37.391Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗