Configure Claude Code status line to show notify status
/plugin marketplace add blueraai/claude-code-anywhere/plugin install claude-code-anywhere@blueraThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Intelligently inject notify on/off indicator into any user's statusline.sh.
NOTIFY (green \033[32m) when notify server is runningnotify (dim gray \033[90m) when notify server is offThis exact block must be inserted:
# --- claude-code-anywhere notify status ---
NOTIFY_STATUS=""
_NOTIFY_PORT=$(cat ~/.claude-code-anywhere/plugins/claude-code-anywhere/port 2>/dev/null)
if [ -n "$_NOTIFY_PORT" ] && curl -s --max-time 0.3 "http://localhost:$_NOTIFY_PORT/api/status" >/dev/null 2>&1; then
NOTIFY_STATUS=$(printf " │ \033[32mNOTIFY\033[0m")
else
NOTIFY_STATUS=$(printf " │ \033[90mnotify\033[0m")
fi
# --- end notify status ---
# --- claude-code-anywhere notify status ---# --- end notify status ---These markers enable clean identification and removal.
Every statusline.sh is different. Analyze the file structure carefully.
Read the entire ~/.claude/statusline.sh. Identify:
Insert the notify code block:
Use Edit tool to insert the block at the correct location.
Find ALL lines that produce output and append "$NOTIFY_STATUS":
Pattern A - printf with format string:
# Before:
printf "...format..." "$VAR1" "$VAR2"
# After:
printf "...format..." "$VAR1" "$VAR2""$NOTIFY_STATUS"
Pattern B - echo:
# Before:
echo "$STATUS_LINE"
# After:
echo "$STATUS_LINE$NOTIFY_STATUS"
Pattern C - Multiple conditional outputs: If the file has if/elif/else with different printf/echo calls, append to EACH output line.
Pattern D - Here documents or complex output: Find the final output mechanism and append appropriately.
After edits, the file should:
$NOTIFY_STATUS appended to all output pathsLocate everything from # --- claude-code-anywhere notify status --- through # --- end notify status --- (inclusive) and delete those lines.
Find and remove all occurrences of:
"$NOTIFY_STATUS"$NOTIFY_STATUSfrom output lines. Be careful to preserve the rest of the line.
| Case | Action |
|---|---|
| No statusline.sh | Tell user to set up a statusline first |
| Already has markers | Report "already enabled" for on |
| No markers found | Report "not currently enabled" for off |
| Complex conditionals | Append to every output path |
| Non-printf output | Adapt to echo, cat, or other methods |
| Multiple output lines | Append to ALL of them |