|
Download README.md from smlflg/ClaudeCodePanel: direct link, hf CLI and curl.
- Browser
- Download file 4.09 kB
-
https://huggingface.co/smlflg/ClaudeCodePanel/resolve/main/README.md
- Command line
-
hf download hf://smlflg/ClaudeCodePanel/README.md
-
curl -L -o README.md https://huggingface.co/smlflg/ClaudeCodePanel/resolve/main/README.md
4.09 kB
| # Claude Code Panel | |
| A native GTK3 desktop panel for [Claude Code](https://claude.ai/code) on Linux. System tray icon, session browser, agent swarm monitor, cost tracking, event viewer β all in one place. | |
| Built for Pop!\_OS / COSMIC Desktop, works on any Linux with GTK3. | |
| ## Features | |
| - **System Tray Icon** β always-on indicator with quick access menu (AyatanaAppIndicator) | |
| - **Hub Tab** β daily cost, top tools, active sessions at a glance | |
| - **Monitor Tab** β signal cards, usage timeline, provider cost breakdown, phase badge | |
| - **Session Browser** β search, filter, and resume sessions with one click | |
| - **Process Manager** β Claude-related processes (MCP servers, CLI), ghost detection, kill button | |
| - **Agent Swarm Tab** β live view of Agent Team pipelines (Scout β Weaver β Builder β Validator β PrΓΌfer) | |
| - **Swarm Visual** β HTML agent communication graph (hub-and-spoke, BΓ©zier curves, particles) | |
| - **Event Viewer** β live hook events from `~/.claude/events/` with filters + auto-scroll | |
| - **Shortcut Counter** β keyboard shortcut usage stats from ShortcutCounter DB | |
| - **Project Dashboard** β embedded WebKit2 view of project dashboards | |
| - **Log Viewer** β filterable usage + coaching log entries | |
| - **Settings & Hooks** β read/write Claude Code config with atomic file writes | |
| - **Cost Tracking** β daily token costs, 7-day bar chart, per-provider breakdown | |
| - **Light/Dark Mode** β auto-detects COSMIC Desktop theme, Catppuccin Mocha/Latte, live switching | |
| - **Singleton Lock** β only one instance runs at a time (fcntl.flock) | |
| - **Portrait Monitor** β auto-moves window to portrait display if available | |
| ## Requirements | |
| - Python 3.10+ | |
| - GTK 3.0 | |
| - AyatanaAppIndicator3 (system tray) | |
| - WebKit2 (optional, for Project Dashboard tab) | |
| ```bash | |
| # Pop!_OS / Ubuntu / Debian | |
| sudo apt install python3-gi gir1.2-gtk-3.0 gir1.2-ayatanaappindicator3-0.1 gir1.2-webkit2-4.1 | |
| ``` | |
| ## Installation | |
| ```bash | |
| git clone https://github.com/smlfg/ClaudeCodePanel.git | |
| cd ClaudeCodePanel | |
| # Run directly | |
| python3 panel.py | |
| # Or install as systemd user service (auto-start on login) | |
| cp claude-panel.service ~/.config/systemd/user/ | |
| systemctl --user daemon-reload | |
| systemctl --user enable --now claude-panel.service | |
| ``` | |
| ## Architecture | |
| ``` | |
| panel.py (2373 LOC) β Main window, 7+ tabs, tray icon, singleton lock | |
| βββ monitor.py (729) β Data layer: costs, tools, sessions (TTL cache 30s) | |
| βββ config_io.py (168) β Atomic config read/write (backup β temp β rename) | |
| βββ theme.py (620) β COSMIC theme detection + Catppuccin CSS | |
| βββ session_browser.py (1039) β Session list, search, resume | |
| βββ process_manager.py (588) β Process scan, ghost detection, kill | |
| βββ log_viewer.py (435) β Usage + coaching log viewer | |
| βββ swarm_tab.py (974) β Agent Team pipeline viewer | |
| βββ swarm_visual.py (708) β HTML agent communication graph | |
| βββ event_tab.py (426) β Live hook event viewer | |
| βββ shortcut_counter_tab.py (450) β Keyboard shortcut stats | |
| βββ project_dashboard_tab.py (254) β Embedded project dashboard (WebKit2) | |
| βββ utils.py (33) β Helper functions | |
| ``` | |
| ### tools-gui/ (separate window) | |
| ``` | |
| tools-gui/main.py (83) β Standalone GTK3 window | |
| βββ tabs/sessions_tab.py (146) β Session list with search | |
| βββ tabs/costs_tab.py (216) β Daily costs + 7-day bar chart (Cairo) | |
| βββ tabs/tools_tab.py (178) β Tool + skill usage breakdown | |
| ``` | |
| **Total: ~9,700 LOC across 19 Python files.** | |
| ## Theme System | |
| The panel auto-detects your desktop theme: | |
| - **COSMIC Desktop**: reads `~/.config/cosmic/com.system76.CosmicTheme.Mode/v1/is_dark` | |
| - **Other GTK desktops**: uses `gtk-application-prefer-dark-theme` setting | |
| Switching your system theme updates the panel in real-time (no restart needed). | |
| Color palettes: [Catppuccin Mocha](https://github.com/catppuccin/catppuccin) (dark) / [Catppuccin Latte](https://github.com/catppuccin/catppuccin) (light). | |
| ## License | |
| MIT | |