home/roleplay/prompt-squeeze-v04-design

Prompt Squeeze V04 Design

GPTClaudeGemini··329 copies·updated 2026-07-14
prompt-squeeze-v04-design.prompt
<!-- ABOUTME: Design spec for prompt-squeeze v0.4 — aggressive LLM-comprehension compression, -->
<!-- ABOUTME: interactive blocking by default, persistent compounded savings, opt-in deep-dive. -->

# prompt-squeeze v0.4 — Aggressive LLM-comprehension compression with realized savings

**Date:** 2026-05-04
**Branch:** `v0.4-aggressive`
**Status:** Draft, awaiting user review

## Goal

Produce the bare-minimum prompt that an LLM still understands, save real (not aspirational) tokens and energy, and make the savings visible enough that users feel the compounding impact across a day of coding.

The compression target is **LLM comprehension**, not human readability. If a squeezed prompt does not read smoothly, that is acceptable provided the LLM produces equivalent output. The eval is the contract that holds this line.

## Constraints

- **Platform constraint (still binding as of 2026-05-04):** `UserPromptSubmit` hooks can emit `additionalContext` or `decision: block` only — they cannot rewrite the user's prompt. Tracked at anthropics/claude-code#27365. Real savings therefore require the user to confirm a swap, not silent rewriting. This shapes the consent flow.
- **Eval contract:** No new compression rule ships unless the 100-prompt eval keeps median fidelity ≥ 0.95 AND 5th-percentile fidelity does not regress more than 0.03 from the captured v0.3 baseline AND no individual prompt regresses more than 0.05 in fidelity from its baseline. The eval is wired into CI; failing rules are rejected automatically. The p5 and per-prompt gates are relative-to-baseline (not absolute floors) because the v0.3 baseline already contains a small number of intrinsically low-fidelity prompts (past-tense conditionals, dangling phrases) that no compression-rule change can rescue without rewriting the prompt's grammar.
- **Privacy floor:** `log.jsonl` continues to store hashes only. The new explain artifact is opt-in, local-only, secret-redacted, capped at 100 entries, and never transmitted.

## Architecture

Six new or modified components, plus a rule-set expansion behind the existing skill:

when to use it

Community prompt sourced from the open-source GitHub repo joshua-burnell-1/prompt-squeeze (Apache-2.0). A "Prompt Squeeze V04 Design" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

joshua-burnell-1/prompt-squeeze · Apache-2.0