feat(chat): experimental caveman mode 🪨#3199
Open
vibegui wants to merge 1 commit into
Open
Conversation
Two-tier opt-in feature inspired by github.com/JuliusBrussee/caveman. Settings flag enables a 🪨 toggle in the chat input footer; activating the toggle injects a caveman system prompt into outgoing messages and re-skins the context-window ring + cost tooltips with a stone-and-clay palette plus caveman-speak labels (context→rock full, tokens→words, cost→shiny, in/out→ear/mouth, think→ponder). Default off, fully reversible. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Contributor
Release OptionsSuggested: Minor ( React with an emoji to override the release type:
Current version:
|
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
Adds an opt-in caveman mode to the chat — a fun, experimental easter egg inspired by JuliusBrussee/caveman. When activated, the model responds in terse caveman-speak ("why use many token when few token do trick") and the context-window ring + cost tooltips re-skin themselves with a stone-and-clay palette.
Two-tier toggle:
What changes when active
<caveman-mode>system prompt is appended to the chat'ssystemstring, instructing the model to drop articles/filler, stay technically accurate, sprinkle 🪨, and skip greetings/sign-offs.SessionStats) turns clay-brown / warm-clay / burnt-umber by fill tier, with a butt linecap and a 🪨 prefix on the percentage.context→rock full,tokens→words,cost→shiny,in/out→ear/mouth,think/thinking→ponder. Numbers stay numeric.Two preference keys (
experimental_cavemanandcaveman_active) live inusePreferences()and follow the existingexperimental_vibecodepattern. No backend, migration, or new dependency.Files
apps/mesh/src/web/lib/caveman-mode.ts(new) —CAVEMAN_SYSTEM_PROMPT,CAVEMAN_LABELS,CAVEMAN_RING_COLORS,useCavemanMode,useCavemanFeatureEnabled,useCavemanToggle.apps/mesh/src/web/hooks/use-preferences.ts— addsexperimental_cavemanandcaveman_active.apps/mesh/src/web/views/settings/profile-preferences.tsx— Switch row inExperimentalSection+ tracking event.apps/mesh/src/web/components/chat/input.tsx— 🪨 toggle button in the left actions, gated on the experimental flag.apps/mesh/src/web/components/chat/usage-stats.tsx—SessionStats/MessageUsageStats/MessageStatsBarbranch onuseCavemanMode().apps/mesh/src/web/components/chat/chat-context.tsx— appendsCAVEMAN_SYSTEM_PROMPTto the system string insendMessageInternalwhen both flags are on.Test plan
rock full,words,shiny,ear,mouth,ponder.caveman_activewas on; messages stop carrying the caveman prompt.bun run fmt✅.bun run checkclean for files in this PR (the only error —task-row.tsxavatar"xs", from commit 61a4d81 — is pre-existing on main and untouched here).🤖 Generated with Claude Code
Summary by cubic
Adds an opt-in caveman mode for chat. A Settings flag unlocks a 🪨 button that injects a caveman system prompt and re-skins usage stats with a stone-and-clay look.
experimental_caveman(flag) andcaveman_active(per-chat toggle) in preferences; off by default.CAVEMAN_SYSTEM_PROMPTto thesystemstring for outgoing messages.SessionStats,MessageUsageStats, andMessageStatsBarget a stone palette, butt linecap, and caveman labels (context→rock full,tokens→words,cost→shiny,in/out→ear/mouth,think(ing)→ponder); numbers unchanged.Written for commit 04d9f93. Summary will update on new commits. Review in cubic