Are you tired of switching between multiple terminal or IDE windows while working on your Claude Code project? Do you struggle to stay focused and efficiently manage your desktop and mobile workflows? Look no further! Introducing cc-notifier, a game-changing tool that brings seamless integration and smart notifications to your coding experience.

Streamline Your Workflow with Click-to-Focus

cc-notifier allows you to instantly restore your exact Claude Code window across macOS Spaces, not just the app. When you have multiple terminal or IDE windows open, this innovative solution brings you back to the specific window where Claude Code is running. No more tedious switching between windows or apps – simply click and focus!

Intelligent Detection for Enhanced Productivity

This intelligent detection system notifies you when you switch windows on your desktop or go idle while working remotely. Receive alerts and stay on top of your tasks, ensuring seamless continuity across devices.

Fast, Async, and Unobtrusive

cc-notifier runs in the background, never blocking Claude Code. This means you can work uninterrupted while still benefiting from smart notifications and workflow management.

Mobile Handoff: The Ultimate Workflow Solution

Take your workflow to the next level with mobile handoff. When you complete a task on your desktop, receive a push notification that instantly resumes your exact conversation in Blink Shell on your phone. No more tedious copying and pasting or re-opening files – simply tap and continue where you left off.

Configure Your Setup for Maximum Efficiency

To get started, install dependencies like Hammerspoon and Terminal-Notifier using Brew. Configure Hammerspoon by adding the following code to your ~/.hammerspoon/init.lua file:

`lua

require("hs.ipc")

require("hs.window")

require("hs.window.filter")

require("hs.timer")

`

Then, reload Hammerspoon with hs -c "hs.reload()".

Install cc-notifier and Add Hooks

Clone the cc-notifier repository using Git: git clone https://github.com/Rendann/cc-notifier.git. Install the tool by running cd cc-notifier followed by ./install.sh. Add hooks to your ~/.claude/settings.json file (see Configuration below).

Debug Mode for Troubleshooting

Enable detailed logging for troubleshooting by adding the following code to your ~/.claude/settings.json file:

`json

"hooks": {

"SessionStart": [

{

"matcher": "*",

"hooks": [

{

"type": "command",

"command": "$HOME/.cc-notifier/cc-notifier --debug init"

}

]

}

]

}

`

View Logs and Disable Debug Mode

To view logs, use the following commands:

`bash

tail -f ~/.cc-notifier/cc-notifier.log # Follow in real-time

cat ~/.cc-notifier/cc-notifier.log # View entire log

`

Disable debug mode by removing the --debug flag from hook commands in your settings.json file.

Tips and Troubleshooting

To resolve window focus issues, try closing and re-opening the terminal/IDE window. For Hammerspoon window discovery, visit Spaces and click windows after restarting Hammerspoon. To prevent Mac sleep interruptions, disable sleep while plugged in using sudo pmset -c sleep 0.

By implementing cc-notifier in your Claude Code workflow, you'll experience seamless integration, smart notifications, and enhanced productivity across devices. Start coding on your desktop, continue seamlessly on your phone – the possibilities are endless!