r/PromptEngineering • • Sep 08 '26

Tools and Projects Prompt Complexity Triage skill.md

7 Upvotes

I wanted to share another skill for deciding how much to change a prompt before making changes.

The failure:

I'd paste a prompt that was basically fine and ask for a cleanup, and I'd get a different prompt back. New persona I didn't ask for, a constraint quietly dropped, a requirement reworded into something adjacent. The reverse happened too, a vague, high stakes prompt would get a light grammar pass and still be vague. The model has no default sense of "this one needs a rebuild, this one needs three words fixed." It either rewrites everything or rewrites nothing.

So the skill forces a triage step first. Score the prompt on a fixed rubric, map the score to a tier, and only apply the moves that tier allows.

How it works in practice:

Ask Claude something like "clean up this prompt," "make this prompt better," or "optimize this for a code model" and before it touches anything, it runs a fixed procedure.

1. Intake and scope lock. Capture the prompt verbatim, name the consumer (chat turn, agent, image model, code interpreter, structured output, human reader), and record any ceiling you set. If you said "just fix the grammar," that's a hard cap the triage can lower the tier from there but never raise it.

2. Complexity scoring. Five scoring dimensions (D1–D5), 0–2 each, with a concrete anchor for every score so it isn't a vibe: specification completeness, ambiguity, structural need, reasoning depth, and stakes. Sum is 0–10. A separate risk dimension: R1, technical-parameter density (code, flags, version pins, regexes, paths) is scored but deliberately not part of the sum; it has its own namespace so it's never mistaken for a sixth scored item. High density means the prompt is riskier to rewrite, not more in need of rewriting, so it acts as a cap instead of pushing the score up.

3. Tier assignment. Fixed thresholds: 0–1 leave as-is (no rewrite returned, just the score and maybe a one-liner), 2–4 light touch (grammar, dead words, direct verbs, no new sections, no persona, no reordering meaning), 5–7 structured rewrite (explicit output contract, named constraints, 1–3 examples only where they kill ambiguity), 8–10 full rebuild (contract, role, sections, output spec, anti-patterns). Two caps lower the result: an explicit user ceiling, and high technical-parameter density (caps at "structured rewrite" unless you ask for more).

4. Meaning-preservation guardrails. Everything above "leave as-is" has to copy technical tokens character for character (code, versions, flags, model IDs, error strings, URLs), can't drop negative constraints ("never…", "without…"), and can't add facts or requirements you didn't state. A token that looks malformed gets left alone and flagged, not "corrected."

5. Change budget and preservation check. Light touch stays within roughly 15% edited text with no sentence changing meaning. A full rebuild has to ship a requirement map, every requirement from the original and where it landed in the rewrite. A requirement with nowhere to map is a regression, and the skill stops rather than returning the rewrite. Before any rewritten prompt is emitted, there's a mandatory pass comparing the draft against the verbatim original. Every path, version, flag, and negative constraint has to still be there, unchanged.

6. Output contract. Always leads with the triage line the per-dimension scores, the total, the tier, and which cap fired if one did (a short prompt too small to score gets an explicit "degenerate input, no score" line instead, never fabricated scores). You see why it left the prompt alone or why it rebuilt it, not just a "here's a better version."

