Whip Claude Code without killing the session
Guide · Updated · Checked against the Claude Code docs
Quick answer
Don’t whip Claude Code with Ctrl-C: on an idle session the first press clears your input and the second exits Claude Code, and Esc declines a permission prompt. To nudge it, type a message: a working Claude Code queues it, and an idle one starts its next turn on “Continue.”. Whipback, a Mac menu bar app, does that for you: it types “Continue.” only into a verified idle agent, at most once every 30 seconds, and reaches a working one through its PostToolUse hook instead of typing.
Whipping your AI coding agent is a 2026 developer joke: you crack a cartoon whip at Claude Code to make it hurry. But a whip that blindly sends keystrokes can quit an idle Claude Code session, answer a permission prompt, or land in the wrong window. Whipback is built so it only types into idle agents, and reaches busy ones through a hook instead.
What is the whip-your-AI meme?
You hand a task to a coding agent, look away, and come back to find it has been waiting for you. Or you watch it work and wish it would go faster. Whip apps turn that feeling into a desktop gag: you crack a cartoon whip at the agent’s window and a hurry-up message lands in the session.
Why can Ctrl-C end an idle Claude Code session?
The simplest way to build a whip is to send keys to whatever window has focus: an interrupt, then a message. In Claude Code, Ctrl-C interrupts a running operation. If nothing is running, the first press clears your prompt input and a second press exits Claude Code. So two quick cracks that each send Ctrl-C to an idle session can close it.
That is the worst moment to lose it: the session was idle because it was waiting for you. Esc is no safer: it interrupts Claude mid-turn, and on a permission prompt it declines the action.
What else can a blind whip hit?
A keystroke whip types into the window with keyboard focus, which is not always the one you aimed at: your pointer can be over the agent while the keyboard belongs to the window you clicked last. That could be:
- a shell running a long build, a migration or a dev server, where Ctrl-C stops it halfway;
- an SSH session or a database console;
- a chat window or an email draft, where your hurry-up line goes to a person;
- a permission prompt in Claude Code, where typed keys can approve or decline an action you never read.
Do you need to interrupt Claude Code to nudge it?
No. If Claude Code is working, type your message and press Enter. Claude Code queues it instead of interrupting the turn, and passes it on as soon as the current tool calls finish. If Claude Code has finished its turn, a plain message such as “Continue.” starts the next one. Neither case needs Ctrl-C or Esc.
A hook can pass a note with no typing at all: text a PostToolUse hook returns as additionalContext reaches Claude as a system reminder on its next model request. Codex hooks add the same field as developer context.
How does Whipback only type into idle agents?
Whipback is a macOS menu bar app. Point at an agent and slap your trackpad, or press ⌃⌥W, and before it types anything it checks the target and the agent’s state:
- It finds the window under the crack. Only the Claude desktop app, the Codex app, or a Terminal or iTerm2 tab whose foreground process is
claudeorcodexcounts. Anything else is a miss: “Not an agent. Whip refused.” - It reads the agent’s state from Claude Code and Codex hooks, so it knows whether the agent is working, finished or waiting on a permission decision.
- Right before typing, it checks that the agent is still in front, and stops if you switched windows.
- It types at most once every 30 seconds per agent and never sends Ctrl-C or Esc. Into an idle agent it types “Continue.” or your own one-line nudge, or, if you opt in, it sends Claude’s own suggested prompt. Into a working agent it types nothing.
| Agent state | What the whip does | Typed into the agent |
|---|---|---|
| Finished its turn | Lands, brings the window to the front | “Continue.” and Return |
| Working | Lands: “Message queued: work faster” | Nothing. The message reaches it through its hook after its next tool call |
| Waiting for permission | Flies back at you: “It’s waiting on YOU.” | Nothing |
| State unknown | Crack sound only | Nothing |
| Not an agent | “Not an agent. Whip refused.” | Nothing |
What happens when you whip a working agent?
Nothing is typed. Hook state can lag a moment behind the screen, and text plus Return sent to an agent that has just opened a permission prompt would answer it. So Whipback queues a short message for that session: “The user cracked the whip: please move faster. Focus on finishing the current task, skip optional extras, keep updates short.” After the agent’s next tool call, its PostToolUse hook picks the message up and the crack shows “Delivered”. It is used once and expires after 10 minutes. You can rewrite it in Settings, or switch it off so the whip just bounces.
Does the agent whip you back?
Yes, and that is the twist. When Claude Code or Codex has waited on you for 60 seconds, a whip cracks across your screen. It never takes focus, clicks pass straight through, and it stays quiet while your mic or camera is in use. After three cracks it stops until the next wait.
Try the whip in your browser
The demo on the home page follows the app’s rules: crack it at an idle agent, a busy one, one waiting for permission, and a chat window. Nothing on the page touches your Mac. Whipback runs on macOS 14 or later, with no account and no analytics. The download is free, and so are the first 100 licenses.