Repository navigation
Add a whip that sends a worker an optimization pass - #380
Open
walteribanez555 wants to merge 1 commit into
Open
walteribanez555 wants to merge 1 commit into
walteribanez555 wants to merge 1 commit into
Conversation
J takes out a whip; E (or a click) at a worker cracks it. The worker flinches for everyone on the floor, and the office sends it the new 'worker.whip' prompt: an optimization pass over what its branch has changed since its base (simplify, reuse, dead code, efficiency, robustness), scoped to its own diff, verified the project's way, and committed on its own branch. The prompt is editable in Settings under "🪢 The whip". The server refuses shells, board agents, workers in a meeting, asleep, starting, with a lost worktree, or waiting on an answer (typing into it could answer a permission prompt), and holds a 20s cooldown per worker. Activities can now take a click (Activity.click), and Hands exposes the right hand so a held thing follows it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
worker.whipprompt: an optimization pass over what its branch changed since its base (git diff <base>...HEADplus uncommitted work), covering simplification, reuse, dead code, efficiency and robustness. It stays scoped to its own diff and keeps intended behavior, verifies the project's way, commits on its own branch, and only pushes to an already-open PR. It's filled with the worker's task, branch, base, PR and other repos, and is editable in ⚙️ Settings under 🪢 The whip. The wording draws on Claude Code's/simplifyand/code-reviewprompts and Anthropic's prompting best practices.How it plugs in
src/shared/protocol/whip.ts(worker.whip/worker.whipped).src/server/ws/handlers/whip.tsand its line inhandlers. The pure logic (vars, refusals, cooldown) is insrc/server/whip.ts.src/client/features/whip/(activity, lash, flinch, sound) with one install line inmain.ts, plus a help row and awhip()sound onOfficeSound.Activity.click, offered frompointer.ts), so a click cracks the whip instead of using the desk behind it.Hands.rightHand, so the held whip follows the first-person hand.docs/controls.md,docs/how-it-works.md,docs/agents.md.Validation
npm run typecheck✅npm test✅ (623 pass; newtests/whip.test.ts, plus a registry test forActivities.click)npm run build✅🤖 Generated with Claude Code