Claude Helper
CLI tools to help Claude Code interact with VS Code - compare git refs, set terminal titles, and send notifications.
Installation
1. Install VS Code Extension
code --install-extension claude-helper
Or install from the VS Code Marketplace
Using uv (recommended):
uv tool install claude-helper
Using pip:
pip install claude-helper
Requirements
- VS Code with a workspace folder open
- GitLens extension (for git comparison features)
Usage
Compare Git References
# Compare two branches/commits
ch compare main feature-branch
ch compare HEAD origin/main
# Compare HEAD with another ref
ch compare-head origin/main
Set Terminal Title
# Change the title of your current terminal
ch set-title "Building Project"
ch set-title "Running Tests"
Notifications
# Show a notification in VS Code with timestamp
ch ping
# Show notification with custom message
ch ping "Build completed successfully"
ch ping "Tests passed - 127 tests ran in 2.3s"
# Show notification with current terminal title
ch ping-terminal-title
Clear Comparisons
# Clear all GitLens comparisons
ch clear
Command Reference
| Command |
Alias |
Description |
claude-helper compare <ref1> <ref2> |
ch compare |
Compare two git references |
claude-helper compare-head <ref> |
ch compare-head |
Compare HEAD with a reference |
claude-helper clear |
ch clear |
Clear all comparisons |
claude-helper ping [message] |
ch ping |
Show notification with timestamp and optional message |
claude-helper ping-terminal-title |
ch ping-terminal-title |
Show notification with current terminal title |
claude-helper set-title <title> |
ch set-title |
Set current terminal title |
Use Cases for Claude Code
Claude Code can use these tools to:
- Compare branches before merging or reviewing changes
- Label terminals during long-running builds or tests
- Send notifications when tasks complete
- Organize workflows with clear terminal naming
Troubleshooting
Extension Not Working
- Ensure VS Code is open with a workspace folder
- Check extension is installed:
code --list-extensions | grep claude-helper
- View logs in VS Code:
Ctrl+Shift+P → Claude Helper: Show Logs
CLI Timeout
- Make sure VS Code is running
- Verify you're in a git repository
- Check the extension is activated (you should see "Claude Helper activated" notification)
Compare Commands Not Working
- Ensure GitLens extension is installed:
code --list-extensions | grep gitlens
- Verify you're in a git repository with valid refs
Documentation
License
MIT
Contributing
Contributions welcome! See Development Guide for setup instructions.