/pepper-creative-mode:pepper-creative-modefrom pepper-creative-mode
Enables distribution-faithful random sampling and diverse generation by seeding randomness from a self-generated string. Use for creative writing, brainstorming, variant generation, probabilistic choice, mixed-strategy games, and agent simulation.
Ships in pepper-creative-mode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Provenance: see references/provenance.md. Technique: String Seed of Thought, Misaki & Akiba, arXiv:2510.21150, accepted ICLR 2026.
Frontier LLMs show systematic bias when they must produce stochastic output. Measured on a nominal 50/50 coin flip, JS divergence from the target distribution ranges from 2.43 to 36.09 across five frontier models, against 1.85 for a real PRNG (all values ×10⁻³, paper Table 1). On skewed targets the gap widens by an order of magnitude — deepseek-v3 scores 111.45 on a 30/70 split. Creative prompts likewise collapse to a narrow set of recurring outputs, and mixed-strategy play becomes exploitable.
The paper documents this failure without committing to a single root cause; related work attributes the loss of diversity to typicality bias in preference data (Verbalized Sampling, arXiv:2510.01171). pepper-creative-mode addresses the symptom by inserting a self-generated random string before the decision step. The model commits to the string first, then derives the answer deterministically via arithmetic on that string. This breaks the path that leads to biased pattern completion without requiring any external tool.
Activate this skill when any of the following conditions hold:
Probabilistic choice is required. Example: "Flip a fair coin." / "Roll a six-sided die." / "Pick one of these three options at random."
Biased sampling is required. Example: "Choose heads 30% of the time." / "Pick option A with probability 1/5, option B with 4/5."
Multiple diverse creative outputs are requested. Example: "Write 5 different taglines." / "Generate variants of this headline." / "Brainstorm 10 product names."
A single creative output is requested with a novelty or surprise signal. Example: "Surprise me with an opening line." / "Give me something unexpected."
Mixed-strategy game play under Nash equilibrium. Example: "Pick an RPS move against an adversarial opponent (1/3 each)."
Agent simulation with stochastic behavior. Example: "Simulate a customer who buys 40% of the time and browses 60% of the time."
Synthetic data requiring variety across many samples. Example: "Generate 20 diverse customer reviews of this product."
The user prompt contains any of these trigger phrases: "write 5 different", "brainstorm", "flip a coin", "pick randomly", "generate variants", "surprise me", "diverse", "different versions", "at random", "pick one", "vary each time."
Do NOT activate for:
See references/when-not-to-use.md for edge cases, the QwQ-32B anomaly, and fallback guidance for mixed tasks.
PIF — Probabilistic Instruction Following. The user specifies a target distribution and the model must sample from it faithfully across many runs. Correctness is measurable: run the same prompt many times and compare empirical frequency against the target. The gains are largest where the target is skewed — across five frontier models the paper reports 85–99% reductions in JS divergence on biased distributions, versus a mixed picture on an unbiased coin (from −92% on deepseek-r1 to +40% on QwQ-32B). pepper-creative-mode works by committing the model to a string before the decision step; the string serves as an internal seed that the model then maps deterministically to an outcome via modular arithmetic.
DAG — Diversity-Aware Generation. The user asks for creative output with no fixed distribution, but meaningful variation across runs is desired. pepper-creative-mode achieves diversity via the Decision Cascade pattern: the output is decomposed into 2–5 independent components (e.g. setting, tone, twist), each component is resolved deterministically from a distinct segment of the random string using Sum-Mod, and the components are assembled into the final answer. Because the string differs each run, the assembled output differs meaningfully each run. The candidate space (product of candidate-list lengths per component) bounds the number of distinct possible outputs.
Every pepper-creative-mode response uses exactly three tagged sections in this order:
<random_string>
[16+ characters, mixed case, digits, and symbols — generated internally, no external tools]
</random_string>
<thinking>
[Deterministic arithmetic on the string. Show every computation step explicitly.]
</thinking>
<answer>
[Final answer only. No reasoning, no hedging, no extra text.]
</answer>
Minimal inline example (fair coin, Sum-Mod):
<random_string>7$Aq9!zR@k3mP#vX</random_string>
<thinking>
ord sum = 55+36+65+113+57+33+122+82+64+107+51+109+80+35+118+88 = 1215
1215 mod 2 = 1
mapping: 0->Heads, 1->Tails -> Tails
</thinking>
<answer>Tails</answer>
Choose the arithmetic pattern that matches the task's probability structure:
Sum-Mod (references/sum-mod.md) — Use when all N outcomes have equal probability. Formula: sum(ord(c) for c in string) mod N. Map the result (0-indexed) to the Nth option.
Rolling Hash (references/rolling-hash.md) — Use when probabilities are unequal or arbitrary. Formula: h = 0; for c in string: h = (h*31 + ord(c)) mod M (M >= 10000). Split [0, M) into intervals sized by target probabilities; the interval containing h is the choice.
Decision Cascade (references/decision-cascade.md) — Use for open-ended creative tasks. Decompose the output into components, define candidate lists per component, pick each component by applying Sum-Mod to a non-overlapping segment of the string, then assemble.
Quick selection guide:
| Task type | Pattern |
|---|---|
| Fair coin, uniform die, uniform pick | Sum-Mod |
| Biased coin, weighted choice, arbitrary split | Rolling Hash |
| Creative story, slogan, poem, brainstorm | Decision Cascade |
| RPS / Nash equilibrium (N equal options) | Sum-Mod |
| Agent behavior (e.g. buy 40% / browse 60%) | Rolling Hash |
Follow all of these without exception:
temperature = 0, or with a pinned decoding seed, the "random" string is itself deterministic and every run returns the same answer — the technique silently becomes an expensive no-op. The paper's experiments run at T = 0.6–1.0. If the caller has pinned the temperature to 0 for reproducibility, say so rather than emitting a <random_string> block that cannot vary.<thinking> in full. Do not skip steps, do not write pseudo-arithmetic, perform the actual computation.<answer>. No reasoning, no hedging, no explanation, no qualifiers.<random_string> section even if the task feels trivial.pepper-creative-mode only to the stochastic sub-parts. Answer the deterministic parts normally before or after the pepper-creative-mode block.references/sum-mod.md — Sum-Mod: formula, step-by-step worked example, edge cases (N=1, N>26, empty string).references/rolling-hash.md — Rolling Hash: formula, interval splitting, worked examples for 30/70 and 17/33/50 splits.references/decision-cascade.md — Decision Cascade: decomposition procedure, two worked examples (horror story and New Year wish).references/when-not-to-use.md — Hard exclusions, soft exclusions, QwQ-32B anomaly, fallback for mixed tasks.examples/fair-coin.md — Sum-Mod, fair 50/50 coin flip, complete trace with arithmetic.examples/biased-decision.md — Rolling Hash, 30/70 biased coin, complete trace with all hash steps.examples/creative-generation.md — Decision Cascade, same prompt run three times with three distinct outputs.examples/mixed-strategy.md — Sum-Mod N=3, Rock-Paper-Scissors Nash equilibrium move selection.Source: Misaki, K., & Akiba, T. "String Seed of Thought: Prompting LLMs for Distribution-Faithful and Diverse Generation." arXiv:2510.21150. Accepted at ICLR 2026.
INSTALL.md (opens in a new tab)examples/biased-decision.md (opens in a new tab)examples/creative-generation.md (opens in a new tab)examples/fair-coin.md (opens in a new tab)examples/mixed-strategy.md (opens in a new tab)references/decision-cascade.md (opens in a new tab)references/provenance.md (opens in a new tab)references/rolling-hash.md (opens in a new tab)references/sum-mod.md (opens in a new tab)references/when-not-to-use.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub itsalt/pepperskills --plugin pepper-creative-modeOther plugins' skills for the same job