Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By EliasSchliev1.0.12MITIn 1 marketplace
Detects idle Claude sessions for keyboard-shortcut cycling
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Jump to the next Claude Code session that needs your attention.
When you run multiple Claude Code sessions in parallel, keeping track of which ones are waiting for you becomes impossible. claude-next-idle solves this with a LIFO stack - press a keyboard shortcut to instantly jump to the most recently finished session. Press again for the next one.
It also includes claude-next-fresh for jumping to empty sessions ready for new work.
Session finishes → enters TOP of stack
You visit it → moves to BOTTOM of stack
You type in it → leaves the stack (now active)
Idle detection is powered by Claude Code hooks - no JSONL parsing, no polling. Hooks fire on lifecycle events (Stop, PreToolUse, PermissionRequest, PostToolUse, UserPromptSubmit, SessionStart) and write/clear lightweight signal files.
claude plugin install claude-next-idle@elias-tools
This installs the hooks that track session state. The plugin auto-updates when new versions are published.
git clone https://github.com/EliasSchlie/claude-next-idle.git
cd claude-next-idle
./install.sh # symlinks bin/* → ~/.local/bin/
Set up a Keyboard Maestro macro (or any hotkey tool) that runs:
export PATH="/opt/homebrew/bin:/usr/local/bin:$HOME/.local/bin:$PATH"
claude-next-idle --debug 2>&1
Show the result as a notification so you get feedback ("Jumped to project-name" / "No idle sessions").
Tip: --count is handy for a status bar widget — it prints idle/active (e.g. 3/1) with no side effects.
claude-next-idle # Jump to next idle session
claude-next-idle --list # Show idle stack + active sessions
claude-next-idle --count # Print "idle/active" counts (e.g. "3/1")
claude-next-idle --reset # Clear stack ordering
claude-next-idle --debug # Jump with verbose logging
claude-next-fresh # Jump to next fresh/empty session
claude-next-fresh --list # Show fresh sessions
claude-next-fresh --count # Print fresh session count
hooks/
idle-signal.sh - hook script: writes/clears signal files on session events
hooks.json - Claude Code hook configuration
bin/
claude-next-idle - reads idle signals, maintains LIFO stack, navigates
claude-next-fresh - reads fresh signals, maintains LIFO stack, navigates
lib/
navigate.sh - shared AppleScript navigation (iTerm TTY, Cursor window)
stack.sh - shared LIFO stack logic
Signal files live at ~/.claude/idle-signals/<pid> and ~/.claude/fresh-signals/<pid>. They contain JSON with the session's CWD, session ID, and timestamp.
Navigation resolves PID → TTY → iTerm session (via AppleScript). Falls back to project-name matching in Cursor window titles.
SUB_CLAUDE=1 env var never write signals, so automated sub-agent sessions don't pollute the stack./clear triggers SessionStart, not UserPromptSubmit. A dedicated hook clears idle signals for cleared sessions.MIT - Elias Schlie
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
claude-next-idle@elias-tools is listed by eliasschlie/claude-plugins — review the source before installing
npx claudepluginhub eliasschlie/claude-plugins --plugin claude-next-idlePlugins from other owners that cover similar ground