[Bug] Context command reports inconsistent free space calculation

Resolved 💬 2 comments Opened Jan 22, 2026 by jerry426 Closed Feb 28, 2026

Bug Description
There is a bug in how the context command is reporting results. Look at the difference in free space being reported.

❯ /context
⎿ Context Usage
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ claude-opus-4-5-20251101 · 121k/200k tokens (61%)
⛁ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ Estimated usage by category
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ System prompt: 3.0k tokens (1.5%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ System tools: 16.3k tokens (8.1%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Memory files: 3.6k tokens (1.8%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Compact buffer: 3.0k tokens (1.5%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ Free space: 174k (87.1%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ ⛀

Memory files · /memory
└ CLAUDE.md: 3.6k tokens

❯ /context
⎿ Context Usage
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ claude-opus-4-5-20251101 · 121k/200k tokens (61%)
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ Estimated usage by category
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ System prompt: 3.0k tokens (1.5%)
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ System tools: 16.3k tokens (8.1%)
⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ Memory files: 3.6k tokens (1.8%)
⛁ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Messages: 100.6k tokens (50.3%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Compact buffer: 3.0k tokens (1.5%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ Free space: 74k (36.8%)
⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ ⛀

Memory files · /memory
└ CLAUDE.md: 3.6k tokens

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.14
  • Feedback ID: 7e8c4f02-b714-43d5-accb-8a2738824f0e

Errors

[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n    at Module.readdirSync (node:fs:1564:26)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n    at jI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34380)\n    at Object.readdirSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n    at FZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1523:369)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1523:4274\n    at B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6808)\n    at lz7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4154:4354)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4154:6941\n    at B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6808)","timestamp":"2026-01-21T02:47:40.044Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Users/jerry/.claude/skills'\n    at Module.readdirSync (node:fs:1564:26)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n    at jI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34380)\n    at Object.readdirSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n    at FZ1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1523:369)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1523:4317\n    at B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6808)\n    at lz7 (file:///opt/homebrew/lib/node_modules/@anthrop…

Note: Content was truncated.

View original on GitHub ↗

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