vinicius-tersi
7542d364b4
feat: context window monitor hook with agent-side WARNING/CRITICAL alerts
...
Adds PostToolUse hook that reads context metrics from statusline bridge file and injects alerts into agent conversation when context is low.
Features:
- Two-tier alerts: WARNING (<=35% remaining) and CRITICAL (<=25%)
- Smart debounce: 5 tool uses between warnings, severity escalation bypasses
- Silent fail: never blocks tool execution
- Security: session_id sanitized to prevent path traversal
Ref #212
2026-02-20 14:40:08 -06:00
Lex Christopherson
9d815d31db
Revert 12 PRs merged without authorization
...
Reverts:
- #413 fix(install): build hooks/dist on the fly for dev installs
- #396 refactor(statusline): display git branch in status line
- #543 Add in-progress state for todos
- #532 feat: add git_tag config option
- #171 Add OpenCode installer package
- #519 feat: Add Mistral Vibe CLI Support
- #389 docs: use @latest for uninstall commands
- #288 fix(install): auto-migrate renamed statusline.js reference
- #502 fix(#501 ): verify-work defers diagnosis/planning
- #497 fix: move resolved debug sessions to resolved/ folder
- #512 fix: create feature branch before first commit
- #545 fix: add Write tool to gsd-verifier
These were merged without owner approval.
2026-02-14 14:25:26 -06:00
Or Yamin
1bc6d0062f
refactor(statusline): display git branch in status line if inside repo ( #396 )
...
feat: Display git branch in statusline
2026-02-14 14:18:09 -06:00
Justin Adams
9d7ea9c188
fix: statusline crash handling, color validation, git staging rules
...
Fixed three critical bugs and documented findings:
1. hooks/gsd-statusline.js - Added error handling for file system operations
- Wrapped fs.readdirSync and fs.statSync in try-catch
- Prevents crashes from permission errors or race conditions
2. bin/install.js - Added hex color validation
- Validates hex color format (#RGB or #RRGGBB)
- Prevents invalid colors from being written to config
3. commands/gsd/execute-phase.md - Fixed git staging violation
- Replaced 'git add -u' with individual file staging
- Maintains consistency with documented git commit rules
Documentation:
- BUG_REPORT.md - Comprehensive review findings (8 bugs total)
- FIXES_APPLIED.md - Details of fixes applied and testing recommendations
Known issues remaining:
- JSON config parsing uses fragile grep/sed (requires jq or refactor)
- Documented workarounds and recommendations for future fixes
https://claude.ai/code/session_01RAgU8GfJ2dwtBSmJDGzpWA
Co-authored-by: Claude <noreply@anthropic.com >
2026-02-03 11:10:53 -06:00
David Novák
87b2cd0e21
fix: scale context bar to show 100% at actual 80% limit
...
Claude Code enforces an 80% context window limit as a safety mechanism.
The statusline was showing the raw percentage, which meant the bar never
reached 100% before Claude ran out of context.
This change scales the percentage so that:
- 0% real usage = 0% displayed
- 80% real usage (the actual limit) = 100% displayed
Color thresholds are adjusted accordingly to maintain the same visual
progression (green -> yellow -> orange -> red with skull).
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-29 12:28:22 -06:00
Lex Christopherson
900fc95efc
fix: rename statusline.js to gsd-statusline.js for consistent hook naming
...
All GSD hooks now use gsd- prefix. Installer updated to clean up old
statusline.js file and hook registration from previous installs.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-20 11:55:59 -06:00