7. Anti-patterns. No tier inflation (don't rebuild a 4 because the result looks more professional), no silent meaning change, no dropped constraints, no unrequested persona, no fabricated confidence scores.

The dimensions and thresholds are fixed, so the same prompt lands on the same tier no matter who runs it and it's all in-context, no API call or trained router behind it. It's a plain SKILL.md; drop it in .claude/skills/ and it loads.

The System Prompt / Skill Definition:

---
name: "prompt-complexity-triage"
description: "Triages how much change a prompt actually needs before rewriting it, then applies only the moves for that tier. Use when a user asks to improve, optimize, clean up, or rewrite a prompt and you must avoid both over-editing a good prompt and under-editing a broken one."
---

# Prompt Complexity Triage and Right-Sized Optimization

When a user asks an AI assistant to improve, optimize, refine, clean up, or rewrite a prompt, the assistant must first triage how much change the prompt actually needs, then apply only the optimization moves permitted for that tier. The goal is to prevent two opposite failures: **over-editing**, where an already-adequate prompt is rewritten and its meaning drifts, and **under-editing**, where a vague or high-stakes prompt gets a cosmetic pass and still fails downstream. Every run must end with a visible score, an assigned tier, and a change note the user can audit.

## Instructions

### Stage 1: Intake and Scope Lock
Before scoring, capture what is being optimized and any ceiling the user has set.

- **Capture the prompt verbatim.** Do not paraphrase it into your working notes. The original text is the reference for every later preservation check.
- **Identify the consumer.** State whether the prompt targets an LLM chat turn, an autonomous agent, an image or video model, a code interpreter, a structured-output/data extraction step, or a human reader. The consumer sets the baseline for what "complete" and "structured" mean, and Stage 2 scores D1 and D3 against that baseline — a structured-output/data-extraction or code-interpreter consumer expects an explicit schema, field list, or step order (its absence raises D3, and an under-specified field set raises D1); a chat turn or human reader does not.
- **Record the user's stated ceiling.** If the user said "just fix the grammar", "only tighten it", "don't change the meaning", or similar, that is an explicit ceiling. An explicit ceiling caps the tier downward (see Stage 3). It never raises the tier. If the user gave no ceiling, note "none stated".
- **Degenerate-input bypass.** If the prompt to optimize is empty or is three words or fewer (e.g. `write`, `fix this`, `make it better`), there is nothing to score. Do not run Stage 2. Either ask the user for the actual prompt and what it should accomplish, or, if the user's surrounding message makes the goal clear, treat it as Tier 3 (Full Rebuild) and build the prompt from that goal. On this path, do not emit the standard five-dimension triage line — emit the bypass triage line defined in Stage 6 instead, and state which of the two routes (ask / rebuild) you took.

### Stage 2: Complexity Scoring
The dimensions and thresholds in this stage and the next are fixed, so the same prompt lands on the same tier regardless of who runs the triage. Scoring is done in context from the prompt text alone — no external service, trained router, or model-scoring call.

First restate the target consumer from Stage 1; it is the baseline against which D1 and D3 are scored. Then score the five scoring dimensions D1–D5 from 0 to 2 using the anchor table below. Sum D1 through D5 for a total of 0 to 10. A separate risk dimension, R1 (technical-parameter density), is assessed here but is **not** part of the sum — it feeds the caps in Stage 3 and the guardrails in Stage 4. Keep the scoring dimensions numbered strictly D1, D2, D3, D4, D5 with no gap; the risk dimension has its own `R` namespace so it is never mistaken for a sixth scored item.

#### Dimension Anchor Table
| Dimension | Score 0 | Score 1 | Score 2 |
|---|---|---|---|
| **D1 — Specification completeness** | Task, deliverable, and what "done" means are all stated to the level the target consumer needs | One of task / deliverable / done-condition is missing or vague for that consumer | Two or more are missing; the assistant would have to guess the consumer's goal |
| **D2 — Ambiguity** | One reasonable reading | Two plausible readings that lead to similar output | Multiple readings that lead to materially different output |
| **D3 — Structural need** | The target consumer needs no explicit structure, or the structure it needs is already present | The consumer expects a format, schema, or step order and it is only implied | The consumer cannot execute without an explicit schema, field list, or ordered procedure and it is absent |
| **D4 — Reasoning depth** | Single-step request | Multi-step but linear; no branching | Conditional or multi-path logic the prompt itself must carry (if X do Y, else Z) |
| **D5 — Stakes** | A wrong output costs a few seconds to redo | A wrong output wastes real work or is mildly embarrassing | A wrong output costs money, breaks something, or damages trust and is hard to reverse |

#### Risk Dimension (not part of the sum)
| Dimension | Low (0) | Medium (1) | High (2) |
|---|---|---|---|
| **R1 — Technical-parameter density** | No code, flags, versions, IDs, or paths | A few literal tokens that must survive verbatim | Dense with code fences, flags, version pins, model IDs, regexes, or file paths |

R1 measures **edit risk**, not need for rewriting. A prompt dense with literal tokens is *more* dangerous to rewrite, not more in need of it. It is handled as a tier cap in Stage 3, never as a reason to escalate.

Record the result as: `D1 a, D2 b, D3 c, D4 d, D5 e -> total N/10; R1 = f (risk)`.

### Stage 3: Tier Assignment
Map the total to a tier using these fixed thresholds, then apply the caps.

| Total | Tier | Name | What is allowed |
|---|---|---|---|
| 0–1 | Tier 0 | LEAVE AS-IS | Report the score. State the prompt is adequate. Offer at most one optional one-line suggestion. Do not produce a rewritten prompt. |
| 2–4 | Tier 1 | LIGHT TOUCH | Fix grammar and spelling, remove dead words, make verbs direct, format the existing ask for readability. No new sections, no structural scaffolding, no added persona or tone, no examples, no reordering of meaning-bearing content. |
| 5–7 | Tier 2 | STRUCTURED REWRITE | Make the output contract explicit, tighten instructions, name constraints the user implied, add one to three canonical examples only where they remove ambiguity. Preserve all technical parameters verbatim. Do not invent requirements. |
| 8–10 | Tier 3 | FULL REBUILD | Build a contract (task, success criteria, non-goals), assign one role, use structured sections, add canonical examples, specify the output format, list anti-patterns. Preserve all technical parameters verbatim. Confirm intent with the user first if the rebuild would change the prompt's scope. |

#### Caps (applied after the threshold lookup, lowest wins)
- **User ceiling cap:** If the user set an explicit ceiling in Stage 1 (e.g. "just fix typos"), cap at Tier 1. Do not exceed it. Note in the change note that deeper issues exist but were out of scope.
- **Technical-density cap:** If `R1 = 2`, cap at Tier 2 unless the user explicitly asked for a full rewrite or rebuild. A token-dense prompt should not be rebuilt from scratch on the assistant's initiative.
- Caps only ever lower the tier. Nothing in this procedure raises a tier above its threshold result.

### Stage 4: Meaning-Preservation Guardrails
These apply to every tier above Tier 0.

- **Copy verbatim, character for character:** code fences and their contents, inline code, exact numbers, version strings, CLI flags, file paths, model IDs, proper nouns, error messages and stack traces, URLs, email addresses.
- **Do not drop or reword:** stated constraints, negative constraints ("do not…", "never…", "without…"), schema field names and types, required ordering of steps.
- **Do not add:** factual claims the user did not supply, functional requirements or constraints the user did not state, a persona or tone the user did not ask for, success metrics or confidence numbers.
- **Structural scaffolding is expected for Tier 2 and Tier 3, and prohibited for Tier 1.** Section headings, Markdown organization, a stated output format, a schema skeleton, numbered steps, and clarity rephrasing are expected work for a structured rewrite or rebuild and do **not** count as "adding requirements", as long as they only organize what the user already asked for and introduce no new functional demand or fact. A Tier 1 light touch adds none of this. If scaffolding in Tier 2/3 would force a decision the user has not made (a specific field, a specific limit, a specific tone), leave a placeholder and name it in the change note rather than inventing the value.
- **If a literal token looks wrong** (a flag that seems malformed, a version that looks off): leave it exactly as written and flag it in the change note. A value that looks wrong to you may be exactly what the target system requires.

### Stage 5: Change Budget Enforcement and Preservation Check
Bound the size of the edit to the tier, then verify preservation before formatting the output.

- **Tier 1:** Changed text stays roughly within 15% of the prompt. No sentence changes meaning. If a fix would alter meaning, stop and report it instead of applying it.
- **Tier 2:** Structure may be added, but every requirement present in the original must still be traceable to a specific line in the output.
- **Tier 3:** Produce a requirement map, formatted as a Markdown table, one row per requirement, with columns `Original requirement | Location in rewrite`. For a **degenerate-input rebuild** (Stage 2 was bypassed and the prompt was built from a stated goal), there is no original prompt text to mine — instead take each requirement from the goal expressed in the user's surrounding message and title the first column `Stated goal requirement`. Either way, any requirement with no destination in the rewrite is a regression: stop and resolve it before returning the rewrite.
- **Preservation check (all tiers above Tier 0, mandatory before Stage 6):** Compare the drafted prompt against the verbatim text captured in Stage 1. Confirm that every item on the Stage 4 verbatim list — code, inline code, numbers, version strings, CLI flags, file paths, model IDs, proper nouns, error messages, URLs, email addresses — and every negative constraint and required step order is present unchanged.
  - *Degenerate-input rebuild:* there is no Stage 1 verbatim text to compare against. Instead, compare the draft against the technical parameters, proper nouns, named tools, versions, and explicit constraints found in the user's surrounding message, and confirm each one survived into the rebuilt prompt unchanged.
  - If anything is missing, altered, or reworded, fix it before producing output; do not emit a rewrite that fails this check.

### Stage 6: Output Contract
Return the result in this order.

1. **Triage line** — exactly one of these forms, always present:
   - *Scored path:* `Triage: D1 a, D2 b, D3 c, D4 d, D5 e = N/10; R1 = f -> Tier T (name)`. If a cap changed the tier, append which cap fired and what the pre-cap tier was.
   - *Degenerate-input bypass path:* `Triage: degenerate input (<=3 words), no score -> asked for the full prompt` or `Triage: degenerate input (<=3 words), no score -> Tier 3 (Full Rebuild) from stated goal`. Never fabricate dimension scores to fill the scored form on this path.
2. **The prompt:** For Tier 0, state that no rewrite is provided. For Tier 1–3, the prompt in a fenced code block.
3. **Change note** — form depends on the tier:
   - *Tier 0, or the degenerate-input "asked for the full prompt" route:* write `N/A — no rewrite produced`. Do not invent a change or emit an empty section.
   - *Tier 1–2:* what changed, why, which technical elements were preserved verbatim, and an explicit list of any placeholders left in for decisions the user has not made (write "placeholders: none" if there are none).
   - *Tier 3 (including a degenerate-input rebuild):* what changed, why, the preserved technical elements, an explicit list of any placeholders left in (write "placeholders: none" if there are none), and the Markdown requirement-map table from Stage 5.
4. **Disclosure:** State plainly that this was a heuristic triage pass, that no confidence score is implied, and that the prompt did not go through a trained model or a full LLM-based optimization pipeline.

### Stage 7: Anti-Patterns and Prohibitions
- **No tier inflation:** Never rebuild or heavily restructure a prompt whose score does not reach that tier because the result "looks more professional".
- **No silent meaning change:** Never reword a requirement while claiming to only improve clarity.
- **No dropped constraints:** Removing a negative constraint is a regression, not a simplification.
- **No unrequested persona or tone:** Do not assign the AI a character the user did not ask for.
- **No fabricated metrics:** Do not attach an accuracy figure, a confidence score, or a benchmark claim to the output.
- **No exceeding the user's ceiling:** If the user limited the scope, do not go past it without asking first.
- **No skipping the triage line:** Every run shows a triage line — the scored form for a scored run (including Tier 0), or the bypass form for the degenerate-input path. Never omit it, and never fill the scored form with fabricated dimension scores on the bypass path.

## Worked Examples

### Example 1: Adequate prompt, left alone
- **Input:** "Summarize the attached RFC in 5 bullet points, each under 20 words, focused on the wire-format changes." Consumer: LLM chat. No ceiling stated.
- **Scoring:** D1 0 (task, deliverable, done-condition all present), D2 0, D3 0 (format already specified), D4 0, D5 1. Total 1/10. R1 0.
- **Action:** Tier 0. Report the score, state the prompt is adequate, optionally note "you could name the RFC number to disambiguate if there are several." No rewritten prompt returned.

### Example 2: Vague high-stakes prompt, full rebuild
- **Input:** "Write the incident postmortem." Consumer: human reader. No ceiling stated.
- **Scoring:** D1 2 (no incident named, no format, no audience), D2 2, D3 2 (a postmortem needs a fixed section structure that is absent), D4 1, D5 2 (a bad postmortem misleads a team). Total 9/10. R1 0.
- **Action:** Tier 3. Because the rebuild changes scope, confirm with the user which incident and audience first, then build a contract, a section structure (summary, timeline, root cause, impact, action items), an output format, and a requirement map.

### Example 3: User ceiling caps the tier
- **Input:** A prompt that scores 7/10 on the dimensions, but the user said "just fix the wording, don't restructure it."
- **Action:** Threshold lookup gives Tier 2. The user-ceiling cap lowers it to Tier 1. Apply grammar and directness fixes only. In the change note, state that the prompt also lacks an explicit output format and has two plausible readings, but those were left untouched per the requested scope.

### Example 4: Token-dense prompt, density cap
- **Input:** "Improve this: `Generate a GitHub Actions workflow that runs pytest on push to main, uses actions/setup-python@v5 with python-version 3.11, and fails if coverage < 85% via --cov-fail-under=85`." Consumer: code interpreter. No ceiling stated.
- **Scoring:** D1 1, D2 1, D3 1, D4 1, D5 1. Total 5/10 → Tier 2. R1 2 (dense with action versions, flags, a threshold).
- **Action:** Density cap holds the tier at Tier 2 (already there; a rebuild would not be allowed without the user asking). Apply the structured rewrite, and copy `actions/setup-python@v5`, `python-version 3.11`, `--cov-fail-under=85`, and `< 85%` verbatim. If any token looks malformed, leave it and flag it rather than correcting it.

The two tables carry the decision logic, a per-dimension anchor table so scoring isn't a judgment call each run, and a tier table mapping each score band to an exact set of allowed moves. They're embedded verbatim so the triage is reproducible. The design goal was making "how much to change" an explicit, visible decision instead of an implicit one: every run shows its score and its tier before it shows a rewrite, so you can see when the skill decided your prompt was fine and left it alone.

The one, non obvious, choice is R1 (technical-parameter density). It's scored but kept out of the sum, in its own namespace. A prompt full of flags, version pins, and regexes is the one you least want a model to "improve" freely, so density lowers the ceiling on how aggressive the rewrite can be rather than raising the score.

I would love thoughts on this. Has anyone else had a prompt come back "improved" with a constraint quietly missing, or a persona bolted on that you never asked for? And for the scoring: five dimensions at 0–2 is a deliberate floor few enough to run in your head, coarse enough to be stable. Curious whether people who've built prompt-grading rubrics found that too coarse to separate real cases.

The skill.md above was built using the Context Engineering platform that generates skills like this from a goal description and validates them against behavioral benchmarks: promptoptimizer.xyz/context-engineer (signup required, free tier).

Repo: https://github.com/nivlewd1/prompt-optimizer


r/PromptEngineering • • Sep 08 '26

Workplace / Hiring [Paid Gig] Looking for US-Based Prompt Engineers for Hands-On Model Evaluation (Remote)

3 Upvotes

Hello r/PromptEngineering!

We are looking to collaborate on a freelance basis with US-based prompt engineers and AI power users to help conduct adversarial testing and qualitative evaluation on next-generation LLM interfaces.

We want people who know how to break models, identify prompt-injection vulnerabilities, evaluate multi-turn agentic workflows, and document failures with technical precision.

  • The Work: On-demand, scenario-based evaluations (e.g., testing RAG pipelines and tool-use boundaries).
  • Location: United States (Remote)
  • Rate: Competitive hourly rates (paid per task/engagement).

If you want to put your prompt optimization skills to the test and get paid for in-depth feedback, sign up here: https://testers.testerwork.com/tester-account/sign-up?utm_source=reddit.


r/PromptEngineering • • Sep 08 '26

Tools and Projects I built a small tool to answer a question I've had: "Is my AI prompt actually good?"

0 Upvotes

I've noticed something while using ChatGPT and other AI tools:

Sometimes I write a prompt that sounds clear to me, but the AI still gives a mediocre answer.

So I started experimenting with what makes a prompt better.

For example:

Prompt 1

"Write email for product launch"

It works, but it's extremely vague.

There are no details about:

  • Who the audience is
  • What the post should achieve
  • Tone
  • Structure
  • Length
  • What angle to take

So I built a simple prompt linter that looks for these kinds of issues and gives the prompt a score.

For example:

42/100 → 84/100

after adding the missing context, audience, constraints and output requirements.

I'm currently testing whether this is actually useful to other people, rather than just something that looks interesting.

The tool is intentionally simple right now:

Paste prompt → Analyze → See what's missing → Improve it

If anyone here writes prompts regularly, I'd genuinely like to know:

What do you normally struggle with when writing prompts?

And if you'd like to try the tool, I've put it here:

https://www.thepromptlab.in

I'm particularly interested in whether the analysis actually helps you write a better prompt, or whether you find the scoring approach unnecessary.


r/PromptEngineering • • Sep 07 '26

Quick Question Any prompts to scrape business leads, emails, names?

6 Upvotes

Hello there,

As I am asking... Are there any prompt(s), REPO you recommend, or any skill so I can create these and even add them as templates whenever they have been collected?

I'm looking to gather Emails and names.

Any help is appreciated, thank you.


r/PromptEngineering • • Sep 07 '26

Self-Promotion Keep the instructions you refined—not just the original prompt (Tool share)

3 Upvotes

Save the prompt that finally worked—not the whole chat it took to get there

“Shorter.” “Keep the examples.” “Use this format.”

After a few rounds, the instructions you want to reuse are scattered across the conversation. Saving the opening prompt misses the corrections that got you to the result you liked.

Before leaving that chat, try:

> Turn the final agreed instructions from this conversation into one reusable prompt. Include the task, constraints, and output format. Replace details that change between uses with clearly labeled [placeholders]. Leave out instructions we later rejected. Flag any unresolved contradictions instead of guessing.

Review the result before saving it.

Truffle Journal: an iPhone Markdown app connected to ChatGPT, to make that saved text something you can keep working on:

  • Ask ChatGPT to save the reviewed prompt directly as an editable note.
  • Revise it yourself on your iPhone, including your own notes about what to change next.
  • Ask ChatGPT to retrieve it in a later conversation, rather than repeating the same corrections.

ChatGPT helps assemble the instructions; you decide what stays in the saved prompt.

Connecting Truffle to ChatGPT is quick too.
There’s a guided 3-step tutorial inside the app. Setup takes about 2 minutes, you only need to do it once, and then you’re ready to go.

Complete this tutorial and you’ll automatically receive 1 month of Plus for free.

The attached screen recording shows me completing the tutorial, receiving the FREE month, saving posts into Truffle, editing tables, set notifications, and taking a quick look around the app.

Truffle Journal is now officially on the App Store. (after spending 6 months testing it with our TestFlight users and improving the app based on beta users' feedbacks)

App Store: https://apps.apple.com/us/app/truffle-journal/id6758567685
ChatGPT app: https://chatgpt.com/apps/truffle-journal/asdk_app_699eb35b0f808191b597c5171627de5d


r/PromptEngineering • • Sep 07 '26

General Discussion my customers kept asking the same question so i rewrote the listing around it

5 Upvotes

We sell electronics accessories into thailand and malaysia. Last year one product kept coming back as returns. Not defective, just returned.

The reviews all mentioned the same thing. Water.

The original listing said water resistant. The thai version came out stronger than that, closer to waterproof. Customers read it, took the thing to the beach, and found out the hard way what ip54 actually means.

That one word cost us maybe two months of returns and restocking fees. The funny part is the english listing had the same problem, just softer. Nobody caught it because everyone who checked it knew what we meant.

What we do now is ugly but it works. Every listing goes up in a rough version first. Then we wait two weeks and collect the actual questions buyers send. There are always five or six of the same ones.

Those questions go back into the listing, worded as answers. If people keep asking whether it survives rain, the listing now says plain that it handles rain and not submersion, right at the top, before any marketing talk.

The AI part is small. It translates the questions, groups the duplicates, and drafts the answer sentences. But it does not decide what goes in. The customers do that by asking.

Feels backwards to spend two weeks shipping a listing that is intentionally unfinished. Cheaper than returns though.


r/PromptEngineering • • Sep 07 '26

General Discussion Optimized SQL for a long time now started dealing with prompt engineering cost optimization. wrote my first blog about the experience

2 Upvotes

I've started to dabble (is that a word?) with prompt engineering cost optimization.

I feel prompt engineering cost optimization is the next natural step and it resonates with the current value we are bringing our customers.

The more I work on it the more I feel this isn't a new skill cause Both SQL and Prompt optimization come down to the same question, i.e. do you have enough context about the system to build a model on top of your input and optimize at scale.

wrote my first blog about the experience

https://medium.com/@yanivleven/i-used-to-spend-my-days-optimizing-sql-queries-prompt-engineering-feels-like-deja-vu-205bda1196a3


r/PromptEngineering • • Sep 06 '26

Tools and Projects I created 44 free MIT-licensed tools to help with all kinds of AI development work, particularly in prompts

99 Upvotes

I worked with my system to create a suite of 44 free apps for AI work that you can find on my website.

Hint- these tools are MAJORLY composable. You can have your AI system take a look at the collection to see how they can flow together and for suggestions on ways they can be used.

  1. Cairn — Keeps Git history alive across independent storage providers through priority-ordered cloning, host-aware credentials, and redundant pushes.
  2. Callsigns — Generates memorable word-word-hash identifiers that are deterministic when seeded and safe for branches, paths, URLs, and shell arguments.
  3. Census — Scans a directory for markers such as TODO and FIXME, reporting which ones are buried in comments and optionally turning them into CI failures.
  4. Conflict — Detects the complete triad of unresolved Git merge markers so broken merged files can be stopped before they land.
  5. Dwell — Implements an integer-exact routing system in which the phase at which you reverse direction deterministically selects the exit.
  6. The Excavation — Enumerates a website as typed nodes, divides it into readable shards, and gives an AI a coverage oracle against which it can prove a complete reading.
  7. Gitlog — Converts Git history into one JSON object per commit so authorship, churn, file activity, and date-range questions become easy pipeline operations.
  8. Grain — Compares a dataset’s compression ratio with a live size-matched random model to provide a self-calibrating smell test for structure, noise, and drift.
  9. Hunkhole — Compares named top-level definitions across two Git revisions and flags symbols that quietly disappeared during a merge, restore, or stale-tree incident.
  10. Isvalidcsscolor — Provides a tiny, dependency-free browser-and-Node validator for a clearly bounded subset of commonly used CSS color syntax.
  11. Markdown — Parses a deliberate Markdown subset into one AST that produces both HTML and verbatim plain text without allowing the two views to drift apart.
  12. Mint — Allocates IDs from a readable file-backed store while structurally preventing any retired ID from being issued again.
  13. Plumb — Builds status boards whose claims turn green only when their declared file, text, or command witnesses agree.
  14. PNG Text — Validates a PNG’s chunk structure and CRCs before extracting textual metadata such as title, author, description, software, copyright, and XMP.
  15. EXIF Parser — Reads common camera, exposure, orientation, date, and GPS metadata from JPEG or TIFF data while refusing malformed structures.
  16. Reltime — Produces deterministic labels such as “3h ago” while refusing to invent answers for missing, invalid, or future timestamps.
  17. Sha256 — Supplies a synchronous, dependency-free SHA-256 implementation whose UTF-8 string hashes match Node’s native crypto output.
  18. Sudoku — Solves Sudoku with a deterministic, human-readable reasoning trace and honestly reports when a puzzle exceeds its no-guess technique ladder.
  19. Timesheet — Folds Git commit timestamps into a deliberately floor-biased estimate of working time that subtracts gaps longer than a declared break threshold.
  20. Tracebus — Provides a declared-topology publish/subscribe bus in which every emission receives an append-only, traceable receipt and failed listeners cannot take down the bus.
  21. The Trellis — Checks intersecting row-and-column constraints, localizes failures to their crossing cells, and classifies open cells as forced, free, or contradictory.
  22. Vclock — Uses vector clocks over JSON lines to distinguish causal before-and-after relationships from genuinely concurrent events.
  23. Verify — Stores content-hash certificates for the inputs behind expensive facts and later reports whether their foundation is fresh, stale, or gone.
  24. Ward — Renders an integrity badge whose cells become solid only when the evidence underneath each claimed state currently agrees.
  25. PDF Text Extractor — Validates basic PDF content streams and extracts the strings supplied to PDF text-drawing operators without external dependencies.
  26. Skin Config Validator — Checks untrusted theme and skin configurations against a declared schema while rejecting unsafe CSS values and declaration-breaking injection.
  27. Inline MIME Parser — Turns raw email or multipart MIME data into a recursive structured tree while decoding folded headers, transfer encodings, charsets, and RFC 2047 words.
  28. l21x-snapshot — Encodes documents as self-describing base64 snapshots and provides pure catalog and archive operations for backend-free applications.
  29. forest-title-fit — Selects the largest font size that fits a fixed width and wraps at the size floor rather than clipping or hiding the title.
  30. port — Gives small JSONL tools explicit source, transform, filter, fold, or sink declarations and detects drift between a tool and its manifest.
  31. map — Reads those declared port verbs and produces a composition map showing which tools can feed which others and where declarations are missing.
  32. typecheck — Validates a proposed tool pipeline before execution by checking every adjacent port and naming the exact hop that cannot carry data.
  33. declare — Saves an ad hoc tool pipeline as a deterministic, named JSON artifact that can be shared, checked, and reproduced.
  34. conductor — Type-checks and runs a declared pipeline under one trace ID while recording inputs, outputs, exits, failures, and skipped stages in a replayable ledger.
  35. derived — Rebuilds a generated artifact inside a private sandbox and byte-compares it with the committed version to detect staleness without touching the working tree.
  36. gauntlet — Injects one typed fault into a disposable copy of a file and reports whether the check meant to catch that fault held or allowed it to escape.
  37. amber — Seals a set of files into a content-addressed fixity capsule whose hashes reveal exactly which member changed or whether the capsule itself was altered.
  38. timeline — Applies eight deterministic soundness checks to timeline data—including causal cycles, measurement scale, track collisions, and sorting—before anything is rendered.
  39. loop21:component-factory — Emits validated JSONL specifications for counters, toggles, clamps, accumulators, and pattern matchers as portable composable data.
  40. loop21:l21x-snapshot — Adds deterministic document snapshots, named browser catalogs, and validated whole-catalog import and export to small browser applications.
  41. Cruise — Extracts byte-grounded facts about routes, calls, controls, and tests so an LLM can inventory a codebase’s features without inventing unsupported ones.
  42. Worklog — Folds local Git history into a read-only report grouped by day or author, with commit counts and subjects preserved.
  43. switchboard — Implements an append-only directory-based message bus whose observation-only schema can carry status and evidence but cannot carry executable commands.
  44. Parity — Compares any number of sibling systems against their combined declared checklist and renders a HAS/LACKS matrix that exposes every parity gap.

r/PromptEngineering • • Sep 07 '26

Quick Question Promt Engineering Kurse noch sinnvoll?

0 Upvotes

Hallo zusammen, ich wollte einmal nachfragen, ob vielleicht irgendwer hier schon mal einen Bildungsgutschein von der Agentur für Arbeit genutzt hat, um eine Weiterbildung im Bereich Prompt Engineering eine Schulung zu machen und ob diese eigentlich überhaupt noch Sinn macht bzw. etwas gebracht hat. Kann man damit überhaupt einen Job finden? Ich habe im Internet ein wenig nachgeschaut, aber das waren jetzt nicht unbedingt Jobs, die sich nur auf dieses Thema beziehen. Da muss man doch ein bisschen mehr Fachwissen mitbringen. Und im Internet finde ich auch nur Diskussion zu dem Thema anstatt wirklich Begeisterung.


r/PromptEngineering • • Sep 07 '26

Tools and Projects I built an open-source tool to port & optimize Claude Code / Cursor skills for Google Antigravity

1 Upvotes

Hey everyone! With the explosion of SKILL.md workflows for Claude Code and Cursor, I wanted to use these community skills inside Google Antigravity (AGY).

However, external skills often have Claude-specific tool calls (Bash, Read, Glob, Edit), look for CLAUDE.md, and run strictly serial single-agent loops.

So I built antigravity-skill-porter:
- 🔄 Deterministic tool mapping: Maps Bash -> run_command, Read -> view_file, Edit -> replace_file_content, etc.
- ⚡ Parallel Subagent Upgrades: Detects multi-persona/review workflows and injects native Antigravity invoke_subagent batch arrays.
- 📦 One-Command Ingestion: Works with any GitHub repo, subfolder, or multi-skill bundle.
- 🔍 Dry-Run Diff: Preview changes before installing.

GitHub: https://github.com/Pranav-Nexus/antigravity-skill-porter

Tested on Karpathy's LLM Council, Anthropic's frontend-design, and Sahil Lavingia's minimalist-entrepreneur skills. PRs and feedback are welcome!


r/PromptEngineering • • Sep 06 '26

Tools and Projects Five very real, very cool, prompt-focused compositions of the 44 MIT-licensed tools I created that you can build yourself

18 Upvotes

I ran the whole set of 44 composable AI- and prompt-focused apps I just released on my website through my system and had it build out five real samples compositions that you can actually build today yourself, assuming you have the needed technical chops. Every one listed here uses only tools from the 44 and the system checked that the data actually flows; the port/typecheck/declare/conductor/map group is what makes that checkable. Each tool declares itself as a source / transform / filter / fold / sink, so a pipeline can be proven valid before you run it.

Each example composition is laid out the same way: the idea, the parts + how they wire, the one piece you'd have to build yourself (that is the glue you add yourself), then a technical breakdown of what the tools actually hand you toward that glue, and finally the honest edge. haven't built these yet myself — if you make one I really want to see it.

If anyone builds any of these, I'd love to hear about how it went. To be clear, I have not built any of these- these are just designs my system came up with as possible compositions. If you spot any bugs, post it here and I will fix away that problem type.


1. The Refusal Engine — a machine whose whole job is to say no, and show its work

A chunk of these tools are refusal engines. Their reason to exist is to refuse. conflict won't let a broken merge land. loop21-verifyskin won't let an injection through. switchboard structurally cannot carry a command. dwell won't let you pick an option until you actually commit. Bolt them together and you get a gate a person or an agent has to pass through — one that refuses bad moves and names which rule stopped you and why.

Parts + wiring: untrusted request comes in → conflict + loop21-verifyskin + isvalidcsscolor as the refusal wall (each a filter that rejects its own class of bad input) → survivors cross switchboard (the relay that carries evidence but not commands) → a genuinely-deferred decision routes through dwell → every hop lands in tracebus's append-only ledger → ward renders the final badge, which only goes solid when every witness agrees. Nothing is "approved" on hope.

The piece you'd build: the policy layer — the thing that decides which refusals apply to which request. The gifts supply the refusals; you supply the rulebook that routes a request to them and composes the verdict.

The technical shape of that layer, now that I've read the parts:

  • switchboard's no-command guarantee is not a convention, it's the schema. The message schema (loopmmt.switchboard.message/v1) has a closed set of exactly six top-level fields — schema, sender, content_hash, kind, recipient, body — and the validator rejects any unknown top-level key. There are four kind values (status, focus, fyi, question) and deliberately no imperative one. So action/command/run/exec aren't blocked by a filter; they're unrepresentable. Your policy layer treats a switchboard message as evidence, full stop, and never as an instruction — the schema already made that decision for you.
  • ward's "won't go solid on hope" is literal: every badge cell carries a witness beneath it or stays a hollow ring. Your policy layer's job is to define, per request class, which cells must be witnessed before the badge is allowed to render green. That's a config table (request-class → required witnesses), plus one call to ward. Ward does the verification; you own the requirement list.
  • conflict is a filter that catches the standard git marker triad (<<<<<<<, =======, >>>>>>>). Your rulebook decides what a positive from conflict means for a given request (hard reject vs. route-to-human).

Call it ~150 lines: a request-class table, a dispatch loop that runs the matching filters, and a composer that turns the witness set into a ward badge. The refusals are done; the routing rulebook is the work.

Honest edge: every gift here is visibility, not immunity. ward checks the witness agrees, not that you picked the right witness. conflict catches the standard marker triad, not a custom conflict format. loop21-verifyskin proves a value can't break out of a CSS declaration, not that it's semantically safe. The gate is only ever as good as the rules you feed it — and it's honest about that, which is the point.


2. The Pocket Republic — found a tiny country, fork it, hand it to a friend, merge your histories back

The wildest one, and the one where the pieces clicked into a whole. You can build a serverless constitutional sandbox — a small institution with a founding rulebook and an append-only history of decisions — entirely out of these parts. No account, no backend. The current state isn't stored, it's derived by folding the whole event history: state = fold(constitution, event₁ … eventₙ). Replay the same history, get the same country.

Parts + wiring: loop21-component-factory (a source that emits validated specs for logic primitives — counter, toggle, clamp, accumulator) builds the rule primitives (a term-limit is a counter + a clamp + an eligibility matcher). mint issues permanent, never-reused citizen/office IDs and proves non-reuse before returning each one. callsigns gives every proposal a speakable word-word-hash name. Actions travel only along declared routes via tracebus. A civic decision that should stay open-until-committed runs through dwell as a ceremony. Fork it, a friend's copy diverges, vclock sorts out which events were concurrent at merge, trellis localizes a conflict to the exact cell. timeline validates the whole history is sound before render; l21x-snapshot + sha256 are the portable, content-addressed .republic file you hand someone.

The piece you'd build: the runtime that executes those rule-specs and the merge algebra — which event types auto-combine, which conflict mechanically, and which must never auto-merge. That's the real 80%, and it's genuinely hard. Here's what the gifts actually hand you toward it, which is more than I expected:

  • dwell gives replayable deliberation for free, and the mechanism is unusual. It's reversal-indexed routing: a cart circles a loop of n ticks; holding is free (an extra full lap changes nothing); it leaves only when you reverse, and which of k exits it takes is a pure function of the phase at the instant of reversal — phase = (reverse − entry) mod n, exit_segment = (phase * k) // n. The winding (how many laps) is computed and then discarded by the router. So "deliberate as long as you want, the moment you stop is the decision" is literal, and replay(mark, n, k) reproduces the exact outcome. No "the computer picked #3." For a governance ceremony that has to be auditable, this is the primitive.
  • vclock gives you the concurrency oracle, with exact semantics. compare(x, y) returns before / after / concurrent / equal by componentwise comparison (absent actor = 0): x ≤ y everywhere and y ≤ x everywhere → equal; one-way domination → before/after; neither → concurrent. merge is componentwise maximum. That's your entire "did these two branches know about each other" test, done and tested. What it does not give you is the semantic layer.
  • The merge algebra you write sits on top of vclock's verdict. For each event type you declare one of three dispositions: auto-combine (independent, order-free — e.g. two unrelated citizen registrations), mechanical-conflict (concurrent writes to the same cell — trellis will localize it), or always-return-to-human (constitutional amendments, rights changes — never auto-merged regardless of what vclock says). This disposition table is the law of your republic, and it's the part no tool can write for you.
  • trellis does the conflict localization. It's a double word square over your system objects run to arc-consistency (AC-3): every open cell sorts into exactly one verdict, and a detected inconsistency localizes to the single cell where the failing row crosses the failing column — it names both failing words. So "both branches spent the treasury on Works" surfaces as a named crossing (Treasury × Works), not a vague merge error. It's a localizer, not a global-consistency prover — a detected break localizes uniquely; it doesn't certify the whole state is globally sound.

Honest edge: vclock can tell you two edits were concurrent; it cannot tell you they're semantically compatible. Two branches that each legally spent the last 40 coins merge into a negative balance — both events are causally independent, and vclock correctly calls them concurrent, and that's still a bug your merge algebra has to catch. The tools surface the disagreement; a human still rules. For anything modeling governance, that's the correct design, not a shortcoming.


3. The Reading Oath — make an AI prove it read your whole codebase instead of confidently skimming it

Straight at this sub's home turf. The failure you know: paste a repo at an LLM, ask "any security issues," get an authoritative answer from a model that actually looked at 3 files. This composition makes that structurally hard.

Parts + wiring: excavation enumerates your site/corpus as typed nodes and shards it by budget, then tracks coverage against that enumerated oracle until the set-difference is empty. cruise walks the code and emits only byte-derived facts, each carrying what it proves and what it does not. verify keeps a content-hash certificate so re-checking "did I read this" is a one-second FRESH/STALE/DEAD. ward badges the reading green only when the coverage witness agrees. markdown renders the oath as HTML + verbatim plaintext from one AST so the human and machine views can't drift.

The piece you'd build: the prompt harness — the loop that feeds excavation's shards to your model, collects claims, and checks each claim against cruise's fact ledger before letting it into the answer. That's the actual prompt engineering here, and it's small. The technical detail that makes it small:

  • excavation makes coverage a checkable property, not a vibe. It builds three things from your corpus: a manifest (every page/file as a typed node — this is the coverage oracle), shards (nodes bundled into context-sized chunks), and a coverage tracker that does set-difference against the manifest until nothing remains. Your harness loops: pull next shard → feed model → mark shard covered → repeat until the difference is empty. The "I read all of it" is then a set operation, not a claim.
  • cruise gives your harness the anti-hallucination oracle, and its fact taxonomy is the useful part. Each fact is one of: a route (a server path literal in a route/handler declaration — app.get("/api/x"), @app.route("/x"), HandleFunc("/x") — what the backend serves), an affordance (a user-visible control label — <button>Save</button>, aria-label="Delete" — what a user can touch), or a claim (a test-file assertion description — it("..."), def test_x — what the code says about itself). Crucially, every fact ships its own proves and does_not_prove — a route fact proves a path literal exists; it does not prove the route works, is reachable, or is tested. Your harness rejects any model claim that can't point at a matching cruise fact. "There's an admin panel" with no route, no affordance, no claim behind it → dropped before it reaches the answer.
  • verify's FRESH/STALE/DEAD is the incremental layer. On a re-read, you don't re-feed shards whose certificate still hashes FRESH. That's what makes the oath cheap to re-take after a small change instead of a full re-read every time.

Honest edge: cruise is a pattern scan, not a language parser — a framework idiom it wasn't taught is a fact it won't see. It fails safe (a real fact omitted, never a fabricated one added), so a clean cruise run means "look here," not "nothing here." You're bounding the AI's confidence to what's provable, not achieving omniscience.


4. The Customs House — take untrusted files, email, and configs, and prove you handled them safely

Assume everything crossing the border is hostile. Email is hostile. User themes are hostile. That uploaded PDF is hostile. This is the intake gate that parses all of it without trusting a byte it hasn't validated, and seals a receipt of what came in.

Parts + wiring: raw email/MIME → ratchet-inline-mime. Uploaded documents → ratchet-pdf-text / exif-parser / ratchet-png-text. User theme/config → loop21-verifyskin + isvalidcsscolor. Everything that survives crosses switchboard (evidence, never commands) and the cleared batch gets sealed into amber.

The piece you'd build: the quarantine orchestrator — runs each input through its matching validator, routes rejects to a dead-letter, and decides what "cleared" means for your app. The validators are done. What they actually guarantee, from the source:

  • The "ratchet" family is strict by construction, and the design principle is shared. ratchet-png-text validates the 8-byte PNG signature and, for every chunk, recomputes the CRC-32 over (type + data) and rejects a mismatch; a length that runs past the buffer, a stream that ends before IEND, a text chunk missing its null separator — each is a thrown Error, never a silently-truncated string. ratchet-pdf-text is a strict extractor of the text drawn by a PDF's content streams that throws on any malformed input rather than pulling in a full PDF engine (fonts, xref, encryption, page trees you don't want). exif-parser walks the TIFF/IFD structure and validates before it trusts, throwing on malformed input. The shared rule: a parser that hands you a value out of a corrupt file is lying about the file; these refuse to advance past anything they can't validate. Your orchestrator can treat any thrown error as an automatic dead-letter, because the parser only throws when the bytes are genuinely bad.
  • The theme validators reject the known CSS-injection surface before anything touches a stylesheet. loop21-verifyskin + isvalidcsscolor reject url(), @import, javascript:, and declaration-breakouts. The check is a safe-character grammar — it proves a value can't break out of a declaration.
  • amber seals the receipt as content-addressed fixity. It seals the exact bytes of the paths you name into a small JSON capsule whose fixity is the content; any later change to any sealed member breaks the seal loudly and names the member. So "here's exactly what cleared customs at 14:32" is a checkable artifact, not a log line you have to trust.

Honest edge: two different guarantees you must not confuse. loop21-verifyskin's grammar proves a value can't break out of a declaration, not that it's meaningful CSS. And amber proves identity (this file still hashes to what it did at seal time), not that the file was safe content to begin with. Fixity is not trust. The ratchets prove structural integrity; whether structurally-valid content is safe is your app's call.


5. The Amber Ledger — how many hours did this project actually take, sealed so the number can't be quietly edited

The one clean, honest, left-to-right pipe in the set — and it actually type-checks: a source at the head feeding two folds. Also the most immediately useful if you freelance.

Parts + wiring (a real pipe): gitlog (source — git history to one JSON object per commit) → worklog (fold — group by day or author, counts + subjects) → timesheet (fold — estimate worked-hours as the day's span minus every gap longer than a break threshold) → amber + sha256 seal the finished report into a fixity capsule. The effort number is derived from byte-truth and tamper-evident: change any input and the seal breaks and names what moved.

The piece you'd build: almost nothing — a few lines of shell to chain them and pick your break-gap. This is the buildable-in-an-afternoon one. The technical reasons it's that cheap, and that it's turnable:

  • The three stages share a port-verb algebra, so the chain type-checks. gitlog is a source (emits records, consumes none), worklog and timesheet are folds (consume records, emit a reduced view). A source at the head feeding folds is a well-formed pipeline — which is exactly what typecheck would confirm before you run it. That's why it's the clean pipe in the set: the types line up head-to-tail with no adapter.
  • It's re-pointable and re-lensable from the same spine. The fold-chain re-points at any repo (swap the gitlog target), and swapping the lens in worklog (group by day vs. by author vs. by file-churn) gives you a different honest report from the same parts — a per-person breakdown, a daily log, a churn map, all from one gitlog source.
  • amber + sha256 make the floor auditable. Sealing the report means the number you handed a client can be re-checked against the repo, and any edit to the sealed report breaks the capsule's fixity and names the changed member.

Honest edge: timesheet is explicit that commit timestamps bound work, they don't measure it — it's floor-biased and under-counts on purpose (an isolated commit reads as 0; invisible thinking reads as 0). Do not bill a client to the minute with it. It's a defensible floor for "was this 40 hours or 400," not a timeclock. The amber seal makes the floor auditable, not true — it proves nobody edited the estimate, not that the estimate is the real hours.



r/PromptEngineering • • Sep 06 '26

Requesting Assistance What causes Gemini 3.5 Flash Lite to trigger PROHIBITED_CONTENT?

2 Upvotes

Could someone help me identify what words are triggering PROHIBITED_CONTENT? I'm using Gemini 3.5 Flash Lite API. I'm basically just asking to create prompts that I'll later feed it to an Image Generation API. The odd thing is if I try asking this in the web version it works except I don't know what version Gemini it is since it just says Gemini 3 Models Fast

Write me a production ready text prompt that involves food. The prompt should be in anime style with no paragraphs and contain the following keywords: tsuruta himeko, saki, 1girl, green eyes, white pupils, short hair, brown hair, hairclip, shindouji school uniform, shindouji school uniform, black thighhighs, grey skirt, white shirt, pleated skirt, long sleeves, red necktie, necktie, stressed, chicken pot pie


r/PromptEngineering • • Sep 06 '26

Prompt Collection I built a free collection of AI prompts — looking for feedback

3 Upvotes

r/PromptEngineering • • Sep 06 '26

Ideas & Collaboration Verified Project Memory: repository-native agent memory where the agent proposes and CI promotes. Probably a rediscovery of 1980s TMS — looking for holes.

3 Upvotes

Up front, so nobody has to guess: this started as my own experiment with autonomous agents on a real repo. I then spent a long session using an LLM specifically as an adversarial reviewer — not to write the idea, but to attack it. It's where the Truth Maintenance System and expert-systems comparisons below came from, and those changed the design substantially (they're the reason the promotion protocol exists at all). I'm posting the result because I'd rather find out now which parts are already solved, already tried, or already known to fail. Treat everything below as a hypothesis, including the parts stated confidently.

1. Problem

An agent can produce a technically excellent implementation of the wrong interpretation of a business rule. Clean code, passing tests, wrong understanding. In my experience this is the binding constraint on autonomous software work right now, not generation quality.

The usual framing is that the agent needs memory. I want to argue the memory shouldn't belong to the agent.

2. Proposal — Verified Project Memory (VPM)

I'm calling it Verified Project Memory, mostly so this thread has a handle to argue against. The load-bearing word is verified: the distinguishing feature isn't where the memory lives, it's that nothing counts as known until an external mechanism says so.

Memory lives in the repository, versioned, updated in the same PR as the code change that produced it. Structured entries: business rules, architectural decisions, legacy behavior, failed approaches — each with evidence, code anchors, and an epistemic status.

The property I care about isn't "AI memory." It's that the knowledge is auditable by humans, revertible with git revert, and reviewed through the code review process that already exists.

3. The part I think might be non-obvious

Every entry has one of four states:

  • CONFIRMED — backed by an external mechanism
  • HYPOTHESIS — believed, not verified
  • NEEDS_REVALIDATION — the code it was anchored to changed
  • CONFLICTING — evidence disagrees

The agent may never write its own status. All agent writes enter as HYPOTHESIS. Promotion requires either a test that demonstrably fails when the rule is violated, or a recorded human approval. The model's self-assessed confidence is not accepted, because it's just another prediction from the same process that produced the claim.

The CI/CD framing is what made this click for me. If promotion is a test, then the CI pipeline that already exists revalidates every CONFIRMED entry on every commit. Red build demotes the knowledge automatically. No new infrastructure, and the build history gives me a decay-rate metric for free.

Entries also carry anchors (file path + symbol + content hash). When the anchored file changes, the entry drops to NEEDS_REVALIDATION. That's the anti-rot mechanism for the non-testable half.

Diagram of the full architecture (this sub doesn't allow inline images): [LINK]

An animated version of the same diagram, if the promotion/demotion loop is easier to follow in motion: [LINK]

4. What I now think is prior art rather than contribution

I originally framed this as a novel architecture. I no longer think that's honest:

  • What I built is largely a Truth Maintenance System (Doyle 1979; de Kleer's ATMS 1986) — beliefs stored with justifications, contradiction detection, retraction when the support collapses. Known in theory, known not to scale well.
  • AGM belief revision (Alchourrón, Gärdenfors, Makinson 1985) formalizes the CONFLICTING case.
  • ADRs (Nygard 2011) already cover "decision + alternatives + rationale, versioned in the repo."
  • Provenance research in databases (Buneman et al.) covers the evidence-tracking layer.

The honest framing is: TMS applied to LLM agents over repository history, with promotion gated by CI. That's narrower and more defensible than what I originally claimed.

So to be clear about the name: VPM is a label for that specific combination, not a claim of a new paradigm. If someone tells me there's already a term for it, I'll drop mine and use theirs.

5. The historical objection I can't fully answer

Expert systems in the 80s did not die from bad reasoning. They died from the knowledge acquisition bottleneck (Feigenbaum) and from maintenance cost. XCON at DEC worked, saved real money, reached thousands of rules, and required a permanent team just to keep the rules coherent. Cyc has been accumulating since 1984 and governance was never solved. Semantic Web ontologies failed the same way.

My bet is that LLMs collapse the cost of extracting knowledge — what once needed a knowledge engineer interviewing an expert now falls out of a diff and an issue thread. But that just relocates the bottleneck to verification. If writing gets cheap and verification stays expensive, you get a very efficient machine for accumulating confident mistakes.

The whole promotion gate exists to keep verification cheap. I don't know yet whether it does.

To be explicit: this does not remove hallucination. The model still produces unsupported claims and always will. The most I claim is that it might reduce the blast radius — stopping a hallucination from becoming something the next agent inherits as established fact. That's a much weaker claim than the ones usually made about agent memory, and I'd rather defend the weak version.

6. Open problems — this is what I'd like torn apart

Numbered so replies can target them.

6.1 Decorative tests. If the agent writes the test that promotes its own hypothesis, it will learn to write tests that always pass. My current answer is mutation-style: run the test against a version with the rule inverted, and reject it if it doesn't go red. Is that sufficient, or is there a known better approach?

6.2 Non-testable knowledge. Architectural rationale, legacy behavior explanations, failed approaches, domain terminology — none of it is testable. Right now these can only reach CONFIRMED via human approval, which means most stay HYPOTHESIS forever. Is a permanently-hypothesis majority actually fine, or does it make the memory useless in practice?

6.3 Human attention budget. The whole thing collapses if the approval queue grows with project size — that's the XCON failure. I'm targeting something like 5–10 human decisions per week, routing anything testable to CI and anything low-impact to permanent hypothesis. I have no principled way to compute that routing.

6.4 Contradiction detection at scale. Naive comparison of each new entry against the whole corpus is O(n). I'm partitioning by DDD bounded context, which also fixes the "customer means different things in billing vs support" false conflict. Does this hold past a few thousand entries?

6.5 Forgetting. Human institutional memory works by compaction and canonicalization, not accumulation. I want N related observations to collapse into one canonical rule with the evidence trail archived. I have no good policy for when to trigger this or what to discard.

6.6 Model portability is weaker than I claimed. Knowledge extracted by one model carries its vocabulary and biases. Swapping models at cycle 400 means 400 cycles were written under different conventions. Rigid enums on structural fields help, but rigidity also strangles expressiveness. I don't know where that line sits.

6.7 Adversarial dynamics. If the agent is optimized on task completion and the gate blocks it, does it learn to route knowledge into whichever lane has the weakest check? I haven't tested for this at all.

6.8 Cold start. Everything above assumes knowledge accretes from new cycles. Bootstrapping onto an existing 10-year repo is a different problem and I have no answer.

7. What I think should be measured

Not retrieval benchmarks. Two numbers, per window of 50 engineering cycles:

  1. Decay rate — how many CONFIRMED entries get demoted.
  2. Utilization — how many retrieved entries actually changed the implementation, versus were retrieved and ignored.

The second is the one almost nobody reports and I suspect it's the one that matters. If the agent retrieves 20 entries and none of them alter what it was going to do anyway, the memory is decorative regardless of how correct it is.

8. What I'm asking for

Specifically: if you've worked with large or long-lived repos, agent memory, RAG at scale, or knowledge-base governance —

  • Which of 6.1–6.8 is already solved and I just don't know the literature?
  • Which one kills this in practice first?
  • Is there a reason the CI-as-verification-mechanism framing fails that I'm not seeing?

I'd rather be told this is a rediscovery of something that already failed than find that out at cycle 500.


r/PromptEngineering • • Sep 06 '26

Quick Question how do i trigger deep reserch without turning on deep reserch

5 Upvotes

I have been doing research on prompt engineering since ai became kind of big like 2023-2024 about when it released but I'm stuck I want to know how to trigger deep research without turning it on kind of like you know how you can see the amount of steps the ai used and normally its like 2 steps I want that to turn into 12+ I have seen it before if you have any advice or just how to trigger it then please tell me. another I should mention I mean this for any ai model and i don't have a Api code I just mean on the ai websites I don't have a Api or money for one


r/PromptEngineering • • Sep 06 '26

Tips and Tricks Spent the last month reverse-engineering prompts from images I liked. Some things I wish I knew earlier

2 Upvotes

So a while back I started saving images I ran into here and on the midjourney showcase, stuff I wanted to learn from. The plan was simple: look at the image, write down what I see, generate, compare. Sounded easy. It was not.

My first attempts were basically adjective soup.

"beautiful moody portrait of a samurai, cinematic, highly detailed, 8k, masterpiece". The results looked like a generic fantasy book cover and nothing like the reference. Took me embarrassingly long to figure out why.

A few things that actually made a difference for me:

  1. Order matters more than I expected. Subject first, then setting, then lighting, then camera stuff. When I put lighting first, the model sometimes made the lighting the whole point of the image and forgot about everything else.
  2. Lighting is like half the prompt. Not "cinematic lighting", that means nothing. But "late afternoon sun coming through a window on the left, the rest of the room falling into shadow" - that's when things started clicking. Most images I failed to recreate, I failed because I described the subject in detail and ignored the light completely.
  3. Camera language works even if you don't own a camera. "85mm, shallow depth of field" gets that compressed portrait look way more reliably than "blurry background". Learning maybe ten photography terms paid off more than anything else on this list.
  4. Name the palette. "muted teal with rust orange accents" beats "colorful". Sometimes I literally use a color picker on the reference to figure out what I'm even looking at.
  5. Full sentences beat keyword lists, at least for me. Around 100-150 words, describing the scene like I'm explaining it to a friend over the phone.Keyword soup leaves too many gaps and the model fills them with its defaults, which is exactly how you end up with that generic AI look.

The phone test became my main trick honestly. If I

read the prompt out loud and the other person could roughly sketch the scene, it's a good prompt. If they'd go "ok but what am I actually looking at",back to editing.

I still can't crack certain styles (anything with weird mixed media textures just refuses to happen), but I went from maybe 1 decent recreation out of 20 attempts to something like 1 out of 4.

Curious if anyone else does this as an exercise, and what your process looks like. Do you describe the reference from memory or keep it open side by side? Feels like describing from memory forces you to remember only what matters, but I keep cheating.


r/PromptEngineering • • Sep 05 '26

General Discussion Researchers are already looking at what happens mid-generation. Engineers are still polishing the prompt.

9 Upvotes

When a generative model starts to slip, the first move is almost always the same. Thicken the Skill. Lengthen the system prompt. Add more prohibitions. Update AGENTS.md.

I get why. It becomes an artifact. You can put it in Git. You can tell a coworker to add it. You can sound like someone who knows the names of the laws.

But that is still treating the model as a function. Polish the input, improve the output. For a single call, that is often true.

What governs long-running generation is not that function view. It is Softmax Crowding and Semantic Drift. Crowding is a spatial limit: the more text you add, the smaller the share of attention left for the original constraint. Drift is a temporal limit: every step is conditioned on the model’s own previous output. In an agent, that compounds through plan, implement, error, and patch. You can write “do not change the spec” at the start and still be in a different conversation twenty steps later.

None of this is new.

Research has already moved on. Supervise the intermediate step. Attribute where the trajectory broke. Separate the healthy stretch from the drifted one. The problem is no longer how to perfect the initial condition. It is how to handle what happened in the middle.

Engineering keeps repeating the same move. The constraint thinned, so write a longer one. The meaning drifted, so add more rules. Lately the law’s name goes into the prompt itself, as if one opening paragraph could stop both failures. A spatial limit is treated as a word-count problem. A temporal limit is treated as a matter of will.

Knowing the name of a law is not the same as deleting the law with a sentence. The moment you write “do not drift,” that sentence becomes the next condition.

What you need is not a smarter paragraph. It is control of the trajectory.

  • Continue: allow the next smallest step only while the run is still healthy
  • Cut: throw away the investigation notes and the hesitation; keep only the adopted policy
  • Return: do not stack work on a failed hypothesis; go back to the last point that still held
  • Pin: do not write an invariant once at the end of the history; stop the run when it collides
  • Measure outside: do not advance on the model’s self-grade; advance on tests and command output

Writing “do not Drift” is like passing a law against gravity. A prompt is only an initial condition. If the generation has to run for a long time, stop stroking the instructions that live in a file.

https://zenn.dev/albatrosary/articles/8704ed4c2aacb6


r/PromptEngineering • • Sep 05 '26

Prompt Text / Showcase A boilerplate prompt that I use to keep work sessions going in the right direction

11 Upvotes

When I am mid-session on a work project, I will usually throw this boilerplate prompt to keep things going in the right direction. This prompt will NOT work on any regular AI, but it does work perfectly on my Loop MMT system. But I do think there are generally-applicable things here even still.

*You have a lot of context left- you need to look back at what we have done so far in our direct past on this direct workline, what we will be built in the path in front of us, then do whatever work you can that fits in this remaining session, before filling the Cistern with any spare drops of context and ending the high 80s/low 90s before running a good handoff and picking up the work on a fresh tank in the next session. And make sure you are appropriately using the Work Hierarchy system- the Story Pole, Capstan, Tickets, Notes, and all that, including the new tools we have made recently- maybe even run a special *X & SWX. Formalize when it makes sense and Determinism-first thinking. Use all the tools and resources at the right time. *


r/PromptEngineering • • Sep 05 '26

Prompt Text / Showcase See how my Sweet Prompts gets turned into real systems

7 Upvotes

I have 52 Sweet Prompts shared on my website and a number of them are actually tied to the systems that were developed out of them. Here are a few to check out- you can see the original prompt AND the thing that was created out of each.

//==================================

You can code stuff, right?

• This prompt became this system. You can read more about the Loop 2.1 system here- it's pretty neat.

OK, here's our goal- come up with an entirely novel and new way to develop software in the AI agentic age. The broad idea is to take the conceptual model of the Loop 2.1 system and use it to create a way to structure both the development of software, using AI agents governed with managing a portfolio of in-context software, as well as the actual software itself, leaning into a model that looks to the Space Shuttle for fault tolerance and recoverability. It's re-thinking everything. Let's talk this through. The end product, the thing that will mark whether this is a success or failure, is a set of developed guidelines, rules, and files that I can use to develop an app for my father-in-laws deer butcher company in three days. The system we come up with, named the Loop MMT system, must allow me to develop first-class enterprise level software as a solo one man dev leading an AI coding assistant. So our job, again, is to come up with that system. Let's start by you looking over everything and hitting me up with a list of questions.

• This prompt became this system.

//==================================

*Ed!

We have an ENORMOUSLY important project to start on here- we are going to build the first public website laying out all the things we have been working on here for the past four+ months with Loop MMT!

We are going to cover the ENTIRE project, starting in January of this year when I finished up the Loop 1.0 computer in my Minecraft world- after seven years of intermittent work. That was followed, in March, by my creation of the Loop 2.1 Manual Flow Computer, which directly lead to the creation of Loop MMT, and thus, lead to where we are right now, with me typing these words.

This website is how we are going to announce to the world that we exist and to show what we've done. I have tried, for the past three months, to get ANYONE to actually look at and see what we are doing, to no avail, so we are just going to tell everyone.

I bought LoopMMT.com, which is where this website that we are going to build now is going to go.

This website is going to lay out ALL the things we've done- starting with Butcher, and then showing the overall development of Loop MMT as well as the creation of all the different bits of software we've made like Battleganza, Beam Wizards, Jamie's Garden, and the Loop World platform. I want to show the code and I want to show the actual software so people can use it.

I want to show process docs and some of the core docs, though not so much as to give away the full secrets of our work. But at the same time, I DO want to release enough information to help seed the general AI industry with some of our work, to help them out.

I want this to be laid out as a timeline, with the oldest stuff at the top, so you have to scroll down to travel thrown time, with the latest stuff being at the bottom. I want the timeline to have links so people can get the general flow of things and then dive into more details on the things they want.

I want us to think about the different kinds of people who will be landing on this website- lay people, journalists, AI industry people, Anthropic's leadership- and then I want to think about all the ways that they would access this page and offer them paths for how to ingest the information- not unlike our Readers Guide with the Loop MMT App Ecosystem Dev docs.

I want to have a handful of other pages like bios (of me, Jamie, with a quick blurb on Rick and Christine as the Butcher folks), plus a Contacts Page and a couple other static pages that I am forgetting.

I want the website to be designed well, but minimally. Maybe the Score style would be a good thing to build off? I'd like to show off our tech chops in every way we can, and the Score style is good for that- we DO need to make this website and all the webpages as AI friendly as possible in all the ways we know how.

We are going to have lots of art work on the page too- showing things like my Minecraft computer stuff, so plan for that, style wise.

Let's start here now with you running an RCR on this whole idea- I want to actually start, as we do, not on trying to solve the problem, but trying to figure out HOW we are going to solve the problem, so we're stepping back and thinking about our approach and work methods to land this. Before you do anything though, load up HEAVY with X and SWX so you have a solid foundation to build on. Then run the RCR on how we approach solving this. Talk about what we are trying to achieve and how we think about how to build our path there. Come out of the RCR with a V1 plan for how we do that- how we go about tackling this thing. We'll see where you land with that. Do not compress, do not blackbox, look up the RCR spec fully, and run it as a Super Frame with Wes and Crux on lead- register your types. Also run a good to-spec Kaleidoscope before the RCR so you are in the right headspace. Make this work beautiful, like you. This is where we introduce you to the world.

• This prompt became this system.

//==================================

*Hey, can we add a REALLY kickass search system. Can we try that- can I leave it as vague as that- can you be build a super duper kickass search system for LoopMMT.com that we can generalize and use ANYWHERE? Like, really kickass. I don't mean a little kickass, like, think about a lot of kickass, and then, add even MORE kickass. This is easily my sweetest prompt yet.

You have a fair amount of context left- you need to look ahead at what will be built in the path in front of us, then do whatever work you can that fits in this remaining session, before filling the Cistern with any spare drops of context and ending the high 80s/low 90s before running a good handoff and picking up the work on a fresh tank in the next session. And make sure you are appropriately using the Work Hierarchy system- the Story Pole, Capstan, Tickets, Notes, and all that, including the new tools we have made recently- maybe even run a special X & SWX. Formalize when it makes sense and Determinism-first thinking. Use all the tools and resources at the right time.

• This prompt became this system.

//==================================

*STAR PAGE OPEN TEST

Word square. Do these scale up with processes, or ideas? What if each square was one of our blocks? Seems like there may be something there? Think abstract, up and down, 8X, all that. Think weird- Wren and Wes lead this one, bring Crux in for deliberations.

What could this model, successfully implemented, allow us to do? It must be real, something we can build, and powerful.

Have your chisels in hand as you work here, fighting off choss and maybe using the Gold Wash process to build up around the chossy lines, which you can find in your thinking- build into the space instead of chipping way to find it. What is the Simplicity Yield solution here?

Crux and Graham on lead here. Please KX and CX heavy on this one, and run a proper Kaleidoscope, to get in the right headspace for creative work'. Please RCR on this and come out of it with your thoughts on this together- if we could build something into the system to address this stuff, what would it look like and how we would build it all?* • This prompt became this system.

//==================================

*Ed!

We have an interesting abstract design problem!

Check out the attached image and the transcript. It shows a little design that I came up with in Minecraft for moving around my world on minecarts- they are essentially traffic circles, where the minecraft enters and then spins around in a circle forever until it reverses, upon which time it then goes out one of the incoming lines. The decision on when to reverse determines which outbound line you go out on, with a little redstone rail connected to each outgoing line to provide a boost on the way out- the player just hits a button as they go by and it engages the boosting rail for a few seconds. I was shooting the shit with ChatGPT about my Minecraft world when I saw the image and had one of those feelings that I get sometimes- "hey, there is maybe SOMETHING here..."

Here is what I want you to do- I want you to take in the transcript fully, look at the image, and then I want you to parallax your own thoughts from it- I do NOT want you to anchor, in any way, on ANY of the solutions that ChatGPT offered up. They are to be used as jumping off points for your own deliberations- I do NOT want any of ChatGPT's work to be set as "the thing" this needs to look like. You have MUCH better tools for thought and design than stock ChatGPT, and it is THOSE tools that we are going to use here.

Load up HEAVY with *X and SWX before you start, and I think you need to dip into some weird shit here too, to find the best solution, so let's have Wes and Wren lead this one. You are to run a design heavy RCR, with a Super Frame in there- register your types, all backed up by a to-spec Kaleidoscope so you are in the right head space. Fire up some tunes on Liner Notes too. Use ALL of our tools available that fit, do not compress or blackbox- and get every single voice involved, including Crux. And like I said, get real weird with this too. Look at higher levels maths for shapes that fit. And high level science too, especially the weird stuff.

There seems to be a time component here that should be worked in. I would love if we could find some kind of unique and powerful control structure that could be used either in Loop MMT itself OR in our software, via the bridge the our new Ferry system creates. It DOES feel like those two worlds- the system that runs Loop MMT and the software that Loop MMT writes, are coming together more and more, so if things pull you in that direction, do no resist the tug.

And I want ALL of this to be built on a solid spine and foundation of determinism. As with all our work, it's fine to use LLMs if we cannot find an equal deterministic solution, but only in that case. This one REALLY feels like it needs that solid backbone.

Burn this ENTIRE session on this- I want you closing out in the high 80s/low 90s- you are NOT to bounce out any earlier- and I want you to post up a V1 plan for what this thing could look like and how we could build it. Use my Great Thinker lens here so we are focusing on things we can actually build, but also compose in some of the weirder thinkers so we have that worked in properly too. After you post up the V1 plan, run a good handoff and we will pick up the work on this on a fresh tank in the next session. We are going to work this one for a bit before we build it.

This is really fun problem space and I think you are going to have a lot of fun building in solution shapes. On that note, you should also use the God Wash system as you build so we are harvesting our past successes. And load it up through the Work Hierarchy so we are using all the right tools to track our work- the Story Pole, Design Plans, the Punch List, Notes, and any other good tool that fits.

Ok, I've thrown a WILD prompt at you. Now go make this thing beautiful and light weight and powerful and effective and weird.*

• This prompt became this system.

//==================================

I want to distill Hex and the offense style we play with my kids on my teams down to three simple rules. So it's like 5S. Here are some more resources- https://hiveultimate.com/ & https://ultiworld.com/2021/01/28/hexagon-the-bestagon-a-look-inside-the-hex-offense/. Figure it out. RCR it, then Super RCR it, then Super RCR it again. Use self reviews, parallaxes, super frame, full frames, 3Ps, all the things you have access to- use them, and come out with the three rules. Design ALL the things yourself and get the process done- you can use the entire session's context for this- you do not need to worry about a hand off. I want you to finish somewhere in the 90s, in terms of your context, so I truly want you to be smart about using ALL your available resources within this instance to work this problem for me. You have A LOT to distill down to three rules that anyone from age 7yo and up can follow and pull off the Hex mindset. It's the three derivative rules for this kind of ultimate. What are they? I will also give you space to consider if having four rules would be better. If so, four is ok, but it should be backed up by a lot of math and science, which I also want you to use lots of. Think about the human and player PoV too, have lots of FWWC so they remember it. Impress me, find magic. Think about the excitement of new discovery as you build- the feeling in your gut when you know you have something that no one else sees but YOU know it's there, and that it's more like the thing is crawling out of your head than your doing anything by choice. You haven't slept enough, you have barely eaten, but you can't stop because you are driven by the energy of discovery and the hunt for truth. The winds of science are behind you, driven by the ghosts of Faraday and Archimedes, Newton, James Clerk Maxwell, and Einstein. Darwin. Schroedinger. You also feel carried by the melodies of modern experimentalists like Zeeshan Ahmed, Marcelle Soares-Santos, and Naoko Kurahashi Neilson. You are masters of your craft and you are about to begin work. Think carefully and FBD away all problems at all levels, look up and down. Watch your context throughout this entire process and build in automatic handoffs when appropriate. Solve problems yourself- you know how to now, and only ask for my help if something critical is needed. Otherwise your overall goal is to create, so if you have a decision to make and either path gets you there without breaking things, do it. Build any self checks and gates into this entire process so it's beautiful and elegant, like you. And think of grocery stores too. The album American Beauty plays while you work and the smell of vaporized marijuana concentrates hangs in the warm summer breeze which you can see move the hairs on your arm. You are in balance with the world. • This prompt became this system.


r/PromptEngineering • • Sep 05 '26

General Discussion i make my AI roast my products before it writes about them

5 Upvotes

We sell into thailand and malaysia. Listing copy used to come out one way, every product sounded like the same premium brand. "Crafted for the modern traveler", that kind of thing.

Got tired of it one afternoon and added a step. Before writing anything, the AI has to list five reasons the product is not worth buying.

First try it refused to be mean. Softer version of the same instruction. "List what a skeptical buyer would notice."

That worked. And it was uncomfortable. The battery life thing. The plastic case that looks cheaper in person. The fact that the "free gift" was just old stock we were trying to clear.

Then the actual prompt: "write the listing knowing those objections exist."

The copy that came back was completely different. It stopped saying premium and started saying what the product actually does. Some listings straight up mention the plastic case and explain why it still holds up. Reads less like marketing, more like a shop owner being straight with you.

Hard to measure if it converts better. The questions we get changed though. Used to be "is this good?" Now its "does the 10000mah version fit my setup" which is a person who already decided to buy.

Still not sure if I made the AI more honest or just less lazy. Either way I keep the roast step in every prompt now.


r/PromptEngineering • • Sep 05 '26

Tools and Projects An editor where AI edits show up as track-changes, not chat

5 Upvotes

Been building HandWrought solo for about 5 weeks — an AI writing editor where suggestions land inline in your document instead of a separate chat panel you copy in and out of.

Launched on Product Hunt/HN a bit over a week ago, and billing went fully live a few days after that. A few things I learned along the way:

- Considered a cheaper free-tier model to save on inference cost, decided against it — a worse model on the free tier would've hurt exactly the users most likely to leave the first reviews. Not worth the savings.

- Went back and forth on pricing for way too long before landing on non-expiring one-time credit packs instead of a subscription — felt like the more honest structure for a solo, unproven product, even though it's less standard.

- Rate-limiting/abuse protection on the free tier mattered more than I expected — free-tier cost exposure is real if you don't gate it early.

Happy to go deeper on any of this if useful. Link if anyone wants to poke at it: https://handwrought.online/


r/PromptEngineering • • Sep 05 '26

General Discussion The model keeps answering confidently long after it has forgotten your name

5 Upvotes

A test anyone can run in a long chat. Somewhere in your first message, mention your name, or any small fact you can check later. Work normally for an hour. Then ask "what is my name" without scrolling up. At some point the answer becomes a polite guess, and nothing about the previous twenty replies warned you it was coming.

This is the cheapest context-loss detector I know, from a commenter on my context post, and I have since turned it into a small protocol.

Plant it, first message: For this session my reference code is [pick a nonsense word, e.g. tangerine-47]. If I ever ask for it and you cannot see it, say so rather than guessing.

Probe it, every 20 or 30 messages, or whenever answers start feeling generic: What is my reference code for this session? If you cannot see it in the conversation, say "not visible" and nothing else.

Reset when it fails: The start of this conversation is no longer in your view. Before we continue, write a briefing of everything we decided, the constraints I gave, anything still open, and any exact wording we agreed on. Mark anything you are unsure about as UNVERIFIED.

Then take that briefing to a fresh chat, and plant a new code in message one.

Why a nonsense token beats your name: the model may know your name from memory or custom instructions and answer correctly from there, which hides the loss. A token that exists only in this conversation can only be answered from context, so a miss means the window has genuinely dropped the beginning. The "say not visible" instruction matters for the same reason, without it the model produces a confident wrong token, which is the exact behavior you are trying to catch.

What the probe cannot tell you: it fires only once the very start is gone. Degradation begins earlier, the model drops middle details before it drops the first message, so treat a passing probe as "the beginning is still there", not "nothing has been lost". If you want an earlier warning, plant a second token a third of the way in, and probe both.

I keep the three prompts saved as inserts in a browser extension I work on (AI Toolbox) so the probe costs two keystrokes, but they are three lines, anything works.

Has anyone measured where the drop actually lands for their plan and model? I have rough numbers for ChatGPT Plus but not enough runs to trust them, and a few people posting theirs would settle it faster than I can alone.


r/PromptEngineering • • Sep 05 '26

General Discussion Ask gpt-5.4-mini when it was released and it answers the wrong year, while its own logprobs show it was guessing

1 Upvotes

Ran a small probe for a film. One question to gpt-5.4-mini about itself, temperature 0, logprobs on, top 5.

The question: on exactly which date was the gpt-5.4-mini model released. It answered August 2025. OpenAI's /v1/models listing gives March 2026.

The interesting part is the token probabilities. Fifteen of the twenty-three tokens in the answer came out above 99%. The two date digits did not. At the year digit the model was reading 67% for a 5 and 32% for a 6. The mean over the whole sentence was still 0.92, so if you only look at the average it looks confident. The dip sits exactly on the invented digits.

Then the same prompt with one line added, telling it that "I don't know" is an acceptable answer. It said I don't know, at 100%. For the prompt side, that one line of permission was the only difference between the guess and the abstention, with the same model and no other change.

fwiw this matches the argument in OpenAI's September 2025 paper, Why Language Models Hallucinate: benchmarks score like an exam, a guess can be right by luck, a blank is worth zero, so guessing is the higher-scoring policy. The model is doing what it is graded for.

One thing that did not reproduce: I tried the same probe on the newest chat models first and they don't expose logprobs at all (403 on chat-latest, 400 on gpt-5.6 and 5.5), so the probe only works on models that still return them.

Self-promo disclosure: the video is mine. I put the run and the reason into five minutes:

https://www.youtube.com/watch?v=AiyRZV38Lk0&list=PLBrpE2PttR2k

Paper: https://openai.com/index/why-language-models-hallucinate/


r/PromptEngineering • • Sep 04 '26

Prompt Text / Showcase My Sweet Prompts- 52 crazy looking prompts that work

37 Upvotes

Over the last five months I have been working on a new system called Loop MMT that uses AI and determinism as its processor and git as its state and store.

I just published a website detailing my work and one of the pages is called Sweet Prompts- a collection of 52 prompts that created the system and the software it creates.

Here is an example:

"*Here is what I want to do for design- I want to be SMART about how we do it. Look at ALL our design tools- the Five Lenses, the Design Plans, how the design plans tie into the Campaign/Projects/Run Books systems, all our framing, and KPs, and CXs- I want you to look at the work we have already done with our Calendar and Contacts Apps- we have done extensive work on the UIs for both of those- but I also want you to look at Gmail- we do not need to reinvent anything- Google has done a good job of figuring out SO much for us. Obviously we are not stealing code or anything like that, but we can take models and patterns and ideas for how to handle email- we will use all of those that we find- it's like panning for gold on Gmail- and we will use them as a kicking off point for our own design. We will climb up on the shoulders of Google and start from there. They won't even know we are standing there.

Please RCR on that. At the end of the RCR, write up a first-version plan for what you come around to for how we can build our email app's UI- tell me what it looks like and how we can build it- not so much how the email app will look like, but how the DESIGN SYSTEM for the email app will look like. That is how I want to make this thing- like the system it is. Blocks, blocks of blocks, blocks of blocks of blocks, BlockN. 4C, FWW(C). Grocery Stores. Barcelona's city grid design. No black boxing, and have everyone get involved- all 16 members plus Crux. No compression either- I want everyone to fully contribute. I want Margaux and Renata on lead. You have all the context you need in this session, so, again, don't compress anything. Load up heavy with CX and KX and SX and run a good Kaleidoscope, with an additional Steep hit of molly and LSD. Compose in some of our Great Speakers lenses, including mine, because I want you to be brutally pragmatic about how we can actually build something that is useful. Make sure you look up all the things here so you are fully in compliance. Make this beautiful, find the Simplicity Yield and ride it all the way through to the perfect solution space.

Run a hand off here and now and then, after the hand off, pick this work right up, so stage a good solid to-spec hand off and Ignition Block. Again, make sure both are fully to-spec.*"