|
| 1 | +# Statusline |
| 2 | + |
| 3 | +A Claude Code plugin that provides real-time visibility into your coding session. Track context usage, active tools, running agents, and task progress at a glance. |
| 4 | + |
| 5 | +**Inspired by [claude-hud](https://github.com/jarrodwatts/claude-hud) — enhanced for the claude-plugins ecosystem.** |
| 6 | + |
| 7 | +## Overview |
| 8 | + |
| 9 | +Statusline keeps you informed about what's happening during your Claude Code session without interrupting your workflow. Get immediate feedback on: |
| 10 | + |
| 11 | +| Metric | Purpose | |
| 12 | +|--------|---------| |
| 13 | +| **Context Health** | Know exactly how much of your token window is in use | |
| 14 | +| **Active Tools** | See which tools Claude is using right now | |
| 15 | +| **Agent Tracking** | Monitor running agents and their execution time | |
| 16 | +| **Task Progress** | Track todo completion in real-time | |
| 17 | + |
| 18 | +## Installation |
| 19 | + |
| 20 | +Add the plugin to your Claude Code instance: |
| 21 | + |
| 22 | +```bash |
| 23 | +/plugin install statusline |
| 24 | +``` |
| 25 | + |
| 26 | +Then enable monitoring: |
| 27 | + |
| 28 | +```bash |
| 29 | +/statusline:enable |
| 30 | +``` |
| 31 | + |
| 32 | +## Quick Start |
| 33 | + |
| 34 | +### View Current Status |
| 35 | +Check your session metrics anytime: |
| 36 | +```bash |
| 37 | +/statusline:status |
| 38 | +``` |
| 39 | + |
| 40 | +### Continuous Monitoring |
| 41 | +Enable automatic status updates (5-second interval by default): |
| 42 | +```bash |
| 43 | +/statusline:enable |
| 44 | +``` |
| 45 | + |
| 46 | +### Custom Update Interval |
| 47 | +Set a custom monitoring interval (in seconds): |
| 48 | +```bash |
| 49 | +/statusline:enable 10 |
| 50 | +``` |
| 51 | + |
| 52 | +### Stop Monitoring |
| 53 | +Pause background updates while keeping the plugin active: |
| 54 | +```bash |
| 55 | +/statusline:disable |
| 56 | +``` |
| 57 | + |
| 58 | +## Commands |
| 59 | + |
| 60 | +| Command | Purpose | |
| 61 | +|---------|---------| |
| 62 | +| `/statusline:status` | Display current session metrics immediately | |
| 63 | +| `/statusline:enable [interval]` | Enable real-time monitoring with optional custom interval | |
| 64 | +| `/statusline:disable` | Pause automatic status updates | |
| 65 | + |
| 66 | +## What Each Metric Shows |
| 67 | + |
| 68 | +### Context Window |
| 69 | +A visual progress bar showing your token usage with color coding: |
| 70 | +- 🟢 Green: 0-60% — Comfortable usage |
| 71 | +- 🟡 Yellow: 60-85% — Getting full |
| 72 | +- 🔴 Red: 85%+ — Approaching limit |
| 73 | + |
| 74 | +Example: |
| 75 | +``` |
| 76 | +Context: ████░░░░░░ 45% (90,000 / 200,000 tokens) |
| 77 | +``` |
| 78 | + |
| 79 | +### Active Tools |
| 80 | +Lists tools currently in use with operation counts: |
| 81 | +``` |
| 82 | +Active Tools: |
| 83 | + • Read (2 instances) |
| 84 | + • Bash (1 instance) |
| 85 | + • Glob (1 instance) |
| 86 | +``` |
| 87 | + |
| 88 | +### Completed Tools |
| 89 | +Aggregated summary of completed tool operations: |
| 90 | +``` |
| 91 | +Completed: ✓ Glob ×4 | ✓ Bash ×8 | ✓ Read ×12 | ✓ Edit ×3 |
| 92 | +``` |
| 93 | + |
| 94 | +### Running Agents |
| 95 | +Shows active agents with elapsed time: |
| 96 | +``` |
| 97 | +Agents Running: |
| 98 | + • Explore: Analyzing codebase structure (12s) |
| 99 | + • code-reviewer: Reviewing authentication module (5s) |
| 100 | +``` |
| 101 | + |
| 102 | +### Task Progress |
| 103 | +Real-time todo tracking: |
| 104 | +``` |
| 105 | +Tasks: ⏳ 2 pending | 🔄 1 in progress | ✓ 5 completed (5/8 total) |
| 106 | +``` |
| 107 | + |
| 108 | +### Session Duration |
| 109 | +Tracks how long your current session has been active: |
| 110 | +``` |
| 111 | +Duration: 12m 34s |
| 112 | +``` |
| 113 | + |
| 114 | +## Features |
| 115 | + |
| 116 | +✅ **Real-time Updates** — Status refreshes automatically at your chosen interval |
| 117 | + |
| 118 | +✅ **Non-intrusive** — Displays without interrupting your workflow |
| 119 | + |
| 120 | +✅ **Customizable** — Set monitoring frequency that works for you |
| 121 | + |
| 122 | +✅ **Manual Control** — Check status anytime with `/statusline:status` |
| 123 | + |
| 124 | +✅ **Plugin Integration** — Works seamlessly with other Claude Code plugins |
| 125 | + |
| 126 | +✅ **Token Awareness** — Shows actual token counts from Claude Code |
| 127 | + |
| 128 | +## Use Cases |
| 129 | + |
| 130 | +- **Monitor Context** — Know when you're approaching context limits before running out |
| 131 | +- **Track Progress** — See how many tasks have been completed in your session |
| 132 | +- **Debug Workflows** — Understand tool and agent activity during complex operations |
| 133 | +- **Optimize Sessions** — Identify bottlenecks and adjust your approach |
| 134 | +- **Stay Informed** — Keep awareness of background operations |
| 135 | + |
| 136 | +## How It Works |
| 137 | + |
| 138 | +The plugin reads session data from Claude Code's internal state and displays aggregated metrics about: |
| 139 | + |
| 140 | +1. **Token Usage** — Real counts from Claude Code's context window |
| 141 | +2. **Tool Activity** — Tracked from tool invocations in your session |
| 142 | +3. **Agent Operations** — Monitored from subagent execution |
| 143 | +4. **Task Management** — Read from your TodoWrite operations |
| 144 | + |
| 145 | +Updates happen at a regular interval (default 5 seconds) without blocking your work. |
| 146 | + |
| 147 | +## Requirements |
| 148 | + |
| 149 | +- Claude Code v1.0.80+ |
| 150 | +- Node.js 18+ or Bun (if running custom build) |
| 151 | + |
| 152 | +## Inspiration |
| 153 | + |
| 154 | +This plugin is inspired by [claude-hud](https://github.com/jarrodwatts/claude-hud) but optimized for the claude-plugins marketplace with enhanced integration and customization options. |
| 155 | + |
| 156 | +## Development |
| 157 | + |
| 158 | +Session Monitor is built with: |
| 159 | +- TypeScript for type safety |
| 160 | +- Claude Code's native APIs |
| 161 | +- Minimal dependencies for quick performance |
| 162 | + |
| 163 | +### Source Structure |
| 164 | + |
| 165 | +``` |
| 166 | +session-monitor/ |
| 167 | +├── .claude-plugin/ |
| 168 | +│ └── plugin.json # Plugin manifest |
| 169 | +├── commands/ |
| 170 | +│ ├── status.md # Status command documentation |
| 171 | +│ ├── enable.md # Enable command documentation |
| 172 | +│ └── disable.md # Disable command documentation |
| 173 | +└── README.md # This file |
| 174 | +``` |
| 175 | + |
| 176 | +## Contributing |
| 177 | + |
| 178 | +Found an issue or have a feature idea? Contributions are welcome! This plugin is part of the [claude-plugins](https://github.com/duyet/claude-plugins) marketplace. |
| 179 | + |
| 180 | +## License |
| 181 | + |
| 182 | +MIT License — see LICENSE file |
| 183 | + |
| 184 | +## Related Plugins |
| 185 | + |
| 186 | +- **[team-agents](../team-agents)** — Coordinated parallel task execution |
| 187 | +- **[commit](../commit)** — Semantic Git commit automation |
| 188 | +- **[ralph-wiggum](../ralph-wiggum)** — Self-referential development loops |
| 189 | + |
| 190 | +--- |
| 191 | + |
| 192 | +**Questions?** Open an issue on the [claude-plugins repository](https://github.com/duyet/claude-plugins/issues) |
0 commit comments