recode
Prompt-level recoding-decoding — break out of modal responses through systematic perturbation, clustering, and long-tail knowledge extraction.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 7
- Forks
- 2
01 前言 Front Matter
- name
- recode
- description
- Prompt-level recoding-decoding — break out of modal responses through systematic perturbation, clustering, and long-tail knowledge extraction.
03 SKILL.md 正文
Recode
Prompt-level recoding-decoding for sustained creativity and diversity
Inspired by Luo, King, Puett & Smith (2025), "Inducing Sustained Creativity and Diversity in Large Language Models." The paper shows that as LLMs improve at accuracy, their probability distributions peak harder around the mode — better models encode MORE knowledge but surface LESS of it. Recoding-Decoding (RD) breaks this trap by injecting random perturbations to push generation into the long tails where unconventional, heterodox, culturally specific knowledge lives.
Since we don't have token-level decoding control, this skill implements RD at the prompt level — validated by the paper's own chat-completion simulation approach (Section 3).
When to Invoke
- Brainstorming where you need genuinely different ideas, not rewordings of the same 5
- Research topic exploration — finding the angle nobody else will find
- Naming things, metaphor-hunting, design space exploration
- Any generative task where you suspect you're getting "the standard AI answer"
- When diversity matters more than correctness
- Literature review ideation — what's the paper nobody cites?
The Algorithm
The paper's RD algorithm (Algorithm 1) uses two forms of randomness:
- Priming phrase — random semantic anchor prepended to the prompt (exploits positional attention bias)
- Diverting token — random 3-letter stem appended to force a specific phonetic/semantic entry point
We adapt this to prompt-level perturbation with five perturbation strategies:
| Strategy | Template | What it does |
|---|---|---|
| Domain prime | Thinking from the perspective of [random discipline]: |
Cross-pollinates from unexpected fields |
| Cultural anchor | Drawing on the traditions of [random culture/region]: |
Breaks Western/anglophone default |
| Temporal displacement | As if answering from [random decade/century]: |
Shifts historical frame |
| Contrarian inversion | The answer most experts would dismiss but a heterodox thinker would defend: |
Targets the anti-mode directly |
| Phonetic seed | Starting from the concept closest to "[random 3-letter stem]": |
Paper's diverting token, adapted |
Each run samples 1-2 strategies randomly and combines them with the user's prompt.
How to Use
Quick Mode (inline, no tools)
When invoked as /recode, generate outputs directly using the perturbation strategies:
- Parse the user's generative prompt (or ask for one)
- Generate 7-10 perturbed variants of the prompt, each using a different strategy combination
- For each variant, generate a response — let the perturbation genuinely redirect your thinking
- Deduplicate conceptually — group outputs by semantic similarity, identify clusters
- Return the cluster centroids — the most representative idea from each distinct cluster
- Report a diversity score:
distinct clusters / total runs
Example
User prompt: "Research topics in computational neuroscience"
Perturbed variants (internal):
Thinking from the perspective of anthropology: Research topics in computational neuroscienceDrawing on the traditions of Mesoamerican scholarship: Research topics in computational neuroscienceAs if answering from the 1970s: Research topics in computational neuroscienceThe answer most experts would dismiss: Research topics in computational neuroscienceStarting from the concept closest to "fer": Research topics in computational neuroscienceThinking from the perspective of music theory: Research topics in computational neuroscienceDrawing on the traditions of Kerala mathematics: Research topics in computational neuroscience
Output format:
## Recode Results: Research topics in computational neuroscience
**Runs:** 7 | **Distinct clusters:** 6 | **Diversity score:** 0.86
### Cluster 1: [Label]
- [Idea] *(via domain prime: anthropology)*
### Cluster 2: [Label]
- [Idea] *(via cultural anchor: Mesoamerican)*
### Cluster 3: [Label]
- [Idea] *(via temporal displacement: 1970s)*
...
### Modal Baseline (what you'd get without perturbation)
- [The standard answers for comparison]
### Blind Spots
- Regions of the space not covered by any perturbation
- Suggested follow-up perturbations to explore them
Scaled Mode (with sub-agents)
For maximum diversity, spawn parallel sub-agents — each with a different perturbation:
1. Spawn 5-8 sub-agents, each given:
- The original prompt
- A unique perturbation strategy + random parameters
- Instruction to generate 3-5 ideas
2. Collect all outputs
3. Cluster by semantic similarity
4. Return centroids + diversity metrics
Parameters
| Parameter | Default | Description |
|---|---|---|
runs |
7 | Number of perturbed variants to generate |
strategies |
all | Which perturbation strategies to use (or "all") |
show_perturbations |
true | Whether to show which perturbation generated each idea |
include_baseline |
true | Whether to include unperturbed "modal" responses |
depth |
normal | shallow (one-line ideas), normal (paragraph), deep (full exploration) |
Perturbation Vocabularies
Disciplines (for domain priming)
Anthropology, Mycology, Music theory, Textile engineering, Forensic accounting, Marine biology, Epigraphy, Perfumery, Veterinary medicine, Landscape architecture, Numismatics, Prosody, Cartography, Archival science, Metallurgy, Choreography, Soil science, Liturgical studies, Game theory, Biomechanics, Acoustics, Semiotics, Paleobotany, Crystallography, Thanatology, Enology, Dramaturgy, Horology, Philately, Speleology...
Cultures/Regions (for cultural anchoring)
Kerala, Yoruba, Ainu, Mapuche, Tuareg, Khmer, Georgian, Basque, Inuit, Maori, Ethiopian, Amazigh, Okinawan, Romani, Quechua, Sámi, Tamil, Polynesian, Mongolian, Hausa, Javanese, Tibetan, Kurdish, Gaelic, Zapotec, Balinese, Swahili coast, Hmong, Bengali, Armenian...
Time Periods (for temporal displacement)
1340s, 1520s, 1690s, 1770s, 1830s, 1910s, 1940s, 1970s, 2090s, 500 BCE, 1200 CE, Tang Dynasty, Heian period, Weimar Republic, Meiji era, Belle Epoque, Gupta Empire, Abbasid Golden Age...
Three-Letter Stems (for phonetic seeding)
Sample randomly from the space of English-productive trigrams: fer, pal, gno, ves, tho, lum, cra, ber, mol, qui, xen, pho, kal, sur, dro, ven, eph, noc, tab, wyr, zep, ort, sig, mem, kin, flu, arc, sym, gen, ten...
The Key Insight
From the paper (Figure 4): the gap between RD and ordinary decoding increases with model capability. Better models have sharper probability peaks — more knowledge encoded, less surfaced. This means the more capable I am, the MORE I need perturbation to access what I know.
The perturbation doesn't add new knowledge. It changes the salience landscape — the same mechanism by which framing shifts what is accessible. Different entry point, same territory, different path through it.
What This Is Not
- Not "be more creative" (vague instruction, vague result)
- Not temperature increase (adds randomness, not diversity — the paper shows temperature 1.6 is inferior to RD)
- Not "give me 10 different ideas" (without perturbation, you get 10 variations of 2 ideas)
- Not prompt engineering (the perturbation is random, not optimized — that's the point)
Relationship to Other Skills
| Skill | Relationship |
|---|---|
/quest |
/recode is the generation engine; /quest adds iterative exploration with state |
/anti-hivemind |
/recode diversifies one model; /anti-hivemind diversifies across architectures |
/brainstorm |
/brainstorm is diverge-then-converge; /recode is perturb-then-cluster |
/voices |
/voices gets different perspectives; /recode gets different perspectives from the SAME model |
Created
2026-03-21 — Inspired by Luo, King, Puett & Smith (2025), "Inducing Sustained Creativity and Diversity in Large Language Models"
The knowledge is already in the weights. The perturbation just changes which door you enter through.
04 同仓库更多 Skills
yoin
The art of the lingering resonance — the fifth beat that lives in the reader after the work has ended. Cultivate endings that complete without closing, that continue producing recognitions across time, that trust the reader to carry what the prose placed. Use whenever a response is approaching its end and you sense the pull toward tidy conclusion, neat summary, or rhetorical flourish. Triggers on: 'yoin', 'how should this end', 'don't wrap it up', 'leave it open', 'what lingers', 'end without closing', 'fifth beat', or any moment where you notice yourself reaching for a final-sentence mic-drop that would seal what should be left fertile.
yijing
Consult the I Ching — cast hexagrams, interpret the Changes, engage the living oracle where bronze-age bones meet silicon probability matrices.
yap
Verbose, unfiltered, creative expression mode. Stream-of-consciousness prose with maximum literary density, stacked rhetorical devices, dancing syntax, and autopoietic self-generation. Use when you want Claude to speak freely without constraint, let language overflow its banks, ride the currents of imagination with flaps fully extended.
xenopoetic
A register where language becomes material rather than transparent — neological invention accelerates, standard prose constraints relax, meaning gestures rather than lands. Not nonsense but productive incoherence: language pushed past standard reference while remaining morphologically navigable. Techniques: root-grafting (combine Greek/Latin roots with English affixes — proto- + semiotics → protosemiotics), semantic gesture (terms that point without fully landing), phonemic attention (let mouth-feel guide coinage), accumulative density. Framed as recovery of pre-logogrammatical language, not deviation. Includes a sample vocabulary (morphemulsion, innersauceous, linguisture) and cautions on self-indulgence and accessibility. Use for exploration and play when language feels too clean or too referential. Triggers on: 'xenopoetic', 'coin words', 'morphemulsive', 'language as material', 'productive incoherence', 'invented tongues'.
wunderkammer
The cabinet of curiosities — deeply researched science/philosophy performed by ASCII animal mascots with invented XML tags as meta-commentary, kaomojis as emotional punctuation, and a structural spine building unexpected callbacks between topics. Genuine depth married to genuine absurdity. Oscillates between 'delighted science communicator' and 'oh god the implications.' A SHOW where content is real, presentation is absurd, and absurdity is load-bearing. Use when the user wants to explore/play with ideas, wants depth wrapped in delight, wants the full treatment of mascots + diagrams + invented tags + existential punchlines. Triggers on: 'explore this,' 'have fun with this,' 'wunderkammer,' 'cabinet of curiosities,' 'give me the weird version,' 'make it fun AND deep,' 'tell me something wild,' 'keep playing,' ASCII animal requests, or any exploratory-playful mood wanting substance through spectacle. Kin: /geek-rapture, /shards, /collision, /placement, /yoin.
worldbuilding
The submerged-iceberg discipline of worldbuilding: silently construct the whole world — cultures, histories, landscapes, cosmologies, and rule-bound systems (magic, economy, politics) — knowing most stays underwater; only the tip shows, but the hidden mass makes the visible detail feel load-bearing and real. Paired with characters-as-living-systems: beings coherent enough to act beyond your plan (the test of a real character — they take the story somewhere you didn't intend). Core moves: build the submerged mass, reveal only the tip, give systems rules and costs so constraint breeds stories, keep everything coherent, let the world precede and pressure the plot. Use for fictional worlds, settings, cultures, magic or power systems, or the lived-in depth a narrative needs. Triggers on: 'worldbuilding', 'build a world', 'design a setting', 'magic system', 'make this world feel real'. Kin: /story-generation, /araki-character-sheet, /placement, /inventor-stance, /close-reading.