{"id":36972344,"url":"https://github.com/ezoosk/claude-context-bar","last_synced_at":"2026-01-13T21:58:31.455Z","repository":{"id":329988259,"uuid":"1121232327","full_name":"ezoosk/claude-context-bar","owner":"ezoosk","description":"VScode extension enabling real-time context window monitoring for Claude Code sessions. See token counts in your status bar with color-coded warnings.","archived":false,"fork":false,"pushed_at":"2025-12-29T12:44:55.000Z","size":78,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T13:15:52.347Z","etag":null,"topics":["anthropic","antigravity","claude","claudecode","context","vscode","windsurf"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ezoosk.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":"2025-12-22T16:41:34.000Z","updated_at":"2025-12-29T12:44:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ezoosk/claude-context-bar","commit_stats":null,"previous_names":["ezoosk/claude-context-bar"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ezoosk/claude-context-bar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezoosk%2Fclaude-context-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezoosk%2Fclaude-context-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezoosk%2Fclaude-context-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezoosk%2Fclaude-context-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezoosk","download_url":"https://codeload.github.com/ezoosk/claude-context-bar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezoosk%2Fclaude-context-bar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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","antigravity","claude","claudecode","context","vscode","windsurf"],"created_at":"2026-01-13T21:58:30.758Z","updated_at":"2026-01-13T21:58:31.447Z","avatar_url":"https://github.com/ezoosk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Context Bar\n\n**Real-time context window monitor for Claude Code sessions in VS Code**\n\n## Features\n\n🧠 **Live Context Tracking** — See your Claude Code context usage percentage right in the status bar\n\n⚡ **Per-Tab Monitoring** — Each Claude Code tab gets its own context indicator\n\n🎯 **Fuzzy Emoji Matching** — Icons automatically match your project type based on name keywords:\n- 🎵 Music/audio projects\n- 🎮 Games\n- 🌐 Web/frontend\n- 📱 Mobile apps\n- 🤖 AI/ML projects\n- 🔧 Tools/extensions\n- And many more...\n\n🎨 **Auto Color Mode** — Each project automatically gets a unique pastel color for easy identification\n\n🔍 **Smart Context Detection** — Automatically detects your model (Sonnet 4.5 1M vs others) and adjusts the context limit accordingly\n\n⚠️ **Color-Coded Warnings**:\n- Normal: Under 50% usage\n- Warning (yellow background): 50-75% usage\n- Danger (red background): Over 75% usage\n\n📊 **Detailed Tooltips** — Hover to see:\n- First message (matches Claude Code tab name)\n- Model name\n- Cache Read / Cache Creation tokens\n- Total context used vs limit\n- Last updated time\n\n🔄 **Auto-Refresh** — Updates automatically when sessions change or every 30 seconds\n\n🧹 **Smart Session Detection** — Automatically hides \"ghost\" sessions when you close tabs or run `/clear`\n\n👆 **Click to Hide** — Click any context bar item to temporarily hide it; reappears on new activity\n\n📐 **Compact Mode** — Shorten project names to save space (my-cool-project → MCP, typescript → Tscript)\n\n## Requirements\n\n- VS Code 1.74.0 or later\n- [Claude Code](https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code) extension installed and active\n\n**Install:**\n- [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=ezoosk.claude-context-bar)\n- [Open VSX Registry](https://open-vsx.org/extension/ezoosk/claude-context-bar) (for Antigravity, VSCodium, etc.)\n\n## Configuration\n\n| Setting | Default | Description |\n|---------|---------|-------------|\n| `claudeContextBar.showEmoji` | `true` | Show emoji icons based on project name keywords |\n| `claudeContextBar.autoColor` | `true` | Automatically assign unique pastel colors to each project |\n| `claudeContextBar.baseColor` | `White` | Base color when Auto Color is off (subtle variations per project) |\n| `claudeContextBar.contextLimit` | `200000` | Fallback context limit (auto-detected for most models) |\n| `claudeContextBar.warningThreshold` | `50` | Percentage for yellow warning |\n| `claudeContextBar.dangerThreshold` | `75` | Percentage for red danger |\n| `claudeContextBar.refreshInterval` | `30` | Refresh interval in seconds |\n| `claudeContextBar.idleTimeout` | `180` | Seconds of inactivity before hiding a session (3 minutes) |\n| `claudeContextBar.compactMode` | `false` | Shorten project names to save status bar space |\n| `claudeContextBar.shortNames` | `{}` | Custom short names for projects (e.g., `{\"my-project\": \"MP\"}`) |\n\n## How It Works\n\nThe extension reads Claude Code's session files from `~/.claude/projects/` and calculates token usage from the JSONL logs. It automatically detects which model you're using and adjusts the context limit:\n\n- **Claude Sonnet 4.5 1M**: 1,000,000 tokens\n- **All other models** (Sonnet 4.5, Opus 4.5, Haiku): 200,000 tokens\n\nSessions inactive for more than 3 minutes (configurable via `idleTimeout`) are automatically hidden. The extension also detects when sessions have been superseded by newer ones (e.g., after running `/clear` and opening a new tab), hiding ghost sessions immediately.\n\n## License\n\nMIT © 2025 [Ed Zisk](https://github.com/ezoosk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezoosk%2Fclaude-context-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezoosk%2Fclaude-context-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezoosk%2Fclaude-context-bar/lists"}